通过代理在Ubuntu上安装Heroku Toolbelt

通过代理在Ubuntu上安装Heroku Toolbelt,ubuntu,heroku-toolbelt,Ubuntu,Heroku Toolbelt,我正试图将Heroku工具带安装在一台通过代理连接到互联网的Ubuntu机器上。我对Ubuntu及其设置很陌生,但我很好地连接到了互联网。互联网似乎运行良好,只是通过apt get浏览和获取更新总是成功的,curl命令返回预期的结果 当我尝试在Heroku Toolbelt站点上运行命令时: wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 我发现了一些错误: me@mypc-vb:~/Documents/stuff$ w

我正试图将Heroku工具带安装在一台通过代理连接到互联网的Ubuntu机器上。我对Ubuntu及其设置很陌生,但我很好地连接到了互联网。互联网似乎运行良好,只是通过apt get浏览和获取更新总是成功的,curl命令返回预期的结果

当我尝试在Heroku Toolbelt站点上运行命令时:

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
我发现了一些错误:

me@mypc-vb:~/Documents/stuff$ wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
This script requires superuser access to install apt packages.
You will be prompted for your password by sudo.
[sudo] password for hsiehbe: 
--2012-11-15 15:09:46--  https://toolbelt.heroku.com/apt/release.key
Resolving toolbelt.heroku.com... failed: Name or service not known.
wget: unable to resolve host address `toolbelt.heroku.com'
gpg: no valid OpenPGP data found.
Ign http://us.archive.ubuntu.com oneiric InRelease
Ign http://security.ubuntu.com oneiric-security InRelease           
Ign http://extras.ubuntu.com oneiric InRelease                       
...
Fetched 12.9 MB in 32s (394 kB/s)                                                                                     
Reading package lists... Done
W: GPG error: http://toolbelt.heroku.com ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  foreman heroku libreadline5 libruby1.9.1 ruby1.9.1
Suggested packages:
  ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
The following NEW packages will be installed:
  foreman heroku heroku-toolbelt libreadline5 libruby1.9.1 ruby1.9.1
0 upgraded, 6 newly installed, 0 to remove and 27 not upgraded.
Need to get 4,815 kB of archives.
After this operation, 15.9 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  foreman heroku heroku-toolbelt
E: There are problems and -y was used without --force-yes
最明显的错误可能是

Resolving toolbelt.heroku.com... failed: Name or service not know.

我遗漏了什么?

在代理后安装heroku toolbelt时,我遇到了同样的问题:

问题的核心是:

GPG error: http://toolbelt.heroku.com ./ Release: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY C927EBE00F1B0520
您会注意到,下次运行apt get update时,您将获得相同的消息。ubuntu似乎无法获得heroku包存储库的公钥

要解决此问题,您可以按照以下说明手动附加公钥:


在此之后,安装脚本将正常运行。

请注意,第二个代码块实际上是两个独立的命令,您需要交换两个“C927EBE000F1B0520”,错误是您实际上无法在pgpkeys.mit.edu处获取heroku密钥,导致“找不到有效的OpenPGP数据”运行
gpg
命令时出现错误消息。我从heroku`wget`那里得到了钥匙,然后
sudo apt key add release.key
添加钥匙。安装脚本运行正常。@McOda Thaks。。。我添加了释放键,它正在工作
gpg --keyserver pgpkeys.mit.edu --recv-key  C927EBE00F1B0520 
gpg -a --export C927EBE00F1B0520 | sudo apt-key add -