Adding public keys to the repositories in Mint

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Level 1
Level 1
Posts: 10
Joined: Mon May 18, 2009 5:02 pm

Adding public keys to the repositories in Mint

Postby jlbr » Sun May 31, 2009 10:58 am

I'm sorry to post this question again. I posted it before but got absolutely no replies. I know how to add repositories to the Software Sources list in Mint now. However, I'm still stuck as to how to add the public keys.

Can anybody help me out on this one, point me towards a thread or something? I was only able to find one thread about it and it was confusing since the posters were arguing between them about something not even related to the subject:


Thanks for any help.

Level 1
Level 1
Posts: 12
Joined: Sun May 31, 2009 3:42 am
Location: Basement under physics department at Aarhus University, Denmark

Re: Adding public keys to the repositories in Mint

Postby spet » Sun May 31, 2009 11:15 am

If you have a GPG key in form of a file (say key.gpg) you can add it using

Code: Select all

sudo apt-key add key.gpg

If you see an error message when doing apt-get update it will contain a key id (say 60D11217247D1CFF). Then add it using

Code: Select all

KEY=60D11217247D1CFF gpg --keyserver --recv-key $KEY && gpg --export --armor $KEY | sudo apt-key add - && sudo apt-get update

Remember that this only works for repos signed with keys uploaded to Ubuntu's keyserver, which includes all launchpad PPAs. If the key is located on another keyserver, change accordingly.

Return to “Newbie Questions”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], JoeFootball and 13 guests