chi*_*mbo 25 package-management apt google-chrome 18.04
我在运行时遇到一个我以前从未见过的错误sudo apt update
。到达后发生错误http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
。我最近没有做任何我知道可能会突然导致此错误发生的事情。
这是完整的输出sudo apt update
:
? ~ sudo apt update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://packages.ros.org/ros/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Get:6 http://dl.google.com/linux/chrome/deb stable Release [943 B]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:9 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]
Get:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,104 B]
Err:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
File has unexpected size (1103 != 1104). Mirror sync in progress? [IP: 172.217.11.78 80]
Hashes of expected file:
- Filesize:1104 [weak]
- SHA256:77ca2eefc7975f403bc1c9fb2dd97ed4a010d9c0b3f7932f07dd7995fc7c67a1
- SHA1:9c0534b7034652963231d629283e83833f706121 [weak]
- MD5Sum:14dd8b71c35111b40f1f06c565349097 [weak]
Release file created at: Wed, 29 May 2019 17:35:47 +0000
Hit:4 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 178 kB in 1s (219 kB/s)
Reading package lists... Done
E: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages.gz File has unexpected size (1103 != 1104). Mirror sync in progress? [IP: 172.217.11.78 80]
Hashes of expected file:
- Filesize:1104 [weak]
- SHA256:77ca2eefc7975f403bc1c9fb2dd97ed4a010d9c0b3f7932f07dd7995fc7c67a1
- SHA1:9c0534b7034652963231d629283e83833f706121 [weak]
- MD5Sum:14dd8b71c35111b40f1f06c565349097 [weak]
Release file created at: Wed, 29 May 2019 17:35:47 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我在其他地方读到,从我的软件更新源中删除条目将消除错误。但这是否意味着我将不再获得 Google Chrome 的更新?我认为必须有比这更好的解决方案。
通过 Google 搜索此错误,我找不到其他任何人在 google chrome stable main 中发生的确切错误。我很想知道这是否是服务器的临时问题?
我在台式机上运行 Ubuntu 18.04.2。
将其称为存储库服务器问题的几个用户似乎是正确的。
即使在第一次看到错误和大量重新启动后几个小时,错误昨天也不会消失。
然而,今天,错误消失了。我现在可以apt update
毫无问题地运行了。感谢大家为我节省了数小时无意义的调试。:)
小智 6
您可以使用以下命令。
sudo apt-get clean
清除检索到的包文件的本地存储库
sudo apt-get update
从存储库下载包列表并“更新”它们以获取有关最新版本的包及其依赖项的信息。
sudo apt-get clean
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)