how to install google chrome from terminal [duplicate]

I think you didn't add the google-chrome repository to Ubuntu. open your terminal and then type:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 

then after that to add the repository, type this :

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

after that update your system,type this in terminal :

sudo apt update

last, to install google chrome, type this :

sudo apt install google-chrome-**<version>**

where version is beta or stable or release

for example :

sudo apt install google-chrome-stable

I prefer to use the stable version.