Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gnome-software-common all 3.28.1-0ubuntu4.18.04.1 [2,482 kB]
Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gnome-software-common all 3.28.1-0ubuntu4.18.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:20e50c1116271b6c38526a5d78e78c51b86bc48c7c03d0005ebe06a3e3fb23de
- SHA1:01c39d0c31ccafba417891022bd61e6c32ae72a3 [weak]
- MD5Sum:4e0888a7d1cf9a766599c554287910c1 [weak]
- Filesize:2481700 [weak]
Hashes of received file:
- SHA256:af6b6c41ed8389b2aa5f672ede2c845baa5aa1eaeacec9de6ac34fac3fa53416
- SHA1:2a769e00e6d76749e0f2b3d54975efa7d6b60701 [weak]
- MD5Sum:6bfd90cbe01b7c3e5f666860f5bd73b2 [weak]
- Filesize:2481700 [weak]
Last modification reported: Thu, 17 May 2018 11:30:45 +0000
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ubuntu-report amd64 1.2.0~bionic [1,694 kB]
Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ubuntu-report amd64 1.2.0~bionic
Hash Sum mismatch
Hashes of expected file:
- SHA256:410b0572c1b66af9648c01bf66804c09986f00ed0843cf459a9d282c8d06402d
- SHA1:e731d01aa7370cf5a8882949c04c081816792db9 [weak]
- MD5Sum:153fa99051248ebfe7880ab9e04cc307 [weak]
- Filesize:1693624 [weak]
Hashes of received file:
- SHA256:c7df99a8fdc7812a29ed79900c32fab6b371821f17e6463acbee9ac0f8684df5
- SHA1:a57af71ecd4813d1a9190105d314248eac43f5b7 [weak]
- MD5Sum:3fb8028c3be9b1411cf21ceefef78d0d [weak]
- Filesize:1693624 [weak]
Last modification reported: Tue, 03 Jul 2018 07:03:24 +0000
Fetched 4,175 kB in 6s (708 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gnome-software/gnome-software-common_3.28.1-0ubuntu4.18.04.1_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:20e50c1116271b6c38526a5d78e78c51b86bc48c7c03d0005ebe06a3e3fb23de
- SHA1:01c39d0c31ccafba417891022bd61e6c32ae72a3 [weak]
- MD5Sum:4e0888a7d1cf9a766599c554287910c1 [weak]
- Filesize:2481700 [weak]
Hashes of received file:
- SHA256:af6b6c41ed8389b2aa5f672ede2c845baa5aa1eaeacec9de6ac34fac3fa53416
- SHA1:2a769e00e6d76749e0f2b3d54975efa7d6b60701 [weak]
- MD5Sum:6bfd90cbe01b7c3e5f666860f5bd73b2 [weak]
- Filesize:2481700 [weak]
Last modification reported: Thu, 17 May 2018 11:30:45 +0000
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-report/ubuntu-report_1.2.0~bionic_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:410b0572c1b66af9648c01bf66804c09986f00ed0843cf459a9d282c8d06402d
- SHA1:e731d01aa7370cf5a8882949c04c081816792db9 [weak]
- MD5Sum:153fa99051248ebfe7880ab9e04cc307 [weak]
- Filesize:1693624 [weak]
Hashes of received file:
- SHA256:c7df99a8fdc7812a29ed79900c32fab6b371821f17e6463acbee9ac0f8684df5
- SHA1:a57af71ecd4813d1a9190105d314248eac43f5b7 [weak]
- MD5Sum:3fb8028c3be9b1411cf21ceefef78d0d [weak]
- Filesize:1693624 [weak]
Last modification reported: Tue, 03 Jul 2018 07:03:24 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
答案1
我好像你的 apt 存储库没有问题。
请sources.list
使用以下命令 检查sudo vim /etc/apt/sources.list
我认为该文件中缺少一些 URL。
这里我提供了sources.list
适用于 ubuntu 18.04 LTS 的新文件。备份旧的 sources.list 文件并替换以下链接中的内容:
https://docs.google.com/document/d/1DXVUaqi96hMuhecEMSinFVdyFwZWozbLOFu_-ZL_o08/edit
现在sudo apt-get update
希望这有帮助
答案2
如果你使用代理,请执行以下操作
sudo vi /etc/apt/apt.conf.d/proxy.conf
定义 http: 和 https: 代理
获取::http::代理”http://用户:[电子邮件保护]:港口/“;
获取::https::代理”https://用户:[电子邮件保护]:港口/“;
通常,使用基于 LAN 的代理时没有用户名,因此在这种情况下您只需输入 IP/主机名即可。
https 对应部分也一样
运行 apt update 查看错误是否消失。