Tech, Gadgets, Photography, Social Media and Poor Spelling

Getting Ubuntu PPA repositories to pull in keys via a proxy


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


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 ""; };

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


sudo apt-key adv --keyserver-options http-proxy=http://URL:PORT/ --keyserver --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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s


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