ubuntu 从 14.04 lts 更新失败。无法获取某些内容

ubuntu 从 14.04 lts 更新失败。无法获取某些内容

这与 无法在 Ubuntu 14.04 LTS (Trusty Tahr) 上获取更新

错误是:

    Error during update 

A problem occurred during the update. This is usually some sort of 
network problem, please check your network connection and retry. 

W:Failed to fetch 
http://extras.ubuntu.com/ubuntu/dists/utopic/Release Unable to find 
expected entry 'main/binary-amd-64/Packages' in Release file (Wrong 
sources.list entry or malformed file) 
, W:Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/utopic/Release Unable to find 
expected entry 'main/binary-amd-64/Packages' in Release file (Wrong 
sources.list entry or malformed file) 
, W:Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/utopic-updates/Release Unable 
to find expected entry 'main/binary-amd-64/Packages' in Release file 
(Wrong sources.list entry or malformed file) 
, W:Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/utopic-backports/Release 
Unable to find expected entry 'main/binary-amd-64/Packages' in 
Release file (Wrong sources.list entry or malformed file) 
, W:Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/utopic-security/Release Unable 
to find expected entry 'main/binary-amd-64/Packages' in Release file 
(Wrong sources.list entry or malformed file) 
, W:Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/utopic-proposed/Release Unable 
to find expected entry 'main/binary-amd-64/Packages' in Release file 
(Wrong sources.list entry or malformed file) 
, E:Some index files failed to download. They have been ignored, or 
old ones used instead. 


Restoring original system state

使用的命令是:

sudo do-release-upgrade

[更新]
正在 ping

ping archive.ubuntu.com

输出为:

64 bytes from obake.canonical.com (91.189.92.200): icmp_seq=1 ttl=52 time=294 ms
64 bytes from obake.canonical.com (91.189.92.200): icmp_seq=2 ttl=52 time=295 ms
64 bytes from obake.canonical.com (91.189.92.200): icmp_seq=3 ttl=52 time=295 ms

......直到我阻止了它。

还有系统设置->详细信息显示这是 14.04LTS

输出:

dpkg --print-architecture

amd64

我打开了/etc/apt/sources.list文件,没有提到 utopic。到处都是值得信赖的。

[更新 - 2]
我检查了上述链接,确实没有main/binary-amd-64/Packages但到处都有的条目main/binary-amd64/Packages(请注意 amd 和 64 之间的连字符)。

我使用了以下命令:

grep -r "amd-64" /etc/apt

并且没有输出。

答案1

备份/etc/apt/sources.list文件并注释掉/etc/apt/sources.list.d文件夹中的所有文件。然后使用以下命令sources.list进行升级:

deb http://it.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main universe restricted multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security main universe restricted multiverse

deb http://it.archive.ubuntu.com/ubuntu/ trusty-updates main universe restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ trusty-updates main universe restricted multiverse

相关内容