Home » Linux Host, Ubuntu, SysAdmin » How to resolve dependencies generated during installation with “dpkg -i” ?

How to resolve dependencies generated during installation with “dpkg -i” ?

While I was trying to install chrome browser of a fresh installed ubuntu 14.04 with deb, it reported following error,

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

dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on libappindicator1; however:
Package libappindicator1 is not installed.

dpkg: error processing package google-chrome-stable (–install):
dependency problems – leaving unconfigured

Errors were encountered while processing:
google-chrome-stable

Now, while I tried to resolve the dependancy packages like libappindicator1 manually as mentioned in error, it didn’t worked,
so, found an ultimate solution like, run “sudo apt-get -f install” command just after “sudo dpkg -i ” command, it will do the work of resolving the dependancies and installing necessary packages for you.

So, final solution is,

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

This will report dependencies error

$ sudo apt-get -f install

This will resolve dependencies

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

now, this same command will actually install the package

Same applies for all other packages.

Leave a Comment