Installing heroku CLI: 404 Not Found

In the link you provided to download, you need to replace the REPLACE_ME_OS/REPLACE_ME_ARCH with the appropriate information. Below that section you will find the following notes:

Where REPLACE_ME_OS is one of “linux”, “darwin”, “windows” and REPLACE_ME_ARCH is one of “x64” or “x86” You also must replace “6.x.x” with the actual version.

So, your download with the wget would look like the following, assuming that you are running a 64 bit version of Ubuntu:

wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz

Then all you should have to do is to continue the steps below:

tar -xvzf heroku.tar.gz

mkdir -p /usr/local/lib /usr/local/bin

mv heroku-cli-v6.13.19-6cd27b3-linux-x64 /usr/local/lib/heroku

ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku

Hope this helps!

[edited second argument to mv from bin to lib - site does not allow a 3 letter change, hence this comment!]