Search code examples
ubuntuherokuaws-cloud9

How do I install heroku on ubuntu?


I am trying to install heroku and for that it says i need to run this:

sudo snap install heroku --classic

but when i run that i get snap: command not found. when i looked up how to solve this it said i had to do this:

sudo apt update
sudo apt install snapd

but this does not work as well because it gives this:

apt: invalid flag: update

What do i do? How do i install heroku on aws cloud 9 linux?


Solution

  • To install heroku on ubuntu,

    curl https://cli-assets.heroku.com/install-ubuntu.sh | sh

    But, this version does not autoupdate and must be updated manully via apt-get.

    Otherwise, to install snap, follow this link:
    https://askubuntu.com/questions/1050388/ubuntu-16-04-install-snapd-problem