Synaptic fails after failed kernel upgrade

Asked by Mike W.

After a fresh install of Edgy Eft, I ran the package upgrade and the kernel got upgraded from 2.6.17-10 to 2.6.17-11. Unfortunately, the /boot partition filled up before it could finish, leaving the new kernel unusable. So, I booted into the 2.6.17-10 and stupidly removed the 2.6.17-11 kernel files from /boot. Now, synaptic gives me this:

Setting up linux-image-2.6.17-11-generic (2.6.17.1-11.35) ...
Internal Error: Could not find image (/boot/vmlinuz-2.6.17-11-generic)
dpkg: error processing linux-image-2.6.17-11-generic (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.17-11-generic; however:
  Package linux-image-2.6.17-11-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.17-11-generic
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Is there anyway to fix this or should I just reinstall Ubuntu with better partition sizes?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

If you dont have enough room in /boot for two kernels then you're never going to be able to upgrade the kernel, so repartitioning or resizing the partitions (using gparted on the live cd) would be the only option.

If you have made space, or can make space in /boot, then you can reinstall the kernel with:-

sudo apt-get install linux-image-2.6.17-11-generic --reinstall

But if you dont have enough space still then that will fail.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#2

Just to clarify, can you post the output of the following commands:-

mount

du -hs /boot

df -h

Revision history for this message
USSR (samuel-lee-1991) said :
#3

Ermm..... Have you tried compiled a custom kernel (Not supplied by Ubuntu Update) before?

I get similar error when after I compiled a custom kernel from the official kernel (linux) website and I attempted to install official Ubuntu latest kernel (older than true Linux official kernel. I did so is because I cannot get restricted drivers enabled (Nothing is shown). I can try Envy etc but not work with Compiz using GeForce 7300 GT)

It may not necessary to be disk full because mine is a standard installation (so boot should be same as root partition) although disk full is a high chance. :(

Revision history for this message
Steven Raith (steven-raith) said :
#4

I have the same problem, my /boot folder is too small, and I did exactly the same thing - I dumped a couple of the old legacy kernels from there, and now I have a couple of minor problems - XMMS won't play SID files [the installer craps out at the end citing a lack of kernel setup - version unimportant, it's one of the ones I deleted meaning it fails dependencies] and I can't log into Gnome without using Failsafe mode - although I suspect that is unrelated.

Also, I can't boot from CDROM [mobo problem on the laptop - have changed CD drive for a new OEM unit to no effect] so I'll have to do a PXE boot to load the live CD and GParted the drive.

I can't help thinking that having a much larger /boot folder in the default installation - say, minimum 800mb - would be a good thing if it's going to keep storing the legacy stuff there, unless someone knows of a safe way to clean out the old images?

For the record, from what I can find out, the /boot folder is locked in size - you have to unmount it to resize it, and if you did a 'use the whole disk' and have no unpartitioned space left, you're knackered without a live CD to resize the partitions with. It's not a 'folder', it appears to be a seperate filesystem, like /swap.

Can you help with this problem?

Provide an answer of your own, or ask Mike W. for more information if necessary.

To post a message you must log in.