ubuntu Fix The Google GPG Error on Ubuntu

想装下node.js,结果ubuntu输入apt update环境炸了,原因是google的GPG key更新了

报错

(base) woodx@Machine:~$ sudo apt update
Get:1 file:/var/cudnn-local-repo-ubuntu1804-8.8.1.3 InRelease [1,572 B]
Get:2 file:/var/nv-tensorrt-local-repo-ubuntu1804-8.5.1-cuda-11.8 InRelease [1,575 B]
Get:1 file:/var/cudnn-local-repo-ubuntu1804-8.8.1.3 InRelease [1,572 B]
Get:2 file:/var/nv-tensorrt-local-repo-ubuntu1804-8.5.1-cuda-11.8 InRelease [1,575 B]
Hit:3 https://mirrors.aliyun.com/ubuntu bionic InRelease
Hit:4 https://mirrors.aliyun.com/ubuntu bionic-security InRelease
Get:5 https://dl.google.com/linux/chrome/deb stable InRelease [1,825 B]
Hit:6 https://mirrors.aliyun.com/ubuntu bionic-updates InRelease
Hit:7 http://packages.microsoft.com/repos/code stable InRelease
Err:5 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 E88979FB9B30ACF2
Get:8 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Hit:9 https://mirrors.aliyun.com/ubuntu bionic-backports InRelease
Get:10 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1,484 B]
Hit:11 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease
Hit:12 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease
Hit:13 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease
Hit:15 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Get:16 http://download.opensuse.org/repositories/home:/pzz/xUbuntu_18.04 InRelease [1,514 B]
Get:17 http://download.opensuse.org/repositories/home:/pzz/xUbuntu_18.04 Packages [1,459 B]
Hit:14 https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease
Fetched 68.9 kB in 2s (35.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
33 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 E88979FB9B30ACF2
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 E88979FB9B30ACF2
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

解决办法: 输入 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 

posted @ 2024-02-18 23:34  woodx  阅读(204)  评论(0编辑  收藏  举报