1

これまでにさまざまなプラットフォームに heroku toolbelt をインストールしてきましたが、ubuntu 12.04 でのインストールに問題があることに驚きました。私が遭遇した問題のいくつかは、他のいくつかの StackOverflow の投稿、つまり「sh」が何も実行されていないことで説明されていると思いますが、 --force-yes が必要であり、Heroku のスクリプトに存在しないのは奇妙に思えます-私は持っていますHeroku自身にもチケットを投稿しました。

指定されたコマンドを実行しても、明らかなアクティビティは発生しません。

saasbook@saasbook:~/Documents/Github/ruby-sample$ wget -qo- https://toolbelt.heroku.com/install-ubuntu.sh | sh saasbook@saasbook:~/Documents/Github/ruby-sample$

いろいろ試してみて、最終的にスクリプトを取得することができました。

saasbook@saasbook:~/Documents/Github/ruby-sample$ wget --no-check-certificate http://toolbelt.heroku.com/install-ubuntu.sh | sh --2013-10-10 12:50:32-- http://toolbelt.heroku.com/install-ubuntu.sh Resolving toolbelt.heroku.com... 174.129.17.173, 54.243.76.97, 23.21.198.2 Connecting to toolbelt.heroku.com|174.129.17.173|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://toolbelt.heroku.com/install-ubuntu.sh [following] --2013-10-10 12:50:33-- https://toolbelt.heroku.com/install-ubuntu.sh Connecting to toolbelt.heroku.com|174.129.17.173|:443... connected. WARNING: certificate common namewww.heroku.com' は要求されたホスト名と一致しませんtoolbelt.heroku.com'. HTTP request sent, awaiting response... 200 OK Length: 572 [text/plain] Saving to:install-ubuntu.sh.1'

100%[====================================>] 572 --.-K/ s in 0s

2013-10-10 12:50:33 (60.1 MB/秒) -install-ubuntu.sh.1' saved [572/572]

しかし、何も実行されませんでした。スクリプトを直接実行しました:

saasbook@saasbook:~/Documents/Github/ruby-sample$ ./install-ubuntu.sh This script requires superuser access to install apt packages. You will be prompted for your password by sudo. [sudo] password for saasbook: --2013-10-10 12:52:14-- https://toolbelt.heroku.com/apt/release.key Resolving toolbelt.heroku.com... 174.129.17.173, 54.243.76.97, 23.21.198.2 Connecting to toolbelt.heroku.com|174.129.17.173|:443... connected. ERROR: certificate common namewww.heroku.com」は、要求されたホスト名「toolbelt.heroku.com」と一致しません。toolbelt.heroku.com に安全に接続するには、「--no-check-certificate」を使用します。gpg: 有効な OpenPGP データが見つかりません。Ign http://ppa.launchpad.net oneiric InRelease Hit http://ppa.launchpad.net oneiric Release.gpg
Hit http://ppa.launchpad.net oneiric Release
Ign http://extras.ubuntu.com oneiric InRelease
Get:1 http://extras.ubuntu.com oneiric Release.gpg [72 B]
Hit http://extras.ubuntu.com oneiric Release
Hit http://ppa.launchpad.net oneiric/main Sources
Ign http:/ /us.archive.ubuntu.comoneiric InRelease
ヒットhttp://ppa.launchpad.net oneiric/main i386 パッケージ
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
ヒットhttp://extras.ubuntu.com oneiric/main ソース
ヒットhttp:// extras.ubuntu.com oneiric/main i386 パッケージ
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Hit http://us.archive.ubuntu.com oneiric Release.gpg
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
ヒットhttp://us.archive.ubuntu.com oneiric リリース
Ign http://ppa.launchpad.netoneiric/main Translation-en
Ign http://extras.ubuntu.com oneiric/main Translation-en_US
Ign http://extras.ubuntu.com oneiric/main Translation-en
Ign http://toolbelt.heroku.com ./ InRelease
ヒットhttp://us.archive.ubuntu.com oneiric/main ソース ヒットhttp://us.archive.ubuntu.com oneiric/restricted ソース ヒットhttp://us.archive.ubuntu.com oneiric/universe ソース ヒットhttp://us.archive.ubuntu.com oneiric/multiverse ソースがヒットhttp://us.archive.ubuntu.com oneiric/main i386 パッケージがヒットhttp://us.archive.ubuntu.com oneiric/restricted i386 パッケージがヒットhttp://us.archive.ubuntu.com oneiric/universe i386 パッケージがヒットhttp://us.archive.ubuntu.com oneiric/multiverse i386 パッケージがヒットhttp://us.archive.ubuntu.com oneiric/main TranslationIndex ヒットhttp://us.archive.ubuntu.com oneiric/multiverse TranslationIndex Hit http://us.archive.ubuntu.com oneiric/restricted TranslationIndex Hit http://us.archive.ubuntu.com oneiric/universe TranslationIndex Hit http: //us.archive.ubuntu.com oneiric/main Translation-en Hit http://us.archive.ubuntu.com oneiric/multiverse Translation-en Hit http://us.archive.ubuntu.com oneiric/restricted Translation-ヒットhttp://us.archive.ubuntu.com oneiric/universe Translation-en Get:2 http://toolbelt.heroku.com ./ Release.gpg [490 B] Get:3 http://toolbelt.heroku.com ./ リリース [1,673 B]
Ign http://toolbelt.heroku.com ./ Release
Get:4 http://toolbelt.heroku.com ./ パッケージ [1,041 B]
Ign http://toolbelt.heroku.com . / Translation-en_US
Ign http://toolbelt.heroku.com ./ Translation-en
8 秒で 3,276 B を取得 (367 B/s)
パッケージ リストを読み込んでいます... 完了 W: GPG エラー: http://toolbelt.heroku.コム./ リリース: 公開鍵が利用できないため、次の署名を検証できませんでした: NO_PUBKEY C927EBE00F1B0520 パッケージ リストを読み込んでいます... 完了 依存関係ツリーを構築しています
状態情報の読み取り中... 完了 次の追加パッケージがインストールされます: foreman heroku libreadline5 libruby1.9.1 ruby​​1.9.1 推奨パッケージ: ruby​​1.9.1-examples ri1.9.1 ruby​​1.9.1-dev 次の新しいパッケージがインストールされます: foreman heroku heroku-toolbelt libreadline5 libruby1.9.1 ruby​​1.9.1 0 アップグレード、6 新規インストール、0 削除、0 未アップグレード。4,844 kB のアーカイブを取得する必要があります。この操作の後、15.9 MB の追加のディスク容量が使用されます。警告: 次のパッケージは認証できません! foreman heroku heroku-toolbelt E: 問題があり、-y が --force-yes saasbook@saasbook:~/Documents/Github/ruby-sample$ heroku login heroku: command not found` なしで使用されました`

しかし、 --force-yes がないという問題がありました

この追加コマンドを実行して、最終的にインストールできました。

saasbook@saasbook:~/Documents/Github/ruby-sample$ sudo apt-get install -y heroku-toolbelt 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 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 0 not upgraded. Need to get 4,844 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 saasbook@saasbook:~/Documents/Github/ruby-sample$ which heroku saasbook@saasbook:~/Documents/Github/ruby-sample$ sudo apt-get install -y --force-yes heroku-toolbelt 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 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 0 not upgraded. Need to get 4,844 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 Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libreadline5 i386 5.2-9ubuntu1 [123 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe libruby1.9.1 i386 1.9.2.290-2 [3,929 kB] Get:3 http://toolbelt.heroku.com/ubuntu/ ./ foreman 0.60.0 [89.5 kB] Get:4 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe ruby1.9.1 i386 1.9.2.290-2 [36.5 kB] Get:5 http://toolbelt.heroku.com/ubuntu/ ./ heroku 3.0.0 [665 kB] Get:6 http://toolbelt.heroku.com/ubuntu/ ./ heroku-toolbelt 3.0.0 [626 B] Fetched 4,844 kB in 4s (997 kB/s)
Selecting previously deselected package libreadline5. (Reading database ... 134658 files and directories currently installed.) Unpacking libreadline5 (from .../libreadline5_5.2-9ubuntu1_i386.deb) ... Selecting previously deselected package libruby1.9.1. Unpacking libruby1.9.1 (from .../libruby1.9.1_1.9.2.290-2_i386.deb) ... Selecting previously deselected package ruby1.9.1. Unpacking ruby1.9.1 (from .../ruby1.9.1_1.9.2.290-2_i386.deb) ... Selecting previously deselected package foreman. Unpacking foreman (from .../foreman_0.60.0_all.deb) ... Selecting previously deselected package heroku. Unpacking heroku (from .../archives/heroku_3.0.0_all.deb) ... Selecting previously deselected package heroku-toolbelt. Unpacking heroku-toolbelt (from .../heroku-toolbelt_3.0.0_all.deb) ... Processing triggers for man-db ... Setting up libreadline5 (5.2-9ubuntu1) ... Setting up libruby1.9.1 (1.9.2.290-2) ... Setting up ruby1.9.1 (1.9.2.290-2) ... update-alternatives: using /usr/bin/gem1.9.1 to provide /usr/bin/gem (gem) in auto mode. update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in auto mode. Setting up foreman (0.60.0) ... Setting up heroku (3.0.0) ... Setting up heroku-toolbelt (3.0.0) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place saasbook@saasbook:~/Documents/Github/ruby-sample$ heroku login Enter your Heroku credentials.

これは過去に常に非常にスムーズに進んでいたため、私のセットアップには何か奇妙な点があると思います。他の人がこの問題を回避するのに役立つ、私のシステムまたはスクリプトへの簡単な変更はありますか?

4

2 に答える 2