Many articles about Ubuntu on the Internet (including ours) allow you to add PPA to get the latest version of the application. PPA is very useful, but it is not easy to deal with the loss of PPA keys. To obtain the PPA key, you usually have to go to the terminal to beat independent commands for each lost PPA key. If you lose a lot of PPA keys, it will take some time. I hope there is a simple way. For example, there is a way to automatically complete this job. There is something like this. If you
Many articles about Ubuntu on the Internet (including ours) allow you to add PPA to get the latest version of the application. PPA is very useful, but it is not easy to deal with the loss of PPA keys.
To obtain the PPA key, you usually have to go to the terminal to beat independent commands for each lost PPA key. If you lose a lot of PPA keys, it will take some time.
I hope there is a simple way. For example, there is a way to automatically complete this job.
There is something like this. If you lose some PPA keys, such as @ _ honza (one of my readers), you can simply paste the following interrupt command to complete the work you need to do.
Sudo apt-get update 2>/tmp/keymissing;
For key in $ (grep "NO_PUBKEY"/tmp/keymissing | sed "s/. * NO_PUBKEY //"); do
Echo-e "nProcessing key: $ key ";
Gpg -- keyserver subkeys.pgp.net -- recv $ key & gpg -- export -- armor $ key | sudo apt-key add -;
Done
A simpler (more automated) Way to get lost PPA keys is to run a small script called launchpad-update when you update your software source.
First download launchpad-update to the desktop, right-click the file, and select the "Allow executing file as program" check box in "Properties. Then run the following command:
Cd Desktop
Sudo mv launchpad-update/usr/bin
Echo "APT: Update: Pre-Invoke {\" if [-x/usr/bin/launchpad-update]; then/usr/bin/launchpad-update; fi; \ "};"> 05ppa
Sudo mv 05ppa/etc/apt. conf. d/
Now, whenever you update your software source, it will automatically help you get the lost ppa gpg key. You can also manually run "launchpad-update" when you want to obtain the key ".