1. 前言
创作开始时间:2022年11月14日12:32:25
如题,解决apt update报错:W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InRelease
的问题。
2. 环境
- Ubuntu 16.04
3. 问题描述
在运行sudo apt update
的时候,报错如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B
W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B
W: Some index files failed to download. They have been ignored, or old ones used instead.
(base) apr@apr:~$ cat /etc/apt/sources.list.d/google-chrome.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
4. 解决方案
4.1. 管用的方案
运行:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
sudo apt-get update
然后就没有报错了。
4.2. (在本机)不管用的方案
运行:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
可能由于网址不可访问的原因,没能起作用。这行命令没反应。
5. 小结
扎扎实实做事。搞清楚一个个问题
创作结束时间:2022年11月14日12:46:13
扫描二维码关注公众号,回复:
14968637 查看本文章
6. 参考文献
- Apt update error - “An error occurred during the signature verification” (Chrome) [duplicate] https://askubuntu.com/questions/943146/apt-update-error-an-error-occurred-during-the-signature-verification-chrome 这个有用。
- ubuntu-如何解决错误-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release https://blog.csdn.net/liuk10/article/details/50955407 这个对我的场景貌似不work
- Chrome - apt-get update Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages.bz2 Hash Sum mismatch [duplicate] https://askubuntu.com/questions/771523/chrome-apt-get-update-failed-to-fetch-http-dl-google-com-linux-chrome-deb-di