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,

1. sudo dpkg -i google-chrome-stable_current_amd64.deb [ this will report dependencies error ]
2. sudo apt-get -f install [ this will resolve dependencies ]
3. sudo dpkg -i google-chrome-stable_current_amd64.deb [ now, this same command will actually install the package ]

Same applies for all other packages.

Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense Multimedia - Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Web design and development Wordpress Yocto / Bitbake / Openembedded
Tags: ,

Leave a Reply / Ask Question