use this command to install Heroku CLI in Ubuntu Linux
Install heroku Command:
$ sudo snap install --classic heroku
sudo snap install --classic heroku
To update, use this command:
$ sudo snap refresh --classic heroku
sudo snap refresh --classic heroku