![删除 skype 后仍然有关于 skype 的 apt get update 错误](https://linux22.com/image/1182072/%E5%88%A0%E9%99%A4%20skype%20%E5%90%8E%E4%BB%8D%E7%84%B6%E6%9C%89%E5%85%B3%E4%BA%8E%20skype%20%E7%9A%84%20apt%20get%20update%20%E9%94%99%E8%AF%AF.png)
我已经从 ubuntu 20.04 中完全清除了 Skype,因为每次 apt-get 更新时我都会收到以下错误,并且找不到解决方案:
Err:4 https://repo.skype.com/deb stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1F3045A5DF7587C3
Reading package lists... Done
W: GPG error: https://repo.skype.com/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1F3045A5DF7587C3
E: The repository 'https://repo.skype.com/deb stable InRelease' is not signed.
但是,即使我已删除公钥、所有 Skype 安装和 Snap,在执行 apt-get update 时仍然会收到上述错误。
到底是怎么回事?
答案1
解决方法:
sudo rm /etc/apt/sources.list.d/skype-stable.list
sudo rm /etc/apt/sources.list.d/skype-stable.save
答案2
1F3045A5DF7587C3
密钥不再有效,可以使用apt-key del
命令将其删除。
步骤1:删除无效的键:
sudo apt-key del 1F3045A5DF7587C3
如果有人正在运行 Skype,但在运行命令时遇到签名验证错误,sudo apt update
请继续执行以下步骤。
第2步:添加有效密钥:
curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add -
步骤3:运行以下命令:
sudo apt update
sudo apt upgrade
现在应该删除这个错误!