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?
Google Chrome isn't in the repositories - however, Chromium is.
Google Chrome is only available for 64-bit Linux. I've included directions for 64 below.
To install Google Chrome, run the following:
If error messages pop up after running the command
sudo apt install ./google-chrome*.deb
then run the commandAs per http://www.ubuntuupdates.org/ppa/google_chrome
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:Get repository key:
Update your sources:
And install the package:
Note: instead of
google-chrome-stable
you can also install eithergoogle-chrome-beta
orgoogle-chrome-unstable
packages from the same repository.If you are running a 64 Bit system, then use this:
then:
and to finish:
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!!
that's correct code for ubuntu :)
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.
If you want Google Chrome, just search it in google. If you want Chromium add this ppa:
And that's it. Enjoy your browser.