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

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

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

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

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/