![无法获取..哈希值不匹配,某些索引文件下载失败,错误](https://linux22.com/image/1070816/%E6%97%A0%E6%B3%95%E8%8E%B7%E5%8F%96..%E5%93%88%E5%B8%8C%E5%80%BC%E4%B8%8D%E5%8C%B9%E9%85%8D%EF%BC%8C%E6%9F%90%E4%BA%9B%E7%B4%A2%E5%BC%95%E6%96%87%E4%BB%B6%E4%B8%8B%E8%BD%BD%E5%A4%B1%E8%B4%A5%EF%BC%8C%E9%94%99%E8%AF%AF.png)
我打算在终端上运行这些命令
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
并出现这些错误
E: Failed to fetch
http://il.archive.ubuntu.com/ubuntu/dists/focal-updates/universe/cnf/Commands-amd64.xz Hash Sum mismatch
...
E: Some index files failed to download.
They have been ignored, or old ones used instead.
我尝试了这些建议来解决问题,但没有效果
sudo apt-get clean
sudo rm -r /var/lib/apt/lists/*
全部输出sudo apt update
Hit:1 http://il.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://il.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:3 http://il.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease
Get:5 http://il.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [490 kB]
Get:6 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,032 kB]
Get:7 http://il.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [230 kB]
Get:8 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB]
Get:9 http://il.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 48x48 Icons [60.5 kB]
Get:10 http://il.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64 Icons [95.1 kB]
Get:11 http://il.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64@2 Icons [29 B]
Hit:12 http://archive.canonical.com/ubuntu focal InRelease
Get:13 http://il.archive.ubuntu.com/ubuntu focal-updates i386 Contents (deb) [22.1 MB]
Hit:14 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:15 http://il.archive.ubuntu.com/ubuntu focal-updates amd64 Contents (deb) [47.4 MB]
Get:16 http://il.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [13.5 kB]
Get:17 http://il.archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [17.7 kB]
Get:18 http://il.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [272 kB]
Get:19 http://il.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [39.5 kB]
Get:20 http://il.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [456 B]
Get:21 http://il.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [577 kB]
Get:22 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [784 kB]
Get:23 http://il.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [171 kB]
Get:24 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [330 kB]
Get:25 http://il.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 48x48 Icons [205 kB]
Get:26 http://il.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64 Icons [364 kB]
Get:27 http://il.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64@2 Icons [29 B]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Ign:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata
Get:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.7 kB]
Err:28 http://il.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata
Hash Sum mismatch
Hashes of expected file:
- Filesize:17744 [weak]
- SHA256:b276cfadcfca9a55e5c550b363ff1ad159740034bc0cd3217abf22812039533e
- SHA1:170f2bcf508eeba44bfdf53acb57621481fde361 [weak]
- MD5Sum:48a3434d3aaa43754acfe947b8ad35be [weak]
Hashes of received file:
- SHA256:7ca4637ad5e301229b9d8e8a1ef912f152cd94b034ba3bd37b758d1144fdf343
- SHA1:6d39c519e577c936c370d9ea0f5bd99476273897 [weak]
- MD5Sum:9d022b5ab971ce3553c520acf579eb5b [weak]
- Filesize:17744 [weak]
Last modification reported: Wed, 16 Jun 2021 18:18:29 +0000
Release file created at: Thu, 17 Jun 2021 14:13:58 +0000
Fetched 132 kB in 4s (34.8 kB/s)
Reading package lists... Done
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/focal-updates/universe/cnf/Commands-amd64.xz Hash Sum mismatch
Hashes of expected file:
- Filesize:17744 [weak]
- SHA256:b276cfadcfca9a55e5c550b363ff1ad159740034bc0cd3217abf22812039533e
- SHA1:170f2bcf508eeba44bfdf53acb57621481fde361 [weak]
- MD5Sum:48a3434d3aaa43754acfe947b8ad35be [weak]
Hashes of received file:
- SHA256:7ca4637ad5e301229b9d8e8a1ef912f152cd94b034ba3bd37b758d1144fdf343
- SHA1:6d39c519e577c936c370d9ea0f5bd99476273897 [weak]
- MD5Sum:9d022b5ab971ce3553c520acf579eb5b [weak]
- Filesize:17744 [weak]
Last modification reported: Wed, 16 Jun 2021 18:18:29 +0000
Release file created at: Thu, 17 Jun 2021 14:13:58 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
我该如何解决这个问题?谢谢!
答案1
这似乎不是您添加的新 ppa 的错误:相反,这似乎是您使用的 ubuntu 存档中的一个错误。我无法重现它:您可以再试一次吗?您可能在存档正在更新时正在工作。