Reputation: 1435
I am following the instructions from official heroku website to install heroku on my ubuntu 14.04.
First I installed snapd on ubuntu and then tried to install heroku by running:
sudo snap install heroku
But I am getting following error
error: cannot install "heroku": snap not found
I posted this question on askubuntu but it wasn't of much help. Could somebody please help how can I fix this issue ?
Upvotes: 2
Views: 1721
Reputation: 5872
To install heroku in all currently supported versions of Ubuntu open the terminal and type:
sudo snap install --classic heroku
This installs the heroku snap package successfully, and it is the recommended way of installing Heroku CLI in Ubuntu at the Heroku Dev Center website.
When this was posted sudo snap install --classic heroku
installs the latest version of Heroku. This is no longer the case. Heroku Dev Center website says that snap installs are no longer supported, and instead it recommends this method for installing Heroku CLI in Ubuntu / Debian.
sudo apt install git
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
You can get a good idea of what the shell script is does before installing anything by running cat install-ubuntu.sh
.
This version doesn't autoupdate. You can update it manually via apt.
Upvotes: 4