use*_*731 7 linux debian mirror apt
我有一个在学校维护的镜像服务器。
$ uname -a Linux CSE-Cloud01 4.0.0-1-amd64 #1 SMP Debian 4.0.2-1 (2015-05-11) x86_64 GNU/Linux
$ sudo apt-get 更新
......
W: Failed to fetch http:// mirror.cs.nchu.edu.tw/debian/dists/jessie/main/source/Sources Hash Sum mismatch
W: Failed to fetch http:// mirror.cs.nchu.edu.tw/debian/dists/jessie/main/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http:// mirror.cs.nchu.edu.tw/debian/dists/jessie/non-free/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http:// mirror.cs.nchu.edu.tw/debian/dists/jessie/main/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)
在镜像本身或我的某些机器中,它最终失败了。(有些工作正常。)我曾尝试执行以下推荐的命令,但无法正常工作
$ apt-get clean
$ rm -rf /var/cache/apt/*
$ rm -rf /var/lib/apt/lists/*
$ apt-get update
Run Code Online (Sandbox Code Playgroud)
我在互联网上找不到其他解决方案。有谁知道如何解决这个问题?
小智 8
如果删除/var/lib/apt/lists/*不起作用......
(特别是如果你在代理后面),像这样修复“Hash Sum Mismatch”:
使用此内容创建文件
/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)
另见此处
| 归档时间: |
|
| 查看次数: |
11302 次 |
| 最近记录: |