如何彻底永久摆脱 Skype?GPG 错误

如何彻底永久摆脱 Skype?GPG 错误

我在使用 Skype 应用程序时遇到了很大问题Ubuntu 22.04。有很多错误,我最终决定删除此应用程序并切换到网络版本。我卸载了它,但 skype 仍然保留在我的系统中。

当我尝试执行时:sudo apt 更新 我明白了:

$ sudo apt update
Hit:1 http://pl.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://pl.archive.ubuntu.com/ubuntu jammy-updates InRelease                                         
Hit:3 http://pl.archive.ubuntu.com/ubuntu jammy-backports InRelease                                       
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                                             
Hit:5 http://packages.microsoft.com/repos/code stable InRelease                                           
Hit:6 https://download.docker.com/linux/ubuntu jammy InRelease                                                     
Hit:7 https://repo.skype.com/deb stable InRelease                                                                  
Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Err:7 https://repo.skype.com/deb stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1F3045A5DF7587C3
Fetched 110 kB in 6s (18,2 kB/s)                                                                                   
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. 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
W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1F3045A5DF7587C3
W: Some index files failed to download. They have been ignored, or old ones used instead.

我不想再看到这个警告了。我只想摆脱它,并且知道以后如何处理这种问题。

我试图这样做(删除 skype 后仍然有关于 skype 的 apt get update 错误):

sudo rm /etc/apt/sources.list.d/skype-stable.list
sudo rm /etc/apt/sources.list.d/skype-stable.save

但:

$ sudo rm /etc/apt/sources.list.d/skype-stable.list
rm: cannot remove '/etc/apt/sources.list.d/skype-stable.list': Operation not permitted

有人能帮我解决这个问题吗?真烦人……


更新:

$ ls /etc/apt/sources.list.d
deadsnakes-ubuntu-ppa-jammy.list  skype-stable.list
docker.list                       skype-stable.list.save
docker.list.save                  vscode.list
google-chrome.list                vscode.list.save
google-chrome.list.save

答案1

好的,我的解决办法是回答该帖子: 权限被拒绝:'/etc/apt/sources.list.d/google-earth.list'

该文件是不可变的,我不知道为什么。

我执行了这个命令,发现这个文件是不可变的:

$ lsattr /etc/apt/sources.list.d/skype-stable.list
----i--------e-- /etc/apt/sources.list.d/skype-stable.list

之后我删除了文件不变性:

sudo chattr -i /etc/apt/sources.list.d/skype-stable.list

最后将其删除:

sudo rm /etc/apt/sources.list.d/skype-stable.list

相关内容