Can't pull gpg key through proxy

  • Hi,

    I want to install i-mscp on a debian 9.4 behind a proxy. The proxy is configured and matches these settings:…art:howto:navigationproxy

    When I start the installation process, it hangs at 27% during " Processing APT repositories".
    After a while the following error message appears:

    autoinstaller::Adapter::DebianAdapter::_processAptRepositories: gpg: keyserver receive failed: Connection timed out

    It seems that the apt-key command can't get through the proxy.

    If I add other keys like this, it works fine: sudo apt-key adv --keyserver-options http-proxy=http://USER:PASSWORD@PROXY_URL:PORT/ --keyserver --recv-keys GPG_KEY

    Best regards