chrome 浏览器更新
ubuntu18
开了一下家里多年未开机的ubuntu18的电脑,发现有个报错
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 32EE5355A6BC6E42
W: Failed to fetch http://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 32EE5355A6BC6E42
W: Some index files failed to download. They have been ignored, or old ones used instead.
这个错误的原因是系统在更新软件源时,无法验证 Google Chrome 软件仓库的签名,因为缺少对应的 GPG 公钥。GPG 签名是用来确保软件包来自可信来源,防止被篡改,缺少公钥的话,系统无法确认仓库的合法性,所以拒绝更新该仓库,并使用旧的索引文件。
看起来是googlechrome的版本太久了,手动下载一个最新的。
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb