Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Heroku Toolbelt on Ubuntu through a proxy

I'm trying to install the Heroku Toolbelt on an Ubuntu machine that's connected to the internet through a proxy. I'm pretty new to Ubuntu and its settings but I managed to get connected to the internet fine. Internet seems to be working fine for just browsing and getting updates via apt-get is always successful and curl commands return what's expected.

When I try to run the command on the Heroku Toolbelt site:

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

I get some errors:

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

The most noticeable error is probably just

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

What am I missing?

like image 284
tanookiben Avatar asked Feb 19 '23 11:02

tanookiben


1 Answers

I just had the same problem when installing heroku toolbelt behind proxy:

The core of the problem is this:

GPG error: http://toolbelt.heroku.com ./ Release: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY C927EBE00F1B0520

You will notice, that the next time that you run apt-get update you will obtain the same message. It seems that ubuntu is not able to aquire the public key of heroku package repository.

To get over this you can attach the public key manually as described here: 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 -

After this the installation script will run OK.

like image 88
hoonzis Avatar answered Feb 21 '23 02:02

hoonzis