首页 > Ubuntu/Debian操作系统 > 【环境设置】debian update失败

【环境设置】debian update失败

2018年3月20日

【环境设置】debian update失败

症状

之前一直使用的debian环境,今天突然aptitude update失败,错误信息如下:

复制代码
[email protected] Tue Oct 28 20:26:35 ~
$ aptitude update
Err http://mirrors.163.com wheezy Release.gpg
Could not resolve ‘mirrors.163.com’
Err http://mirrors.163.com wheezy-proposed-updates Release.gpg
Could not resolve ‘mirrors.163.com’
Err http://mirrors.163.com wheezy-updates Release.gpg
Could not resolve ‘mirrors.163.com’
Err http://mirrors.163.com wheezy/updates Release.gpg
Could not resolve ‘mirrors.163.com’
W: Failed to fetch http://mirrors.163.com/debian/dists/wheezy/Release.gpg: Could not resolve ‘mirrors.163.com’
W: Failed to fetch http://mirrors.163.com/debian/dists/wheezy-proposed-updates/Release.gpg: Could not resolve ‘mirrors.163.com’
W: Failed to fetch http://mirrors.163.com/debian/dists/wheezy-updates/Release.gpg: Could not resolve ‘mirrors.163.com’
W: Failed to fetch http://mirrors.163.com/debian-security/dists/wheezy/updates/Release.gpg: Could not resolve ‘mirrors.163.com’
W: Some index files failed to download. They have been ignored, or old ones used instead.

复制代码
但网络是通的:

复制代码
[email protected] Tue Oct 28 20:31:54 ~
$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=2 ttl=128 time=37.5 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=128 time=45.9 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=128 time=36.9 ms
^C
— 8.8.8.8 ping statistics —
4 packets transmitted, 3 received, 25% packet loss, time 3010ms
rtt min/avg/max/mdev = 36.975/40.156/45.922/4.084 ms

[email protected] Tue Oct 28 20:39:38 ~
$
复制代码
环境说明

系统版本:

[email protected] Mon Oct 27 17:10:30 /usr/share/vim/vim73/colors
$ uname -a
Linux Ulric 3.2.0-4-686-pae #1 SMP Debian 3.2.63-2 i686 GNU/Linux
软件源

复制代码
[email protected] Tue Oct 28 20:26:45 ~
$ cat /etc/apt/sources.list
#deb http://ftp.debian.org/debian wheezy main contrib non-free
#deb-src http://ftp.debian.org/debian wheezy main contrib non-free

deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-updates main contrib non-free
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
复制代码
解决方案:

经过baidu的帮助,终于找到原因了:

http://tieba.baidu.com/p/2110278694

本文的评论功能被关闭了.