ubuntu/debain apt-get update报错 W: Failed to fetch XXX Hash Sum mismatch解决办法

apt-get update报错:

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-security/universe/binary-amd64/Packages  Hash Sum mismatch

vi /etc/apt/sources.list.d/mono-official-beta.list

改成:

deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free

再apt-get update就成功了。

要是这个不行的话,还可以改成:

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

要是这个也不行的话,还可以改成:

deb http://deb.debian.org/debian buster-backports main contrib non-free
deb-src http://deb.debian.org/debian buster-backports main contrib non-free

 

你可能感兴趣的:(nginx,linux)