Install chrome linux sudo

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

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.

Читайте также:  Установка альт линукс второй системой

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

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:

  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.

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.

Читайте также:  Realtek 8169 linux driver

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

Its 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 google chrome on Ubuntu 22.04

Google Chrome is an open-source and free web browser used by a large community of computer users. It is a cross-platform and secure browsing application launched and maintained by Google. It has a fast browsing speed.

Google Chrome is a famous and widely used search engine worldwide. It is available in 47 languages and provides the facility of translation in almost 52 languages.

This descriptive write-up will teach you to install Google Chrome on Ubuntu 22.04.

  • Install Google Chrome from Deb Package
  • Install Google Chrome using the Google repository
  • How to Remove Google Chrome From Ubuntu 22.04?

Method 1: Install Google Chrome from deb package

Ubuntu doesn’t have the Google Chrome packages in its default repository. However, Chrome can be installed on Ubuntu using the deb package. For this purpose, follow the below-mentioned step-by-step process.

Step 1: Download deb package

To download the deb package of Google Chrome, type and run the following command in terminal:

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

The deb package of the stable version of Google Chrome is downloaded successfully.

Step 2: Install Google Chrome

You can use the apt/dpkg command to install Chrome from the Debian package file. In our case, the following command will install Chrome on Ubuntu 22.04:

$ sudo apt install ./google-chrome-stable_current_amd64.deb

The stable version of Google Chrome is installed successfully.

How to start Google Chrome on Ubuntu 22.04

When the Chrome is installed successfully on Ubuntu 22.04, you can launch it using the following command:

It will open the following interface. To continue, Click on the Get Started.

After launching Google Chrome, you can set it as a default browser.

Google Chrome is now open to use.

Method 2: Install Google Chrome using Google repository

A user can install Google Chrome on Ubuntu 22.04 through Google repository. To do this, perform the below-mentioned steps.

Step 1: Add GPG key

First, you should add the gpg key to add the google repository. To do this action, type the following command and run-in terminal:

$ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmour -o /usr/share/keyrings/google_linux_signing_key.gpg

The gpg key is added successfully.

Step 2: Add Google repository

To add the Google repository, run the following command:

$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google_linux_signing_key.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list'

The repository is added successfully.

Step 3: Update system’s packages

After adding the repository, you must update the core library of the system to get the updated package. For this purpose, run the following command:

The packages are updated successfully.

Step 4: Install Google Chrome

Now, to install the stable version of Google Chrome, execute the following command:

$ sudo apt install google-chrome-stable

The stable version of Google Chrome is installed successfully.

How to remove Google Chrome from Ubuntu 22.04

A user can remove the Google Chrome application from Ubuntu 22.04 by running the below-mentioned command in terminal:

$ sudo apt autoremove google-chrome-stable

Chrome was removed successfully.

Congratulations! You have learned the installation method of Google Chrome on Ubuntu 22.04.

Conclusion

Google Chrome can be installed on Ubuntu 22.04 using the deb package or adding the repository of Google into Ubuntu. Google Chrome is a widely used open source and cross-platform browsing application. Google Chrome provides the fast-browsing speed with friendly user interface and is to be set as a default browser.

TUTORIALS ON LINUX, PROGRAMMING & TECHNOLOGY

Источник

Оцените статью
Adblock
detector