4

プロキシ経由でインターネットに接続されている Ubuntu マシンに Heroku Toolbelt をインストールしようとしています。私は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.

私は何が欠けていますか?

4

1 に答える 1

8

プロキシの背後に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 パッケージリポジトリの公開鍵を取得できていないようです。

これを克服するには、ここで説明されているように公開鍵を手動で添付できます: http://en.kioskea.net/faq/809-debian-apt-get-no-pubkey-gpg-error

gpg --keyserver pgpkeys.mit.edu --recv-key  C927EBE00F1B0520 
gpg -a --export C927EBE00F1B0520 | sudo apt-key add -

この後、インストール スクリプトは正常に実行されます。

于 2013-02-07T15:24:32.750 に答える