Ubuntu – Adding a ppa repo and get key signed – no valid OpenPGP data – proxy issue

gnupgppaPROXY

I want to get a ppa key signed

I tried

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A258828C     

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 --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys A258828C
gpg: requesting key A258828C from hkp server keyserver.ubuntu.com
gpgkeys: HTTP fetch error 7: couldn't connect to host
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

and

wget -q http://ppa.launchpad.net/panda3d/ppa/ubuntu/dists/lucid/Release.gpg -O- | apt-key add -

gpg: no valid OpenPGP data found

I am behind a proxy , in apt.conf it is configured correctly

Acquire::http::Proxy "http://proxy.mycompany.de:3128";

I also tried setting proxy

export http_proxy="proxy.mycompany.de:3128"
export https_proxy="proxy.mycompany.de:3128"

Best Answer

  • Try

    export http_proxy=http://proxy.mycompany.de:3128; export https_proxy=$http_proxy
    sudo -E apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A258828C     
    
  • Related Question