Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Setting up and managing an Ubuntu server all by myself, in coming months, is a part of my current plans. Hence, I am planning a swtich from Windows to Linux - - Ubuntu. I now need to get some grip on the command line, since I am all used to Windows' GUI.

Anyway... the most obvious start is installing apps on my computer, and I thought I should learn to do it via CLI. And this is what I did:

$ apt-cache search chrome browser

the results showed that the proper term is "chrome-browser," so...

$ sudo apt-get install chrome-browser

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

But the installation threw errors. (I do not have my PC at hand, so can't mention what error exactly.) Does someone see anything wrong with the commands I issued? I am probably missing some command(s) in between, I think.

share|improve this question
Use chromium via sudo apt-get install chromium-browser. Should be fine for you. – wegsehen Feb 1 at 10:47

7 Answers

up vote 18 down vote accepted

Google Chrome isn't in the repositories - however, Chromium is.

To install Google Chrome, run the following:

For 32 bit:

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

For 64 bit:

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

sudo dpkg -i ./google-chrome*.deb - this installs the deb

sudo apt-get -f install There is a dependencies issue with the Google Chrome deb that needs to be resolved - that is what the sudo apt-get -f install is for.

share|improve this answer

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 cotents:

    deb http://dl.google.com/linux/deb/ stable non-free main

  • Get repository key:

    sudo 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.

share|improve this answer
1  
You said "create a new file under...", but what should I name that file? – user33877 Nov 14 '11 at 20:47
1  
Well, the problem with this is that when you install Chrome, in theory it'll break, because Chrome's postinstall script does this for you... :) – jrg Nov 14 '11 at 20:53
I'd say that the name of the file isn't really important (not sure about the extension though). I'd name it google.list, but it could be chrome.list or some other random name not being already used. – jcollado Nov 14 '11 at 20:55
@jrg I decided to give it a try and what I found is that indeed Chrome packaging scripts add a new file under /etc/apt/sources.list.d. The result of this is that Chrome installation didn't fail, but apt-get update now prints a "duplicate sources.list entry" warning; so, yes, this method shouldn't be used unless you want to fix the sources files later. – jcollado Nov 14 '11 at 21:49
2  
Here are the relevant instructions on the Google PPA page. Some of the details are now a bit different and so the above answer should be updated accordingly. – Chan-Ho Suh May 17 '12 at 23:48

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 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-chome-stable
share|improve this answer

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!!

share|improve this answer
Jorge added this to the accepted answer above. I guess I should of thought of that. Makes the answer more complete now. – lqlarry Nov 20 '11 at 3:12
Yes, thank you. – user33877 Nov 20 '11 at 12:27

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.

share|improve this answer

In case you're willing to install google chrome to Debian Lenny you can only have version 12:

Arch AMD64: http://linuxfreedom.com/hacktolive/repo/archive/pool/main/g/google-chrome-stable/google-chrome-stable_12.0.742.112-r90304_amd64.deb

Arch i386: http://linuxfreedom.com/hacktolive/repo/archive/pool/main/g/google-chrome-stable/google-chrome-stable_12.0.742.112-r90304_i386.deb

dpkg -i google-chrome-stable_12.0.742.112-r90304_amd64.deb

you may need to install some dependencies first, just hand them to aptitude. I had to:

aptitude install libgconf2-4 libxslt1.1 libxss1 xdg-utils

Source: http://fatalfailure.wordpress.com/2011/11/22/installing-google-chrome-in-debian-lenny/

share|improve this answer

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.

share|improve this answer
3  
-1, daily builds aren't recommended for anyone other than developers. THIS IS DANGEROUS. – jrg Nov 14 '11 at 20:43
What PPA should be added? If you cannot answer this question now you can delete your answer, and gain back 2 rep. – ObsessiveSSOℲ Oct 3 '12 at 20:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.