如何在Ubuntu中自动导入丢失的GPG密钥

clip_image001

If you have missing GPG keys you’ll get an error like the one above in the screenshot if you are using Synaptic Package Manager and a similar one if you use the terminal. “Launchpad-getkeys” is a script that imports these missing keys automatically.

如果您缺少GPG密钥,则在使用Synaptic软件包管理器时会收到类似屏幕快照中的错误,而在使用终端时会出现类似的错误。 “ Launchpad-getkeys”是一个脚本,可以自动导入这些丢失的密钥。

When adding PPAs to Ubuntu via “apt-add-repository” the PPA and its key will be imported. These GPG keys are a way to verify the packages in that PPA. But if you add a PPA when the Ubuntu key server is down the key will not be imported and the PPA will produce an error every time you try refreshing your packages. Ubuntu Forums user (blackgr) created a script called “launchpad-getkeys” that will import all missing keys automatically. To get this script on your computer, type these commands in a terminal and hit “Enter” after every line.

通过“ apt-add-repository”将PPA添加到Ubuntu时,PPA及其密钥将被导入。 这些GPG密钥是一种验证该PPA中的软件包的方法。 但是,如果在Ubuntu密钥服务器关闭时添加PPA,则不会导入密钥,并且每次尝试刷新软件包时PPA都会产生错误。 Ubuntu论坛用户(blackgr)创建了一个名为“ launchpad-getkeys”的脚本,该脚本将自动导入所有丢失的密钥。 要在计算机上获取此脚本,请在终端中键入以下命令,并在每行之后单击“ Enter”。

sudo apt-add-repository ppa:nilarimogard/webupd8

sudo apt-add-repository ppa:nilarimogard / webupd8

sudo apt-get update

sudo apt-get更新

sudo apt-get install launchpad-getkeys

须藤apt-get install launchpad-getkeys

Launchpad-getkeys is now installed. To import keys, just run:

现在已安装Launchpad-getkeys。 要导入密钥,只需运行:

sudo Launchpad-getkeys

sudo Launchpad-getkeys

clip_image008

As launchpad-getkeys says, you shouldn’t see any key errors anymore.

就像launchpad-getkeys所说的那样,您应该再也不会看到任何键错误。

翻译自: https://www.howtogeek.com/72934/how-to-automatically-import-missing-gpg-keys-in-ubuntu/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值