import gpg key on a proxy enabled firewalled (11371 blocked port) corporate network
- Keywords:
- import gpg repository key proxy firewall
- Last updated by:
- marcobra (Marco Braida)
Corporate firewalls commonly block port 11371 which launchpad PPA’s use for their keys.
Assuming we need to import A258828C repository key
and we are behind a firewalled net with an active proxy answering on 3128 port on:
proxy.mycompany
with ip: 192.168.100.59
So to bypass this and to import the key we can use
export http_proxy=http://
sudo -E apt-key adv --keyserver keyserver.
Then we can add the repository sources lines to the /etc/apt/
/etc/apt/
Usually we also check/set there are proxy defined into /etc/apt/apt.conf file
Acquire:
Acquire: