加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – debian镜像:Hash Sum不匹配

发布时间:2020-12-13 17:07:25 所属栏目:Linux 来源:网络整理
导读:我有一个镜像服务器,我在学校维护. $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 update ...... W: Failed to fetch http:// mirror.cs.nchu.edu.tw/debian/dists/jessie/main/source/Sour
我有一个镜像服务器,我在学校维护.

$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 update

......
 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.

在镜像本身或我的一些机器中,它最终失败了.(有些工作正常.)我曾尝试过以下命令推荐,并且不起作用

$apt-get clean
$rm -rf /var/cache/apt/*
$rm -rf /var/lib/apt/lists/*
$apt-get update

我在互联网上找不到其他解决方案.有谁知道如何解决这个问题?

解决方法

如果删除/ 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;

另见here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读