SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / ubuntu / Questions / 510056
In Process
user314763
user314763
Asked: 2014-08-12 18:35:47 +0800 CST2014-08-12 18:35:47 +0800 CST 2014-08-12 18:35:47 +0800 CST

How to install Google Chrome

  • 772

How do you install Google Chrome on Ubuntu?

software-installation
  • 8 8 Answers
  • 3698035 Views

8 Answers

  • Voted
  1. Pandya
    2014-08-13T01:13:53+08:002014-08-13T01:13:53+08:00

    google-chrome-stable is available on a 3rd Party Repository: Google Chrome (for Stable).

    Now that apt-key add is deprecated use this:

    1. Download Key:

      wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O /tmp/google.pub
      
    2. Make a keyring for chrome:

      gpg --no-default-keyring --keyring /etc/apt/keyrings/google-chrome.gpg --import /tmp/google.pub
      
    3. Set repository:

      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
      
    4. Install package:

      sudo apt-get update 
      sudo apt-get install google-chrome-stable
      

    Follow the instruction for installation with apt-key add:

    1. Add Key:

      wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
      
    2. Set repository:

      echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
      
    3. Install package:

      sudo apt-get update 
      sudo apt-get install google-chrome-stable
      
    • 687
  2. Klyn
    2014-08-12T19:39:57+08:002014-08-12T19:39:57+08:00

    Video Demonstration

    Go to https://www.google.com/intl/en-US/chrome/browser/

    Screenshot: Chrome website

    Click Download and a small window will pop up with some download options.

    Screenshot: Chrome select package

    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.

    Screenshot: Opening deb dialog

    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.

    Enjoy ;]

    Note: Chrome will also be updated through the normal Ubuntu update process so you can expect to grab the latest version when Ubuntu updates.

    Screenshot: Google Chrome in Software Center

    • 259
  3. ElefantPhace
    2014-08-12T18:51:45+08:002014-08-12T18:51:45+08:00

    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

    sudo apt-get -f install
    

    To run it from terminal use google-chrome or hit the super key and search Google or Chrome

    • 137
  4. Anon
    2014-08-12T19:16:20+08:002014-08-12T19:16:20+08:00

    Google Chrome is different from Chromium.

    What's the difference between Google Chrome and/or Chromium? What are the advantages/disadvantages to each?

    Chromium can be found in the Ubuntu Software Centre. To download Google Chrome however:

    1. Goto: https://www.google.com/intl/en-CA/chrome/browser/

    2. Click Download Chrome

    3. Choose either 32 bit .deb(for 32bit Ubuntu) or 64 bit .deb (for 64bit Ubuntu)

    4. Click Accept and Install

    5. Download .deb file to a folder (Downloads is the default folder)

    6. Open up your Downloads folder.

    7. Double-click the .deb file you just downloaded.

    8. This should launch Ubuntu Software Centre.

    9. When it prompts you to whether you wish to install Chrome, just say yes.

    10. Input Password when asked to install.
    • 20
  5. Rocky Inde
    2017-03-07T21:27:43+08:002017-03-07T21:27:43+08:00

    When installing the debian package, if you have errors of the sort:

    packages have unmet dependencies
    

    or

    package <package-name> is not installed
    

    The following worked for me:

    sudo apt-get -f install
    

    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:

    sudo dpkg -i <google-chrome>.deb
    
    • 8
  6. brine
    2014-11-05T09:02:19+08:002014-11-05T09:02:19+08:00

    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.

    Script source here

    • 3
  7. oOpSgEo
    2015-04-06T21:04:57+08:002015-04-06T21:04:57+08:00

    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 <iostream>
    #include <fstream>
    #include <string>
    #include <cstdlib>
    #include <locale>
    
    using namespace std;
    
    void PrntGoogPpa(ofstream& googPpa);
    
    void PrntGoogGtr(ofstream& googGtr);
    
    void PrntGoogLst(ofstream& gogLst);
    
    int main()
    {
    
        cout << "Creating the script that adds google-chrome PPA\n" <<endl;
    
        // create the googPpa.sh shell script
        ofstream googPpa;
    
        googPpa.open("googPpa.sh");
    
        PrntGoogPpa(googPpa);
    
        googPpa.close();
    
        cout << "Changing the mode of access to executable on the script\n" << endl;
        // change mode of access to executable
        system("chmod +x googPpa.sh");
        cout << "Excuting and installing the Google-Chrome Web Browser\n" << endl;
        system("./googPpa.sh");
    
        // create an ofstream object and call the function
        cout << "Creating the script that installs google-chrome\n" << endl;
        ofstream googGtr;
        googGtr.open("googGt.sh");
        PrntGoogGtr(googGtr);
        googGtr.close();
    
        cout << "The googGt.sh script has been created\n" << endl;
        cout << "Changing the mode of access to executable on the script\n" << endl;
        system("chmod +x googGt.sh");
        cout << "Excuting and installing the Google-Chrome Web Browser\n" << endl;
        system("./googGt.sh");
    
        system("rm -rf /etc/apt/sources.list.d/google-chrome.list");
    
        ofstream googLst;
        googLst.open("/etc/apt/sources.list.d/google-chrome.list");
        PrntGoogLst(googLst);
        googLst.close();
    
    
    }
    void PrntGoogPpa(ofstream& googPpa)
    {
    
        googPpa << "#! /bin/bash\n\nUPD=\"updatedb\"\n" << endl;
    
        googPpa << "wget -q -O - "
                << "https://dl-ssl.google.com/linux/linux_signing_key.pub"
                << " | sudo apt-key add -" << "\n" << endl;
    
        googPpa << "echo \"deb http://dl.google.com/linux/chrome/deb/ stable main\""
                << " >> /etc/apt/sources.list.d/google.list\n\n$UPD\n\nexit" << endl; 
    
    }
    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" << endl;
    
    }
    void PrntGoogLst(ofstream& googLst)
    {
    
        googLst << "### THIS FILE IS AUTOMATICALLY CONFIGURED ###" << endl;
    
        googLst << "# You may comment out this entry, but any other modifications"
                << " may be lost." <<endl;
    
        googLst << "# deb http://dl.google.com/linux/chrome/deb/ stable main" <<endl;
    
    }
    

    Its nothing spectacular just some function abstraction. Its pretty easy to follow. Once you've copied and saved the program compile from command line:

    :~$ g++ googGt.cpp
    

    This create an a.out in the working directory. Next gain root privledges and execute the program.

    Gaining root privledges:

    :~$ sudo bash
    

    Executing the newly created binary:

    :~# ./a.out
    

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

    GO UBUNTU!!

    • 3
  8. Jingguo Yao
    2022-08-10T21:55:58+08:002022-08-10T21:55:58+08:00

    Go to this Google official website: https://www.google.com/chrome/?platform=linux

    • 0

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    How to install Google Chrome

    • 8 Answers
  • Marko Smith

    Is there a command to list all users? Also to add, delete, modify users, in the terminal?

    • 9 Answers
  • Marko Smith

    How to delete a non-empty directory in Terminal?

    • 4 Answers
  • Marko Smith

    How to unzip a zip file from the Terminal?

    • 9 Answers
  • Marko Smith

    How can I copy the contents of a folder to another folder in a different directory using terminal?

    • 8 Answers
  • Marko Smith

    How do I install a .deb file via the command line?

    • 11 Answers
  • Marko Smith

    How do I run .sh scripts?

    • 16 Answers
  • Marko Smith

    How do I install a .tar.gz (or .tar.bz2) file?

    • 14 Answers
  • Marko Smith

    How to list all installed packages

    • 24 Answers
  • Marko Smith

    Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    • 25 Answers
  • Martin Hope
    Flimm How can I use docker without sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp How do I save terminal output to a file? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd How to unzip a zip file from the Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    pandisvezia How can I copy the contents of a folder to another folder in a different directory using terminal? 2011-12-11 17:19:37 +0800 CST
  • Martin Hope
    TheXed How do I install a .deb file via the command line? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan How to list all installed packages 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry How do I determine the total size of a directory (folder) from the command line? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "The following packages have been kept back:" Why and how do I solve it? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford How can PPAs be removed? 2010-07-30 01:09:42 +0800 CST

Related Questions

Trending Tags

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve