How to Fix Package installation error – Unable to correct problems, you have held broken packages

Updated on September 2, 2017

Question: I was installing few OpenStack packages on Ubuntu 14.04.4 LTS and landed up with an error Unable to correct problems, you have held broken packages. However, this error seems to occur for any package installation. Below is the detailed error message.

# apt-get install python-sqlalchemy python-nova
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created
or been moved out of Incoming. The following packages have unmet dependencies:
python-nova : Depends: python-sqlalchemy (< 0.9) but 0.9.8+dfsg-0.1~cloud0 is to be installed
E: Unable to correct problems, you have held broken packages.

How to solve this error?

Solution:

This error occurs if some packages installed in the system is broken or incomplete. So it’s always advised to update the system before installing new packages.

# sudo apt-get update

Once the update is completed, you can use –fix-missing option as shown below:

# sudo apt-get install --fix-missing

Note: Alternatively, you can run the below command as well.

# apt-get update --fix-missing

Was this article helpful?

Related Articles

Leave a Comment