4
我试图在通过代理连接到互联网的Ubuntu机器上安装Heroku Toolbelt。我对Ubuntu和它的设置很新,但我设法连接到互联网上。互联网似乎正在工作正常浏览和通过apt-get获得更新总是成功的,curl命令返回所期望的。通过代理在Ubuntu上安装Heroku Toolbelt
当我尝试运行在Heroku的列工具网站上的命令:
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
我得到一些错误:
[email protected]:~/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.
我错过了什么?
请注意,第二个代码块实际上是两个单独的命令,并且您需要将“C927EBE00F1B0520”替换为您实际获得的错误 – electrichead
我无法在pgpkeys.mit.edu处获得heroku密钥,导致运行'gpg'命令时,“找不到有效的OpenPGP数据”错误信息。我从heroku'wget https:// toolbelt.heroku.com/apt/release.key'获得密钥,然后'sudo apt-key add release.key'添加密钥。然后安装脚本运行良好。 –
我不能得到这个工作太... @McOda –