LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Adding PPA key to apt (https://www.linuxquestions.org/questions/linux-software-2/adding-ppa-key-to-apt-748592/)

lgp171188 08-18-2009 10:29 PM

Adding PPA key to apt
 
I tried to download and add a PPA key but I get an error like this

Code:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7613768D
[sudo] password for guru:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 7613768D
gpg: requesting key 7613768D from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

I am behind a proxy server and firewall. But adding --keyserver-option proxy-server=<proxy server> doesn't work either. Is there a way I can manually do the downloading and adding of the key? I am unable to download the key using gpg as well.

everest40 08-19-2009 02:14 AM

Try this, assuming you're using Ubuntu:
  1. In your web browser, go to http://keyserver.ubuntu.com:11371/pk...39676F7613768D
  2. Copy the pgp public key block, including the lines saying "begin pgp public key block" and "end pgp public key block"
  3. Paste it into a text file and save it anywhere.
  4. Open System->Administration->Software Sources, put in your password if asked, and click on the Authentication tab
  5. Press the Import Key File button, select the file you just saved, and press OK

In the future, you can search for keys by directing your browser to http://keyserver.ubuntu.com:11371/


All times are GMT -5. The time now is 05:23 PM.