我已经从 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
现在应该删除这个错误!