Ubuntu server 12.04 will not install packages
Posted on 2014-08-29
My problem started with a failed kernel update because the /boot partition was full. I have followed the many suggestions in google searches, most lately ran the following:
sudo apt-get clean
sudo apt-get update
sudo apt-get -f install
89 packages all failed. Webmin package updater produces the following snippet:
Building complete list of updates ..
Now updating apache2 ..
Installing package(s) with command apt-get -y install apache2 ..
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 126.96.36.199.77); however:
Version of linux-image-generic on system is 188.8.131.52.79.
linux-generic depends on linux-headers-generic (= 184.108.40.206.77); however:
Version of linux-headers-generic on system is 220.127.116.11.79.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.7) but it is not going to be installed or
apache2-mpm-prefork (= 2.2.22-1ubuntu1.7) but 2.2.22-1ubuntu1.5 is to be installed or
apache2-mpm-event (= 2.2.22-1ubuntu1.7) but it is not going to be installed or
apache2-mpm-itk (= 2.2.22-1ubuntu1.7) but it is not going to be installed
Depends: apache2.2-common (= 2.2.22-1ubuntu1.7) but 2.2.22-1ubuntu1.5 is to be installed
linux-generic : Depends: linux-image-generic (= 18.104.22.168.77) but 22.214.171.124.79 is to be installed
Depends: linux-headers-generic (= 126.96.36.199.77) but 188.8.131.52.79 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
.. install failed!