211

I am trying to install chrome browser via command line. I tried this:

$ apt-cache search chrome browser

The results show that the proper term is "chrome-browser," so I tried that:

$ sudo apt-get install chrome-browser

And then "Y" for the Y/n question.

But the installation threw errors. Does someone see anything wrong with the commands I issued?

7 Answers7

300

Google Chrome is not in the repositories because it is proprietary, however Chromium(the open source platform Chrome is built upon) is.

These are the instructions to install Chrome on a 64 bit Linux distribution as that architecture is the only one Chrome supports.

To install Google Chrome, run the following:

sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome*.deb

Installed this way, the package has the name google-chrome-stable.

If error messages pop up after running the command sudo apt install ./google-chrome*.deb then run the command

sudo apt-get install -f
Abdull
  • 734
jrg
  • 61,707
113

As per http://www.ubuntuupdates.org/ppa/google_chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
60

If you really want to install Chrome (not Chromium) using apt-get it's possible as explained here:

  • Add google repository to your sources, that is, create a new file under /etc/apt/sources.list.d with the following contents:

    deb http://dl.google.com/linux/chrome/deb/ stable main
    
  • Get repository key:

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

    sudo apt-get update 
    
  • And install the package:

    sudo apt-get install google-chrome-stable
    

Note: instead of google-chrome-stable you can also install either google-chrome-beta or google-chrome-unstable packages from the same repository.

Zanna
  • 72,312
jcollado
  • 9,868
28

If you are running a 64 Bit system, then use this:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

then:

sudo dpkg -i ./google-chrome*.deb

and to finish:

sudo apt-get install -f

This is the same as jrg's reply, but you change the i386.deb to amd64.deb.

EDIT: The past couple of times I have not had to do the install -f. It seems to have all needed after installing.

Good Luck!!

lqlarry
  • 746
11
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update 
sudo apt-get install google-chrome-stable 

that's correct code for ubuntu :)

guntbert
  • 13,475
Kornel
  • 111
  • 1
  • 2
7

If you want the official Google Chrome build, you have to download it from here: Download Google Chrome.

I believe only Chromium is in the repository.

matpie
  • 759
-6

If you want Google Chrome, just search it in google. If you want Chromium add this ppa:

sudo add-apt-repository ppa:chromium-daily/stable
sudo apt-get update
sudo apt-get install chromium-browser

And that's it. Enjoy your browser.

rockr101
  • 1,421