2

I am unable to run google-chrome. It gives me the following error

browser_main_loop.cc(272)] Gtk: cannot open display: :0.0

Any help is appreciated. I am trying to learn Linux.

Update: I used the following steps to install Chrome:

sudo nano /etc/apt/sources.list

added

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Saved and exited, then

wget https://dl.google.com/linux/linux_signing_key.pub
sudo apt-key add linux_signing_key.pub
sudo apt update
sudo apt install google-chrome-stable

Thanks

Organic Marble
  • 23,641
  • 15
  • 70
  • 122

1 Answers1

1

For Google Chrome, the Download site is: http://google.com. The download link is: https://www.google.com/chrome/browser/desktop/index.html

Download it and follow the installation steps provided by Google.

Once you download it, you can go to your Download directory and install it from the commandline.

Perform these steps:

Bring up a terminal with these keys: Alt+Ctrl+T.

At the go to the download directory with this command:

$ cd ~/Downloads

Then run this on the file:

$ sudo dpkg -i google-chrome-stable_current_amd64.deb

As per your comment for the commandline download, run this:

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

The installer automatically updates the /etc/apt/sources.list and provides the public key.

After you have installed it, you can run it by typing Chrome in the Ubuntu Dash Search Button.

Installing Chromium

Chromium is an an opens source web browser based on and similar Google Chrome. It's in the repository. You don't have to download anything to install it. Just run this command from the terminal:

$ sudo apt install chromium-browser
L. D. James
  • 25,036
  • Thanks James. Can I download from the cli, If so, what are the steps for the same. – annapbabu Feb 19 '17 at 04:35
  • @annapbabu You ran the correct commands already. To reinstall Chrome, run sudo apt-get install --reinstall chrome – wjandrea Feb 19 '17 at 04:37
  • wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb – L. D. James Feb 19 '17 at 04:38
  • @wjandrea I'm sure the user (as I mentioned to a comment in his question, already have Google chrome installed. He just needs to run it from the Ubuntu Start Button as mentioned in my answer. I also tried to clarify the steps for others that may happen up the OP's question. – L. D. James Feb 19 '17 at 04:51