How can I Resolve dpkg dependency?
A good try to ensure that you system is in a good shape and not has problems with aborted installation is to invoke
dpkg --configure -a
Ensure that the package list are updated and no problem is shown on:
apt-get update
Optional you can remove all old data before the update with:
find /var/lib/apt/lists -type f |xargs rm -f >/dev/null \
Next step to resolve the problem is to remove the linux-server package for a while. This can be done because it has no real content and only introduce a dependency:
This package will always depend on the latest complete Linux kernel available for Server Equipment.
dpkg --remove linux-server
After this step check that all current dependencies are installed:
apt-get install -f
If everything is o.k. you can now install linux-server again:
apt-get install linux-server
Postscriptum
linux-server is deprecated in 12.04. Also for server equipment the generic kernel is used. See apt-cache show linux-image-server
Package: linux-image-server...
Section: metapackages
....
Depends: linux-image-3.2.0-23-generic, linux-firmware
I am regularly having to clean out the /boot of my machines and usually being too full breaks the update - not sure what the ultimate solution is but the process I use seems to work:
Start off with a sudo su
Then go to /boot and do a ls -lSrh
- the ones at the bottom are the biggest - rm
enough of the older ones to clear up enough space.
Then try the following (as excerpted somewhat from above):
sudo apt-get remove linux-server
dpkg --configure -a
apt-get update
apt-get install -f
apt-get autoremove
dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |while read n;done
apt-get install linux-image-server linux-server
reboot
If anything fails, make a comment here and I will see what the issue might be.
I have seen this sort of thing work for the postgresql-9.1 package issues when using the pitti PPA as well.
One time when I ran the procedure I had a problem with grub. Doing a apt-get install --reinstall grub
fixed it.
Thanks for the one liner goes to: http://ubuntuforums.org/showpost.php?p=12180959&postcount=7
Good luck!