Ubuntu: cannot fix problems, you have broken packages

trying to fix this, I get the error "Unable to fix errors, you had an error message."

Apache version

Server Version: Apache / 2.4.2 (Ubuntu) Server built: June 27, 2012 07:23:35

# aptitude install libapache2-mod-wsgi The following NEW packages will be installed: apache2.2-common{ab} libapache2-mod-wsgi 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 299 kB of archives. After unpacking 1,047 kB will be used. The following packages have unmet dependencies: apache2 : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.5 is to be installed. apache2.2-common : Depends: apache2.2-bin (= 2.2.22-1ubuntu1.5) but it is not going to be installed. Depends: apache2-utils but it is not going to be installed. apache2-bin : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.5 is to be installed. apache2-data : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.5 is to be installed. The following actions will resolve these dependencies: Keep the following packages at their current version: 1) apache2.2-common [Not Installed] 2) libapache2-mod-wsgi [Not Installed] Accept this solution? [Y/n/q/?] Y No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. 

Any help described

+8
python django ubuntu mod-wsgi
source share
4 answers

Option 1: You can try:

 sudo apt-get upgrade 

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

Option 2 If your package was installed from the "deb" file, and not from the repositories, it may turn out that the new one you are trying to install causes a conflict, and as a result, you must first uninstall the previous version of the package. You can do this from the 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 this helps!

+11
source share

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

Tried to

 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

decided for me!

+2
source share

This will work for virtual errors errorcode1, and also E is unable to find package problems

  sudo apt-get update sudo apt-get install python-software-properties sudo apt-get install apt-file sudo apt-file update sudo apt-get install software-properties-common sudo apt-get install <your filename> 
+2
source share

My problem was that I was doing a silent installation using the -qq flags. Disabling them showed a dependency problem for me.

0
source share

All Articles