Sunday, June 30, 2013

Ubuntu - Dependency Error

TRY THIS, when dependency error occurs during installation.


~$ sudo apt-get install -f

The command-line particularly help me when I was installing Google Chrome in my Ubuntu. During installation, this error occurred:

dpkg: dependency problems prevent configuration of google-chrome-stable: 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

So I issued sudo apt-get install -f  and reissued the command to install Google Chrome. Thereafter, everything is alright.