删除 packagecloud 存储库和密钥

删除 packagecloud 存储库和密钥

因此我运行了 sudo apt update 并收到一些错误:

N: Skipping acquisition of configured file 'main/binary-i386/Packages', as repository N: 
Skipping acquisition of configured file 'main/binary-i386/Packages', as repository 
'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't support 
architecture 'i386'
 W: GPG error: https://packagecloud.io/shiftkey/desktop/any any InRelease: The following 
 signatures couldn't be verified because the public key is not available: NO_PUBKEY 
B7E65990E879472F
E: The repository 'https://packagecloud.io/shiftkey/desktop/any any InRelease' is not 
signed.
'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't support 
architecture 'i386'
 W: GPG error: https://packagecloud.io/shiftkey/desktop/any any InRelease: The following 
  signatures couldn't be verified because the public key is not available: NO_PUBKEY 
 B7E65990E879472F
E: The repository 'https://packagecloud.io/shiftkey/desktop/any any InRelease' is not signed.

我搜索了有关如何删除该存储库的信息,但没有找到任何明确的答案

当我尝试删除 GPGkey 时,出现“未找到数据”的错误,因此也无法删除密钥。有人知道如何消除这些错误吗?

答案1

  1. ls /etc/apt/sources.list.d/

查找您要删除的 repo 的名称,或者如果您不确定,请使用任何文本编辑器打开该文件,如果它提到您要删除的 repo 的名称(在我的情况下它有“packagecloud.io”和“git-lfs”)那么你应该可以开始了

  1. rm /etc/apt/sources.list.d/<insert file name here>

希望这可以帮助

相关内容