我想要获得一个 ppa 密钥签名
我试过
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
和
wget -q http://ppa.launchpad.net/panda3d/ppa/ubuntu/dists/lucid/Release.gpg -O- | apt-key add -
gpg: no valid OpenPGP data found
我使用了代理,在 apt.conf 中它配置正确
Acquire::http::Proxy "http://proxy.mycompany.de:3128";
我也尝试设置代理
export http_proxy="proxy.mycompany.de:3128"
export https_proxy="proxy.mycompany.de:3128"
答案1
尝试
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
答案2
您忘记使用 sudo 了吗?
如果你这样做了但失败了,也可以尝试这个:
sudo 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 hkp://keyserver.ubuntu.com:80 --recv A258828C
答案3
尝试运行sudo -s
之前
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A258828C
这对我有用。