Take the 2-minute tour ×
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 switch 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 terminal. 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 '13 at 10:47
add comment

7 Answers

up vote 52 down vote accepted

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

To install Google Chrome, run the following:

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

For 32-bit systems user can use this code:

sudo apt-get install libxss1
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
sudo dpkg -i google-chrome*.deb

This installs a needed library for Google Chrome, then downloads the latest version of Chrome to a temporary directory and installs it. Run google-chrome to start the browser.

During the installation a PPA is added to your system so that Google Chrome receives the latest updates whenever you check for system updates.

share|improve this answer
3  
uname -i gave me x86_64 but it would seem I needed it to output amd64 instead. –  altendky Aug 21 '13 at 0:07
    
Thanks altendkey, your advise helped me install chrome –  Andrey Sep 6 '13 at 18:50
1  
I get this an ERROR 404 with these instructions. I installed using @David E. Moore instructions listed below. Not sure if adding the libxss1 helped with Mr Moore's instruction or not but I did do that before. This was on a fresh install on 13.10 Unity amd64 install. –  lqlarry Oct 19 '13 at 18:28
1  
What is the package libxss1 for? Is this still a requirement? –  king_julien Oct 30 '13 at 11:08
    
I also had to install xdg-utils with sudo apt-get install xdg-utils –  Juampy Nov 28 '13 at 12:19
add comment
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 :)

share|improve this answer
add comment

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-chrome-stable 
share|improve this answer
add comment

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
    
Is the line sudo apt-get install -f really necessary? –  king_julien Oct 30 '13 at 11:27
    
I think my answer is outdated. I've used the answer above mine (at this time) by @Dale E. Moore and had successful installs. –  lqlarry Nov 4 '13 at 3:19
add comment

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
5  
-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. –  hexafraction Oct 3 '12 at 20:45
add comment

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
add comment

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
add comment

protected by Community Mar 9 at 9:55

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?