I'm trying to install Heroku on Ubuntu 16.04 following the instructions from the official website but after the command sudo apt-get update I'm getting the following errors :
Err:30 ./ Packages SSL: certificate subject name (*.herokuapp.com) does not match target host name 'cliassets.heroku.com'
Ign:31 ./ Translation-en_US
Ign:32 ./ Translation-en
Fetched 4,351 kB in 22s (192 kB/s)
Reading package lists... Done
W: The repository ' ./ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch ./ Packages SSL: certificate subject name (*.herokuapp.com) does not match target host name 'cliassets.heroku.com'
E: Some index files failed to download. They have been ignored, or old ones used instead.I've looked through other answers and solution but didn't help. Any help will be appreciated.
41 Answer
To install heroku in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install snapd
sudo snap install heroku --classic This installs the heroku snap package (version 6.15 which is currently the latest version) successfully, and it is the recommended way of installing Heroku CLI in Ubuntu at the Heroku Dev Center website.