Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

http://codepad.org/7rpA7CKo

Any help would be very much appreciated!

John

Update:

sudo apt-get install -f didn't work, sudo apt-get update && sudo apt-get upgrade gave me this: codepad.org/flwNsMO8

share|improve this question

3 Answers 3

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: codepad.org/HJGFQIKq –  John Hamelink Mar 14 '11 at 12:00
    
That results in this error: codepad.org/ehAss9qv –  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
1  
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

or

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: codepad.org/flwNsMO8 –  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: codepad.org/jr4H9X7K –  John Hamelink Mar 14 '11 at 11:58

Your Answer

 
discard

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.