Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1306  / 3 Years ago, sat, october 23, 2021, 5:49:06

I notice the following:




  1. I add a ppa using add-apt-repository, for example the wine ppa, mozilla security, nvidia drivers, etc..


  2. When I go to the Update Manager and tell it to CHECK for updates it throws me a PPA error.


  3. To solve the error I add the same PPA again.




Why do I have to add the PPA again (This also can be done by adding the received key alone with apt-key) but why does this problem happen anyway.



UPDATE - I have to add two small details.



First that removing the previous PPA that has the GPG problem and then adding it up again will have the same effect as adding it twice since adding it again (without removing it first) will overwrite the same PPA. But still in the end you would have to add it twice.



Second using the Update Manager (Clicking on the Settings Button and going to the Software Sources) to add the PPA has the same problem as adding it in the terminal. In both cases you have to add it twice. I can confirm this for Nvidia ppa, Mozilla Security ppa, Wine ppa and any other PPA I started trying in 11.10. I have to add that this issue was not a problem in 11.04. It started with 11.10. Somehow there is some minor details that trying to add a PPA the first time does not trigger the key for it. Doing it a second time triggers the key and you can use the Update Manager (or any other updater) without having a warning popup saying something about a PPA problem.



UPDATE 2 - I have tested several PPA. They all have the same problem adding them via the GUI Software Sources or via the terminal add-apt-repository. I have to actually add them, run the update command in terminal or via gui and then add them again to solve the problem. Does not matter from where I add them or update or add them again.


More From » 11.10

 Answers
7

You can fix broken or bad GPG Keys by installing launchpad-getkeys from the WebUpd8 PPA. In terminal use the following commands:



sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install launchpad-getkeys


Since you seem to be having problems with Update Manager recognizing new PPAs, simply do the above steps without involving the Update Manager. Once you have installed the package, run the following command in your terminal:



sudo launchpad-getkeys


Wait for the program to finish. Your terminal should look similar to this:



enter image description here



As it says, you should have no more problems with missing GPG Keys. This method of fixing your PPA's keys is preferable to adding the same PPA twice, which can cause update problems of its own.



Hope this helps! Haha it's actually the second time today I've answered a question with this fix.


[#41796] Sunday, October 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aclavadoug

Total Points: 317
Total Questions: 103
Total Answers: 125

Location: Bangladesh
Member since Wed, Mar 24, 2021
3 Years ago
;