sudo apt-get update为何全是Failed?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
genime
帖子: 155
注册时间: 2010-05-29 0:48

sudo apt-get update为何全是Failed?

#1

帖子 genime » 2014-07-23 21:44

代码: 全选

Ign http://archive.ubuntu.com raring Release.gpg                                                     
Hit http://ppa.launchpad.net raring Release.gpg                                                      
Ign http://extras.ubuntu.com raring Release                                                          
Ign http://archive.ubuntu.com raring-updates Release.gpg                                             
Ign http://archive.ubuntu.com raring-backports Release.gpg                                           
Hit http://ppa.launchpad.net raring Release.gpg                                                                            
Ign http://archive.ubuntu.com raring-security Release.gpg                                                                  
Hit http://ppa.launchpad.net raring Release                                                          
Hit http://archive.canonical.com raring Release.gpg                                                                                               
Hit http://archive.canonical.com raring Release                                            
Hit http://ppa.launchpad.net raring Release                                                 
Hit http://ppa.launchpad.net raring Release                                                                       
Hit http://archive.canonical.com raring/partner Sources                                                           
Hit http://archive.canonical.com raring/partner amd64 Packages                             
Ign http://archive.ubuntu.com raring Release                         
Ign http://archive.ubuntu.com raring-updates Release                 
Hit http://archive.canonical.com raring/partner i386 Packages        
Ign http://archive.ubuntu.com raring-backports Release               
Hit http://ppa.launchpad.net raring/main Sources                                           
Ign http://archive.ubuntu.com raring-security Release                                      
Hit http://ppa.launchpad.net raring/main amd64 Packages                                    
Hit http://ppa.launchpad.net raring/main i386 Packages                                     
Err http://extras.ubuntu.com raring/main Sources                                           
  404  Not Found
Err http://extras.ubuntu.com raring/main amd64 Packages                                    
  404  Not Found
Err http://extras.ubuntu.com raring/main i386 Packages               
  404  Not Found
Ign http://extras.ubuntu.com raring/main Translation-en_US           
Ign http://extras.ubuntu.com raring/main Translation-en                                    
Hit http://ppa.launchpad.net raring/main Sources                                           
Ign http://archive.canonical.com raring/partner Translation-en_US    
Hit http://ppa.launchpad.net raring/main amd64 Packages
Ign http://archive.canonical.com raring/partner Translation-en       
Hit http://ppa.launchpad.net raring/main i386 Packages               
Hit http://ppa.launchpad.net raring/main Sources
Hit http://ppa.launchpad.net raring/main amd64 Packages
Hit http://ppa.launchpad.net raring/main i386 Packages
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Err http://archive.ubuntu.com raring/universe Sources 
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/multiverse Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/restricted Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/main Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/main amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/universe amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/multiverse amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/main i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/restricted i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/universe i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring/multiverse i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Ign http://archive.ubuntu.com raring/main Translation-en_US
Ign http://archive.ubuntu.com raring/main Translation-en
Ign http://archive.ubuntu.com raring/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring/multiverse Translation-en
Ign http://archive.ubuntu.com raring/restricted Translation-en_US
Ign http://archive.ubuntu.com raring/restricted Translation-en
Ign http://archive.ubuntu.com raring/universe Translation-en_US
Ign http://archive.ubuntu.com raring/universe Translation-en
Err http://archive.ubuntu.com raring-updates/universe Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/multiverse Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/restricted Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/main Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/main amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/universe amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/multiverse amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/main i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/restricted i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/universe i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-updates/multiverse i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://archive.ubuntu.com raring-updates/main Translation-en
Ign http://archive.ubuntu.com raring-updates/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring-updates/multiverse Translation-en
Ign http://archive.ubuntu.com raring-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-updates/restricted Translation-en
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US
Ign http://archive.ubuntu.com raring-updates/universe Translation-en
Err http://archive.ubuntu.com raring-backports/main Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/restricted Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/universe Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/multiverse Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/main amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/universe amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/multiverse amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/main i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/restricted i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/universe i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-backports/multiverse i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Ign http://archive.ubuntu.com raring-backports/main Translation-en_US
Ign http://archive.ubuntu.com raring-backports/main Translation-en
Ign http://archive.ubuntu.com raring-backports/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring-backports/multiverse Translation-en
Ign http://archive.ubuntu.com raring-backports/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-backports/restricted Translation-en
Ign http://archive.ubuntu.com raring-backports/universe Translation-en_US
Ign http://archive.ubuntu.com raring-backports/universe Translation-en
Err http://archive.ubuntu.com raring-security/universe Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/multiverse Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/restricted Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/main Sources
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/main amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/universe amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/multiverse amd64 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/main i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/restricted i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/universe i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Err http://archive.ubuntu.com raring-security/multiverse i386 Packages
  404  Not Found [IP: 91.189.88.153 80]
Ign http://archive.ubuntu.com raring-security/main Translation-en_US
Ign http://archive.ubuntu.com raring-security/main Translation-en
Ign http://archive.ubuntu.com raring-security/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring-security/multiverse Translation-en
Ign http://archive.ubuntu.com raring-security/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-security/restricted Translation-en
Ign http://archive.ubuntu.com raring-security/universe Translation-en_US
Ign http://archive.ubuntu.com raring-security/universe Translation-en
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/source/Sources  404  Not Found

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/universe/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/restricted/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/main/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/main/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/main/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/restricted/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/universe/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/universe/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/multiverse/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/restricted/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
系统版本13.04, 64位。
尝试换了网易的源没有任何改善啊,以上信息用的服务器是Main Server, 同时换了几个中国的节点还是不行,确认是可以上网的,这个问题该怎么解决,谢谢!!难道一定要换最新的源?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: sudo apt-get update为何全是Failed?

#2

帖子 poloshiao » 2014-07-23 23:07

Ign http://archive.ubuntu.com raring Release.gpg
https://wiki.ubuntu.com/Releases
Ubuntu 13.04 raring
Ubuntu 13.10 saucy
都已經停止支援線上更新/安裝

建議
全新安裝 12.04.4 或 14.04
genime
帖子: 155
注册时间: 2010-05-29 0:48

Re: sudo apt-get update为何全是Failed?

#3

帖子 genime » 2014-07-23 23:42

poloshiao 写了: Ubuntu 13.04 raring
Ubuntu 13.10 saucy
都已經停止支援線上更新/安裝

建議
全新安裝 12.04.4 或 14.04
原来如此 :em25 看来只能换系统了,不过这个版本支持时间也太短了。配置一遍开发环境太费时间了。。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: sudo apt-get update为何全是Failed?

#4

帖子 poloshiao » 2014-07-24 9:27

不过这个版本支持时间也太短了。配置一遍开发环境太费时间了。。
Ubuntu 10.04 / 12.04 / 14.04 / 16.04 都是長期支援版本 LTS
Server 版支援 5 年
Desktop 版支援 3 年 (12.04 支援 5 年)
建議 使用 LTS
genime
帖子: 155
注册时间: 2010-05-29 0:48

Re: sudo apt-get update为何全是Failed?

#5

帖子 genime » 2014-07-24 22:27

poloshiao 写了: Ubuntu 10.04 / 12.04 / 14.04 / 16.04 都是長期支援版本 LTS
Server 版支援 5 年
Desktop 版支援 3 年 (12.04 支援 5 年)
建議 使用 LTS
尝试将raring全换成trusty,看起来倒是挺正常的 :em01
比如:

代码: 全选

deb http://archive.ubuntu.com/ubuntu raring universe
deb http://archive.ubuntu.com/ubuntu raring-updates universe
改为:

代码: 全选

deb http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe
重新更新后只报了几个错误,安装了几个包也很正常

代码: 全选

Fetched 29.3 MB in 15min 51s (30.8 kB/s)
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages  Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_source_Sources  Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages  Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-i386_Packages  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
就是不知是否有其他隐患?只是好奇~
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: sudo apt-get update为何全是Failed?

#6

帖子 poloshiao » 2014-07-24 23:57

尝试将raring全换成trusty,看起来倒是挺正常的
不是正確的方法
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-i386_Packages Hash Sum mismatch
直接複製 貼上終端機 執行 避免打錯字
1. sudo rm /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages
2. sudo rm /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_source_Sources
3. sudo rm /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages
4. sudo rm /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-i386_Packages
5. sudo apt-get update
6. sudo apt-get upgrade
genime
帖子: 155
注册时间: 2010-05-29 0:48

Re: sudo apt-get update为何全是Failed?

#7

帖子 genime » 2014-07-31 21:47

多谢poloshiao,问题已解决。
renzhenshenghuo
帖子: 1
注册时间: 2014-10-06 21:31
系统: ubuntu

Re: sudo apt-get update为何全是Failed?

#8

帖子 renzhenshenghuo » 2014-10-06 21:34

同样的问题出现了,如何解决啊?
xiaofeng736
帖子: 3
注册时间: 2016-04-28 18:20
系统: ubuntu 16.04

Re: sudo apt-get update为何全是Failed?

#9

帖子 xiaofeng736 » 2016-06-03 11:17

我的也是这个问题 我的是16.04 desktop 没有问题,SERVER 版本不行 无法更新 几个源都测试了 没有用
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: sudo apt-get update为何全是Failed?

#10

帖子 vickycq » 2016-06-03 12:29

xiaofeng736 写了:我的也是这个问题 我的是16.04 desktop 没有问题,SERVER 版本不行 无法更新 几个源都测试了 没有用
各人的问题可能不完全一样
建议执行以下命令将结果全部复制贴上来 不要节选

代码: 全选

cat /etc/apt/sources.list
sudo apt update
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
willin2010
帖子: 8
注册时间: 2010-10-27 11:24

Re: sudo apt-get update为何全是Failed?

#11

帖子 willin2010 » 2016-07-09 16:48

我也是16.04 server 一直出现下面的问题
sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

apt update
Hit:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu xenial-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:7 http://repo.mysql.com/apt/ubuntu xenial InRelease
Get:8 http://packages.treasuredata.com/2/ubuntu/trusty trusty InRelease [1,938 B]
Get:9 http://packages.treasuredata.com/2/ubuntu/trusty trusty/contrib amd64 Packages [398 B]
Get:10 http://packages.treasuredata.com/2/ubuntu/trusty trusty/contrib i386 Packages [400 B]
Err:10 http://packages.treasuredata.com/2/ubuntu/trusty trusty/contrib i386 Packages
Hash Sum mismatch
Fetched 2,722 B in 1s (1,549 B/s)
Reading package lists... Done
W: http://packages.treasuredata.com/2/ubun ... /InRelease: Signature by key C901622B5EC4AF820C38AB861093DB45A12E206F uses weak digest algorithm (SHA1)
E: Failed to fetch http://packages.treasuredata.com/2/ubun ... ackages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: sudo apt-get update为何全是Failed?

#12

帖子 poloshiao » 2016-07-09 16:53

W: http://packages.treasuredata.com/2/ubun ... /InRelease: Signature by key C901622B5EC4AF820C38AB861093DB45A12E206F uses weak digest algorithm (SHA1)
E: Failed to fetch http://packages.treasuredata.com/2/ubun ... ackages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
把下面指令 複製 貼進終端機 執行
sudo ls -Al /etc/apt/sources.list.d
把結果全部直接 選取/複製/貼上來
willin2010
帖子: 8
注册时间: 2010-10-27 11:24

Re: sudo apt-get update为何全是Failed?

#13

帖子 willin2010 » 2016-07-09 17:04

total 12
-rw-r--r-- 1 root root 439 Jul 9 16:15 mysql.list
-rw-r--r-- 1 root root 124 Jul 8 10:13 ondrej-ubuntu-php-xenial.list
-rw-r--r-- 1 root root 69 Jul 9 15:59 treasure-data.list
willin2010
帖子: 8
注册时间: 2010-10-27 11:24

Re: sudo apt-get update为何全是Failed?

#14

帖子 willin2010 » 2016-07-09 17:38

问题找到了,应为之前想安装fluentd,运行了他们的安装脚本,但是貌似fluentd还不支持16.04,把treasure-data.list清掉就好了。
感谢poloshiao!
回复