Unable to install Heroku toolbelt in Ubuntu AWS instance

heroku

Solution

I think your `sh` is not a symlink to `bash`. Try

wget ...blah... | /bin/bash

and see if that helps.

--EDIT--

Ha! Would you believe it! Not 5 minutes after answering, I had the same problem. Here's the fix:

- Download the install.sh file

- Modify the line that says `sudo sh` to say `sudo /bin/bash`

- Run it with `/bin/bash install.sh`

The cause is that on some Ubuntu's, `/bin/sh` is actually a link to `/bin/dash` (not `bash`). And the install script uses some bash-isms without actually checking to see if you're using `bash` or not.

Problem

The following error is thrown while trying to install the Heroku toolbelt in the default Ubuntu AWS 12.04 AMI based instance ubuntu@ip-11-121-123-115:~$ wget -qO- https://toolbelt.heroku.com/install.sh | sh This script requires superuser access to install software. You will be prompted for your password by sudo. ``` sh: 7: [[: not found sh: 29: [[: not found Installation complete ```

Original source