Sudo apt-get update 命令出现错误

Sudo apt-get update 命令出现错误

我正在使用 Ubuntu 15.10 和 64 位系统。

我是 Ubuntu 新手,我正在尝试使用,sudo apt-get update但遇到了错误,我无法理解哪里出了问题,也不知道如何纠正该错误。

下面是我使用该命令后的错误。

Get:58 http://us.archive.ubuntu.com wily-updates/multiverse amd64 Packages [6,431 B]
Get:59 http://us.archive.ubuntu.com wily-updates/main i386 Packages [255 kB]
Get:60 http://us.archive.ubuntu.com wily-updates/restricted i386 Packages [20.4 kB]
Get:61 http://us.archive.ubuntu.com wily-updates/universe Sources [3,560 B]
Err http://us.archive.ubuntu.com wily-updates/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com wily-updates/main amd64 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com wily-updates/restricted amd64 Packages        
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com wily-updates/universe amd64 Packages          
  404  Not Found [IP: 91.189.91.13 80]
Get:62 http://us.archive.ubuntu.com wily-updates/multiverse i386 Packages [107 kB]
Ign http://us.archive.ubuntu.com wily-updates/main Translation-en              
Ign http://us.archive.ubuntu.com wily-updates/multiverse Translation-en        
Get:63 http://us.archive.ubuntu.com wily-updates/universe Translation-en [2,501 B]
Get:64 http://us.archive.ubuntu.com wily-updates/restricted Sources [60.5 kB]  
Err http://us.archive.ubuntu.com wily-updates/universe i386 Packages           
  404  Not Found [IP: 91.189.91.13 80]
Ign http://us.archive.ubuntu.com wily-updates/restricted Translation-en        
Fetched 32.1 MB in 4min 59s (107 kB/s)                                         
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/wily-updates/restricted/source/Sources  Hash Sum mismatch

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/wily-updates/universe/source/Sources  Hash Sum mismatch

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

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

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

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

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

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/wily-updates/multiverse/binary-i386/Packages  Hash Sum mismatch

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/wily-updates/universe/i18n/Translation-en  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

尝试:

sudo rm -vf /var/lib/apt/lists/*

sudo apt-get update

或者:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update 

如果还是不行,试着把你的Download from服务器换成Softwares and UpdatesUbuntu。也许可以Main Server试试。

一个原因可能是代理阻止压缩 .gz 文件,这可能导致 apt-get update 返回不匹配。

我希望它有帮助。

相关内容