PPA PUB Key adder

Various Gnome Stuff

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Ever ran in this situation when you've just added a new repository? W: GPG error: http://ppa.lauchpad.net ubuntu Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4CF19C3233BAC1B3

Now just execute this script, copy the code next to NO_PUBKEY into your terminal when it asks for it.
Press enter and give your sudo password to get things done.

Pubkey added! :-)

I made this for ubuntu, I don't know if it works on any other linux distributions!

jackharvest

9 years ago

Thanks a billion. I'm a Linux idiot, so this helps out a ton. :)

Report

tuxsax

10 years ago

Hey, nice trick, but I think you mistyped a command in the script, shouldn't be "apt-key add" ? It says "apt-key adv"
Also, I think it would be better if you use this as the command to successfully import any key:
Quote:
gpg --keyserver keyserver.ubuntu.com --recv-keys $CODE ; gpg --export --armor $CODE | sudo apt-key add -

Hope this helps

Report

C

Dino1

10 years ago

No it is not a typo. :-)

From the apt-key man page:

adv
Pass advanced options to gpg. With adv --recv-key you can download
the public key.

Thanks for the comment!

Report

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.0
updated Apr 12 2009
added Apr 12 2009
downloads today
0
page views today 1