当我检查更新时,出现“无法下载存储库信息”错误。
这是详细信息下的内容:
W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources Hash Sum mismatch,
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud) 我刚刚安装了 16.04 LTS。但是,我无法更新。
$ sudo apt-get update
Fetched 34,3 MB in 1h 51min 52s (5.110 B/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-i386/by-hash/SHA256/e145fc3961ba6091b075afe8b3a89a5f58e1346b7d6cb0a1f4166dfcc3201392 Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我尝试了很多东西,但没有帮助。由于“哈希和不匹配”错误,我尝试了Trouble download packages list 中的解决方案,但它没有解决问题。
当我运行时,sudo apt-get update我收到四个哈希和不匹配错误:
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages Hash Sum mismatch
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages Hash Sum mismatch
Run Code Online (Sandbox Code Playgroud)
我试着用
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
但这没有用,也没有用
sudo apt-get clean
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
或者
sudo apt-get dist-upgrade
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
我还有其他方法可以尝试解决这个问题吗?
在我执行了其中一个sudo apt-get install eclipse eclipse-cdt g++程序后,我发现 Ubuntu 计划下载超过 400Mb,这将需要 2 个多小时。它太长了。我还发现它是从美国下载的:
Get:21 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libservlet3.0-java
all 7.0.52-1ubuntu0.3 [294 kB]
Run Code Online (Sandbox Code Playgroud)
我在欧洲,也许我应该告诉 Ubuntu 从更近的源下载。我该怎么做?
每当我单击软件更新程序时,它都会显示无法下载存储库信息。
这几天一直在说这个,我不知道为什么,我的互联网连接很好,我可以手动下载软件。
有时当我单击“确定”时它会崩溃,然后尝试再次查找更新并给我相同的消息。
有任何想法吗?
[编辑] 我刚刚尝试了一个答案,在那里我重置了下载的来源,但我收到了这条消息:
W:The repository 'http://ppa.launchpad.net/noobslab/noobslab-conky/ubuntu xenial Release' does not have a Release file.,
W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use.,
W:See apt-secure(8) manpage for repository creation and user configuration details.,
W:https://content.runescape.com/downloads/ubuntu/dists/trusty/InRelease: Signature by key AAC9264309E4D717441DB9527373B12CE03BEB4B uses weak digest algorithm (SHA1),
E:Failed to fetch http://ppa.launchpad.net/noobslab/noobslab-conky/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found,
E:Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)