UNIX & GNU/Linux - Tips and tricks - Installing Google Chrome on Ubuntu

What would we do without Google? Who knows. But this is not the question. In this tutorial we will see how to install Google Chrome on Ubuntu 12.04.

It may seem easy like that, but it isn't. And I'm a bit surprise about that. But anyway, let's see this.

Downloading

Open your favorite terminal and if you have a 64-bit OS, type this:

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

If your system is a 32-bit (or if you don't know) you have to type this:

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

Until here, no problem.

But, when you try to install, you could have some errors.

Installing

So, we try to install it with:

sudo dpkg -i google-chrome-stable_current_amd64.deb

And we have some beautiful errors:

dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libnss3-1d (>= 3.12.3); however:
  Package libnss3-1d is not installed.
 google-chrome-stable depends on libxss1; however:
  Package libxss1 is not installed.
dpkg: error processing google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:

Solution

To resolve them, we have to update some libraries. Let's do it:

sudo apt-get install -f

And oh miracle, all is fixed!
Indeed with the -f option we tell apt-get to fix broken dependencies. And it works.

Retry to install Google Chrome:

sudo dpkg -i google-chrome-stable_current_amd64.deb

Done!

To launch it, type:

google-chrome

Conclusion

You can now use your favorite browser.
Great job! angel

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Refresh Type the characters you see in this picture. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.