Install Chrome

Following instructions will work only on Ubuntu. To install it on Centos, check out following link...

How To Install Selenium Chrome On Centos 7
sudo apt install ./google-chrome-stable_current_amd64.deb

You might run in to following error...

Download is performed unsandboxed as root as file '/root/google-chrome-stable_current_amd64.deb' couldn't be accessed by user '_apt'.

If you see above error, make sure /var/cache/apt/archives/partial/ has proper permissions to write. Do following to fix that...

sudo chown -Rv _apt:root /var/cache/apt/archives/partial/
sudo chmod -Rv 700 /var/cache/apt/archives/partial/

After above run following command again...

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

Start Chrome

Before running Chrome, make sure you are running it as non-root user, otherwise you might run in to following error...

Running as root without --no-sandbox is not supported.

To avoid the above error, you can pass -no-sandbox to chrome-browser but recommended way is to run as non-root user.

Run following command to bring up chrome-browser...


Update Google Chrome

During installation, the official Google repository is kept in following file...


You can do cat to see its contents.

cat /etc/apt/sources.list.d/google-chrome.list
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] stable main

Google uses above file to automatically updates Google Chrome.