无法获取...哈希总和不匹配。试过 rm apt/list 但没有用

Tai*_*ian 6 updates update-manager apt

正如您在标题中看到的,我收到了“无法获取...哈希和不匹配”错误。我试过这种方法:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

但它没有用。我仍然遇到同样的错误。

Err http ://vn.archive.ubuntu.com trusty-updates/universe amd64 Packages
Get:99 http ://vn.archive.ubuntu.com trusty-updates/universe amd64 Packages [1,789 B]
Get:100 http ://vn.archive.ubuntu.com trusty-updates/main i386 Packages [1,789 B]
Fetched 28.3 MB in 5min 15s (89.8 kB/s) 
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources  Hash Sum mismatch
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/source/Sources  Hash Sum mismatch
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Hash Sum mismatch
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  Hash Sum mismatch
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  Hash Sum mismatch
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/i18n/Translation-en  Hash Sum mismatch
W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/i18n/Translation-en  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)

请帮忙!非常感谢!

小智 4

如果删除/var/lib/apt/lists/*不起作用...
(尤其是如果您位于代理后面),请像这样修复“哈希和不匹配”

使用此内容创建文件 /etc/apt/apt.conf.d/99fixbadproxy

Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy    true;
Run Code Online (Sandbox Code Playgroud)

另请参阅此处


归档时间:

查看次数:

12003 次

最近记录:

9 年,10 月 前