How to install Google Chrome
Just install Chromium, the open-source (FLOSS) counterpart to Chrome. Basically Google develops Chromium, adds some proprietary features (and likely tracking features) to it and distributes it as «Chrome». So either install Chromium from the software center or just sudo apt-get install chromium . I think that’s way easier to install! See also: What’s the difference between Chrome and Chromium?
Update: In 2020, the Chromium deb was replaced by a Chromium snap. A Chromium deb still exists, but it’s not a browser — it just installs the Snap. So most of the deb-related Chromium answers below are still valid. This change had NO effect on Chrome, which is still distributed as a deb from Google.
8 Answers 8
google-chrome-stable is available on a 3rd Party Repository: Google Chrome (for Stable).
Now that apt-key add is deprecated use this:
wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O /tmp/google.pub
gpg --no-default-keyring --keyring /etc/apt/keyrings/google-chrome.gpg --import /tmp/google.pub
echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update sudo apt-get install google-chrome-stable
Follow the instruction for installation with apt-key add :
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update sudo apt-get install google-chrome-stable
It appears that the package from Google adds the Apt source file now, but named «google-chrome.list». Attempting to do an apt-get update will complain about duplicates. If you rename to match, the issue doesn’t occur.
@Pandya 3 years old but still a good instruction set! Google also provides an https endpoint for downloading. Probably this could be an update to this answer.
Video Demonstration
Click Download and a small window will pop up with some download options.
We want the «.deb» for Ubuntu. Make sure this box is checked.
Note: Google no longer provides 32-bit versions for Linux — you are only able to get 64-bit versions for Linux as of at least February 2016
It will give you the option to «Open with. » or «Save File». The default option for «Open with. » is to open via «Software Install». Select this option.
Give your PC a few moments and the ubuntu software center should open up with the .deb file you have downloaded ready to install. (I already have chrome installed) Click the install button and you will be prompted for your password to start the installation. This should take no more that 2mins to install.
Note: Chrome will also be updated through the normal Ubuntu update process so you can expect to grab the latest version when Ubuntu updates.
its adds the Google Chrome PPA when you install the package so from then on you get updates as they are released.
This method used to work fine for Ubuntu 14.04. I recently updated to Ubuntu 16.04 and I am not able to install google chrome. When I press the install button in software center, nothing happens.
Or if you want the actual Google Chrome, open a terminal and follow:
cd /tmp wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb
The 32-bit version is no longer available.
If you encounter any errors simply use
To run it from terminal use google-chrome or hit the super key and search Google or Chrome
This no longer works. For one, i386 versions are no longer available. Second, the download links on Google’s site are now broken.
The URL to the .deb file has changed, and is now: https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
This is the best and simplest answer from the command line, without needing to use another browser to download. Worked perfectly in 18.04, without needing any additional dependencies.
I got an error when trying to run, [20264:20264:0201/211304.449159:ERROR:zygote_host_impl_linux.cc(89)] Running as root without —no-sandbox is not supported. See https://crbug.com/638180.
Google Chrome is different from Chromium.
Chromium can be found in the Ubuntu Software Centre. To download Google Chrome however:
- Goto: https://www.google.com/intl/en-CA/chrome/browser/
- Click Download Chrome
- Choose either 32 bit .deb (for 32bit Ubuntu) or 64 bit .deb (for 64bit Ubuntu)
- Click Accept and Install
- Download .deb file to a folder (Downloads is the default folder)
- Open up your Downloads folder.
- Double-click the .deb file you just downloaded.
- This should launch Ubuntu Software Centre.
- When it prompts you to whether you wish to install Chrome, just say yes.
- Input Password when asked to install.
When installing the debian package, if you have errors of the sort:
packages have unmet dependencies
The following worked for me:
The above will install the packages that were not installed but are needed for the debian package.
Now, you should be able to install the debian package via:
You can try saving the below script into a file and running it:
if [[ $(getconf LONG_BIT) = "64" ]] then echo "64bit Detected" && echo "Installing Google Chrome" && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo dpkg -i google-chrome-stable_current_amd64.deb && rm -f google-chrome-stable_current_amd64.deb else echo "32bit Detected" && echo "Installing Google Chrome" && wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb && sudo dpkg -i google-chrome-stable_current_i386.deb && rm -f google-chrome-stable_current_i386.deb fi
It will automatically detect your architecture and install the proper version of Google Chrome for your system.
Again, this is unnecessarily complicated for the everyday user to install Google Chrome with. It’s just making things harder than they need to be.
And yet if it was hosted somewhere and he gave a one line Curl command, then it would be exactly how lots of people work.
Hello people of the Ubuntu Universe, I wrote a c++ program for installing google chrome 64 bit, Pandya’s answer is very similiar. I usually write programs to handle anything, that I think I might have to do again in the future! Consequently installing google-chrome is something I’ve done many times.
If you do not already have build-essential installed as dependency, or c++ (g++) development you must install it first:
:~$ sudo apt-get install build-essential -y
Next copy the following program from this post into gedit and save it as googGt.cpp (change your tab width to 4):
//************************************************************************ // This googGt.cpp is created to install the google-chrome web browser // on Ubuntu 14.04 lts 64 bit. // author@GWade //************************************************************************ #include #include #include #include #include using namespace std; void PrntGoogPpa(ofstream& googPpa); void PrntGoogGtr(ofstream& googGtr); void PrntGoogLst(ofstream& gogLst); int main() < cout void PrntGoogPpa(ofstream& googPpa) < googPpa > /etc/apt/sources.list.d/google.list\n\n$UPD\n\nexit" void PrntGoogGtr(ofstream& googGtr) < googGtr << "#! /bin/bash\n\nAPGTN=\"apt-get install\"" << endl; googGtr << "APUPD=\"apt-get update\"\nUPD=\"updatedb\"\n" << endl; googGtr << "$APUPD\n\n$APGTN google-chrome-stable -y\n" << endl; googGtr << "$UPD\n\nexit" void PrntGoogLst(ofstream& googLst) < googLstIts nothing spectacular just some function abstraction. Its pretty easy to follow. Once you've copied and saved the program compile from command line:
This create an a.out in the working directory. Next gain root privledges and execute the program.
Executing the newly created binary:
The process is pretty straight forward first add the google PPA, then it updates the software sources, then it installs google-chrome, and last but not least it comments out the google-chrome.list url addresses so it doesn't update the 32 bit version as well as 64 bit on subsequent apt-get updates. You will now have the scripts 1) the script that adds the googPpa.sh and 2) the script that installs google-chrome (googGt.sh).
How to install Chrome browser properly via command line?
And then "Y" for the Y/n question. But the installation threw errors. Does someone see anything wrong with the commands I issued?
7 Answers 7
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
If error messages pop up after running the command sudo apt install ./google-chrome*.deb then run the command
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.
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
after following the steps, when i run the command sudo apt-get install google-chrome-stable, "Unable to locate package google-chrome-stable"
Perhaps you are using a 32-bit Ubuntu when only 64-bit is supported now, as suggested by askubuntu.com/a/853130/28107.
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
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
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.
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. 🙂
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.
@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.
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.
If you are running a 64 Bit system, then use this:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./google-chrome*.deb
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.
Jorge added this to the accepted answer above. I guess I should of thought of that. Makes the answer more complete now.
I think my answer is outdated. I've used the answer above mine (at this time) by @Dale E. Moore and had successful installs.
Your answer is not outdated. The google-chrome-stable_current_amd64.deb will remain current (by its namesake) as long as it's being maintained and updated by Google. On rare occasions, just like any manual install, you might have to use the install -f option. But as of Ubuntu 18.04, it installs the absolute latest Chrome update and configures it to be automatically flagged for regular updates when they are available. The two commands are the cleanest and easiest method of a fresh install of 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
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:
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.
What PPA should be added? If you cannot answer this question now you can delete your answer, and gain back 2 rep.