The following packages have unmet dependencies (apache) [duplicate]

The following packages have unmet dependencies:

apache2: 
    Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1) but 2.2.22-1ubuntu1.2 is to be installed or
             apache2-mpm-prefork (= 2.2.22-1ubuntu1) but it is not going to be installed or
             apache2-mpm-event (= 2.2.22-1ubuntu1) but it is not going to be installed or
             apache2-mpm-itk (= 2.2.22-1ubuntu1) but it is not going to be installed
    Depends: apache2.2-common (= 2.2.22-1ubuntu1) but 2.2.22-1ubuntu1.2 is to be installed

E: Unable to correct problems, you have held broken packages.

Having trouble reinstalling apache.


First go back to a state there all dependencies are satisfied:

 sudo apt-get install -f

Try to remove all apache stuff:

 sudo dpkg --purge --force-depends "apache*"

Reinstall now all necessary dependencies:

 sudo apt-get install -f

Now you can give the apache installation a new try. If the problem persists, please provide more informations.