首先感谢您的帮助!我遇到了一个奇怪的情况。我在 ESXi 白盒上运行了几个虚拟机,其中一个 Linux 虚拟机开始出现异常。
我无法执行 apt-get 升级或任何其他安装(docker 容器),因为安装总是失败并显示“哈希值不匹配“。如果我尝试运行简单的“wgethttps://mirror.umd.edu/ubuntu-iso/20.04/ubuntu-20.04-live-server-amd64.iso“经过测试,速度约为 30-1500KB/s。而对于 apt-get upgrade,速度相对正常,但也失败了。LAN 速度很好,约为 100MB/s。
如果我尝试在另一台虚拟机中执行相同操作,同样使用 18.04LTS,则行为完全正常。安装顺利完成,速度约为 25MB/s,与我的连接一致。
我没有在 ESXI 或 Ubuntu VM 中执行任何硬件更改或配置更改。进行上述“测试”告诉我这是一个软件问题,而不是硬件问题。
我尝试过谷歌搜索,但没有结果。 sudo rm -rf /var/lib/apt/lists/* sudo apt-get update sudo apt-get upgrade
panda@box:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 75.1 MB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-firmware all 1.173.18 [75.1 MB]
Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-firmware all 1.173.18
Hash Sum mismatch
Hashes of expected file:
- SHA256:099bbc0f958db43fad328f9f09065e448a85dcdb126691c2dab040213af13e41
- SHA1:31b98ad6e6d2ca49e1a5297d9913d0be41f2a965 [weak]
- MD5Sum:60b003009991844b6f8cd73bc185989a [weak]
- Filesize:75056824 [weak]
Hashes of received file:
- SHA256:0c404bce54ff28a87300f0ba933726ea7bc7008cc1edd4b8586f2f93a5bab2e8
- SHA1:d5d35d984788d6e25b10abdaf09f33614dd1fa72 [weak]
- MD5Sum:94495275aa23904b065cb37185d35b8e [weak]
- Filesize:75056824 [weak]
Last modification reported: Wed, 06 May 2020 15:18:25 +0000
Fetched 75.1 MB in 6s (12.6 MB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.173.18_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:099bbc0f958db43fad328f9f09065e448a85dcdb126691c2dab040213af13e41
- SHA1:31b98ad6e6d2ca49e1a5297d9913d0be41f2a965 [weak]
- MD5Sum:60b003009991844b6f8cd73bc185989a [weak]
- Filesize:75056824 [weak]
Hashes of received file:
- SHA256:0c404bce54ff28a87300f0ba933726ea7bc7008cc1edd4b8586f2f93a5bab2e8
- SHA1:d5d35d984788d6e25b10abdaf09f33614dd1fa72 [weak]
- MD5Sum:94495275aa23904b065cb37185d35b8e [weak]
- Filesize:75056824 [weak]
Last modification reported: Wed, 06 May 2020 15:18:25 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?