[Solved] apt update error: W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InRelease

1 Introduction

Creation start time: November 14, 2022 12:32:25

As the title, solve W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InReleasethe problem of apt update error:

2. Environment

  • Ubuntu 16.04

3. Problem description

When running sudo apt update, the error is as follows:

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. Solutions

4.1. Solutions that work

run:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
sudo apt-get update

Then there is no error.

4.2. (on local) solutions that don't work

run:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

It may not work because the URL is not accessible. This line of command does not respond.

5. Summary

Do things in a down-to-earth manner. figure out each problem

Creation end time: November 14, 2022 12:46:13

6. References

Guess you like

Origin blog.csdn.net/weixin_39278265/article/details/127845199