Ubuntu : Unable to correct problems, you have held broken packages

Option 1: You can try:

sudo apt-get upgrade

The 'upgrade' option tries to solve all dependencies in installed packages. Often this is enough to solve broken packages

Option 2: If your package was installed from a 'deb' file and not from repositories, it may be that the new one you are trying to install is causing a conflict, and as a result you need first to remove the previous version of the package. You can do that from Software Center or directly with:

sudo apt-get remove libapache2-mod-wsgi
sudo apt-get clean
sudo apt-get autoclean

then

sudo apt-get update
sudo apt-get install libapache2-mod-wsgi

Hope that helps!


I have also the same problem for sudo apt-get install npm.

Tried

sudo apt-get remove npm
sudo apt-get remove nodejs

then

sudo apt-get clean
sudo apt-get autoclean

then sudo apt-get install nodejs sudo apt-get install npm

solved for me!