添加ppa回购并进行密钥签名-没有有效的OpenPGP数据-代理问题?


12

我想获得一个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

我在Proxy后面,在apt.conf中它配置正确

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

我也尝试设置代理

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

我认为此解决方案可以解决您的问题-> askubuntu.com/questions/23211/…另一个解决方法是gpg –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys A258828C
hhlp

抱歉sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A258828C
hhlp 2011年

Answers:


5

尝试

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     

1
很有效,非常感谢!(sudo -E对我来说是关键)
沉思玮申思

0

您忘了使用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

-1

尝试sudo -s之前运行

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

这对我有用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.