Multipass创建的Ubuntu 20.04 VM执行apt-get update哈希和不匹配
Hash Sum mismatch error on
sudo apt-get update in default Multipass Ubuntu 20.04 VM I'm hitting a Hash Sum mismatch error when running sudo apt-get update for the first time on a default Ubuntu 20.04 Multipass virtual machine. Multiple repository files are showing hash values that don't match the expected ones.
I've tried several common solutions found online, but none of them fixed the issue:
Attempted Solutions
- Solution 1:
sudo rm -rf /var/lib/apt/lists/* sudo apt-get update -o Acquire::CompressionTypes::Order::=gz sudo apt-get update && sudo apt-get upgrade - Solution 2:
sudo rm -rvf /var/lib/apt/lists/* echo "APT::Cache-Limit \"100000000\";" >> /etc/apt/apt.conf.d/70debconf - Solution 3:
sudo rm -rvf /var/lib/apt/lists/* && sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad && sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status && sudo apt-get update - Solution 4:
sudo apt-get autoclean && sudo apt-get autoremove -y && sudo apt-get update - Solution 5:
sudo rm -rf /var/lib/apt/lists sudo apt-get clean sudo apt-get update
I also tried adding the Ubuntu key server with this command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192
My sources.list content:
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted deb http://archive.ubuntu.com/ubuntu focal universe deb http://archive.ubuntu.com/ubuntu focal-updates universe deb http://archive.ubuntu.com/ubuntu focal multiverse deb http://archive.ubuntu.com/ubuntu focal-updates multiverse deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse
It's worth noting that running the same sudo apt-get update command works flawlessly in my WSL2 environment. I'd really appreciate any suggestions to resolve this problem. Thanks!
内容的提问来源于stack exchange,提问作者Bettina
相关产品推荐
相关产品推荐

