刪除的 Skype 仍然存在有關 Skype 的 apt get update 錯誤

刪除的 Skype 仍然存在有關 Skype 的 apt get update 錯誤

我已經從 ubuntu 20.04 中徹底清除了 Skype,因為每次 apt-get update 時我都會收到以下錯誤並且找不到解決方案:

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

現在應該刪除此錯誤!

相關內容