projectz

Tech, Gadgets, Photography, Social Media and Poor Spelling

Getting Ubuntu PPA repositories to pull in keys via a proxy

keyring

Pulling PPA Repositories into Ubuntu involves getting a signed key from a keyserver, this is normally not a problem, however it uses the hkp:// system which most proxies just don’t understand.

There are several suggestions on how to fix this issue, lets start with what DOESN’T work

DOES NOT WORK

Changing the apt-conf.d will help with apt-get commands but not for ggetting the keyserver key down

In /etc/apt/apt.conf.d/01proxy add something like this

Acquire::http { Proxy "http://192.168.0.99:3142"; };

This will proxy all aptitude downloads,

This doesn’t work

Neither does this…

export http_proxy=http://<proxy>:<port>
export https_proxy=http://<proxy>:<port>
sudo -E apt-add-repository ppa:linaro-maintainers/toolchain

Foe exactly the same reason

DOES WORK

sudo apt-key adv --keyserver-options http-proxy=http://URL:PORT/ --keyserver keyserver.ubuntu.com --recv-keys GPG_KEY

Enter your own proxy details and the key number for your REPO and check the keyserver is the same as above

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on June 28, 2013 by in Linux, Ubuntu and tagged , , , , , , , , , , , , , .
%d bloggers like this: