gpg:找不到有效的 OpenPGP 数据 [英] gpg: no valid OpenPGP data found

查看:47
本文介绍了gpg:找不到有效的 OpenPGP 数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 13.10 上安装 Jenkins,当我尝试运行以下命令时出现上述错误:

I am trying to install Jenkins on Ubuntu 13.10 and I am getting the above mentioned error when i try to run the following command:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

推荐答案

如果您支持公司代理并且公司使用自己的证书,则可能会出现此问题.只需在命令中添加--no-check-certificate"即可.例如wget --no-check-certificate -qO - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key |sudo apt-key 添加 -

This problem might occur if you are behind corporate proxy and corporation uses its own certificate. Just add "--no-check-certificate" in the command. e.g. wget --no-check-certificate -qO - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

它有效.如果你想看看发生了什么,你可以在添加--no-check-certificate"选项之前使用详细命令而不是安静.例如wget -vO - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key |sudo apt-key 添加 -如果您使用代理,这将告诉您使用--no-check-certificate".

It works. If you want to see what is going on, you can use verbose command instead of quiet before adding "--no-check-certificate" option. e.g. wget -vO - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - This will tell you to use "--no-check-certificate" if you are behind proxy.

这篇关于gpg:找不到有效的 OpenPGP 数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆