50

I can't install Google Chrome browser. I wonder why and how to fix it. Here is the log I got from my terminal when installing Google Chrome.

$ sudo dpkg --install chrome.deb
[sudo] password for young: 
Selecting previously unselected package google-chrome-stable.
(Reading database ... 141861 files and directories currently installed.)
Unpacking google-chrome-stable (from chrome.deb) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libgconf2-4 (>= 2.27.0); however:
  Package libgconf2-4 is not installed.
 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 desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
 google-chrome-stable

$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  linux-headers-3.5.0-17
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  google-chrome-stable
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 140 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 141960 files and directories currently installed.)
Removing google-chrome-stable ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...

$ sudo dpkg --install chrome.deb
Selecting previously unselected package google-chrome-stable.
(Reading database ... 141861 files and directories currently installed.)
Unpacking google-chrome-stable (from chrome.deb) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libgconf2-4 (>= 2.27.0); however:
  Package libgconf2-4 is not installed.
 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 desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
 google-chrome-stable

It does not work in GUI too. Look at what I have got:

on GUI

Tim
  • 32,274
  • 27
  • 118
  • 177
owl
  • 4,921
  • 7
  • 33
  • 50

7 Answers7

76

You can fix this by installing missing dependencies.
Just run the following command
(after you have run sudo dpkg -i google-chrome-stable_current_i386.deb).

sudo apt-get install -f

This will install missing dependencies and configure Google Chrome for you.

muru
  • 193,181
  • 53
  • 473
  • 722
Vineet
  • 1,025
  • 3
  • 12
  • 23
36

You probably need to enable the "universe" repository.

Once you enable it, update your system and you should now be able to install google-chrome-stable.

sudo apt-get update
sudo apt-get install libgconf2-4 libnss3-1d libxss1
jokerdino
  • 41,000
  • 24
  • 132
  • 201
11

Why not just install Chromium from the Ubuntu repos?

sudo apt-get install chromium-browser

That simple!

smooth-texan
  • 532
  • 2
  • 6
  • 2
    at the moment this is an older version, packaged with a lot of security bugs already fixed in the Google-branded version. – gertvdijk Nov 23 '12 at 15:59
  • I won't want to install chromium browser, since it is not as stable and mostly for developers. – owl Nov 24 '12 at 02:30
  • 2
    I've found it to be quite stable. It's essentially just like Chrome. – smooth-texan Nov 24 '12 at 04:55
  • I would not have known that. How would one know when to use apt-get and when not to do so? – Bruce Whealton Jul 08 '16 at 16:48
  • Always use apt-get to install things unless there's a really good reason not to. – smooth-texan Jul 08 '16 at 19:11
  • 1
    One example where you want `chrome` and not `chromium`: If you already have some paid subscription which works under Windows+TV+Smartphone, you probably want to access this under Linux as well, right? In that case it is likely that `chrome` comes with everything you need right out of the box. It also provides easy updates. Unlike `chromium` which is unsupported by the subscription most of the time and often difficult to keep updated (read: to keep safe) due to all those tweaks applied (think of Flash, DRM, etc.). – Tino Nov 13 '16 at 12:46
1

Running apt --fix-broken install did the trick for me.

Calin
  • 677
  • 2
  • 7
  • 16
1

sudo apt-get update ; sudo apt-get install libgconf2-4 libnss3-1d libxss1

Post any error output here. If no errors, sudo dpkg -i chrome.deb again afterwards and you should be good.

Jim Salter
  • 4,333
  • 1
  • 16
  • 33
  • Hello, thx for your reply. I got a few error messages : http://pastebin.com/CYeCMWiE – owl Nov 24 '12 at 02:47
0

I recently saw this error and I was able to resolve it using the following:

apt-get install libcurl3
Snap Shot
  • 511
  • 4
  • 7
0

I had the same problem and I used this to fix it.

sudo apt-get update
sudo apt-get upgrade
sudo apt --fix-broken install

And then, try to install Google Chrome again.

Ani
  • 101
  • 2