Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This morning I upgraded the server running ubuntu 10.04 to the latest kernel... except that apt-get returned an error. I'm pretty sure I shouldn't reboot, so I'm asking here to help solve the problem so I can reboot safely without compromising the machine. (It runs a network share which all the developer's SVN clients commit to - it's very important to keep downtime to a minimum). I was using webmin to send the command at the time.

Any help would be very much appreciated!



sudo apt-get install -f didn't work, sudo apt-get update && sudo apt-get upgrade gave me this:

share|improve this question
up vote 1 down vote accepted

If you don't need the nvidia-common package, just uninstall it, and the upgrade should run smoothly again.

EDIT: If uninstalling gives an error too, I'd back up the /etc/kernel/postinst.d/nvidia-common and /etc/kernel/header_postinst.d/nvidia-common files, remove them, and then try purging the package again.

share|improve this answer
That resulted in this error: – John Hamelink Mar 14 '11 at 12:00
That results in this error: – John Hamelink Mar 14 '11 at 12:18
Ah, forgot about the /etc/kernel/header_postinst.d/nvidia-common file, the same as for the postinst.d/nvidia-common applies. – arrange Mar 14 '11 at 12:22
Thank you! That solved the problem :) – John Hamelink Mar 14 '11 at 12:26

This should not cause any problem for rebooting to current kernel or any other existing kernel versions. You should be able to see older working kernels while you are booting.

share|improve this answer
Thanks, I'll hold you to that if I reboot to a blinking cursor! :P – John Hamelink Mar 14 '11 at 11:44
Sure. Old kernels are never automatically upgraded. A new kernel always installed as an additional package. You need to remove old kernels once you are satisfied new ones are working fine. It will automatically update the GRUB menu as well when you remove old kernels. – Jamess Mar 14 '11 at 12:13
It's not a sufficient solution I think, because this will not repair the broken dependency in dpkg. – arrange Mar 14 '11 at 12:25
Agreed, but its comforting to know that it won't cause my system to be unusable in the future. – John Hamelink Mar 14 '11 at 12:27
Does not being able to (un)install or upgrade anything qualify as "unusable"? ;) – arrange Mar 14 '11 at 12:29

Try following:

sudo apt-get install -f


sudo apt-get update && apt-get upgrade
share|improve this answer
sudo apt-get install -f didn't work, sudo apt-get update sudo apt-get upgrade gave me this: – John Hamelink Mar 14 '11 at 11:19
Try: sudo apt-get purge nvidia common && sudo apt-get install nvidia-common and then reinstall kernel. – mount.cifs Mar 14 '11 at 11:47
That resulted in: – John Hamelink Mar 14 '11 at 11:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.