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 this

Adding public keys to the repositories in Mint

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

Hello,
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:

viewtopic.php?f=90&t=25148&start=0&st=0&sk=t&sd=a

Thanks for any help.
jlbr
Level 1
Level 1
 
Posts: 10
Joined: Mon May 18, 2009 5:02 pm

Linux Mint is funded by ads and donations.
 

Re: Adding public keys to the repositories in Mint

Postby spet on 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 keyserver.ubuntu.com --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.
spet
Level 1
Level 1
 
Posts: 12
Joined: Sun May 31, 2009 3:42 am
Location: Basement under physics department at Aarhus University, Denmark


Return to Newbie Questions

Who is online

Users browsing this forum: Google [Bot], linuxispissingmeoff, Pilosopong Tasyo, The Big O and 17 guests