Progmar Marcin Załęczny

Language:

Google Chrome installation and configuration in Ubuntu 16.04

Preferred method - installation from the Universe repository:

  1. At first turn on the Universe repository: sudo add-apt-repository universe
  2. Update the apt cache: sudo apt update
  3. Install Chrome: sudo apt install google-chrome-stable

Second method - installation Google Chrome deb package

  1. Download Google Chrome .deb installation package from the producer's webpage
  2. Install downloaded .deb package (ex. google-chrome-stable_current_amd64.deb): sudo dpkg -i google-chrome-stable_current_amd64.deb
  3. You encounter on some installation errors so you have to install dependencies of the .deb package: sudo apt-get update
    sudo apt-get -f install
    And from now you can run Chrome seamlessly. The .deb package installed Chrome repository so you can update Chrome in standard way: sudo apt-get update
    sudo apt-get upgrade

Google Chrome installation and configuration in Ubuntu 15.10 and earlier

If in your Ubuntu system does not exist Google Chrome repository file: /etc/apt/sources.list.d/google-chrome.list, then you can add it as described below: 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-chrome.list'
sudo apt-get update

Now to install Chrome just issue following command: sudo apt-get install google-chrome-stable

Because Google dropped its support for 32-bit Chrome Linux versions, each apt-get update command will spit with annoying essage: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

To get rid of it just do as following:

  1. cd /etc/apt/sources.list.d/
  2. sudo vim google-chrome.list
  3. In the line: deb http://dl.google.com/linux/chrome/deb/ stable main add phrase [arch=amd64] between deb keyword and http://...
    After modification the line should look like this: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Now execute: sudo apt-get update The annoying message will not appear again.

Caution!

In some circumstances the google-chrome.list file may be restored to its default content. If it has done just repeat above steps.