View Full Version : [ubuntu] can't use synaptic after deleting a custom kernel

March 8th, 2009, 03:04 PM

I compiled the newest kernel and deleted it, maybe not properly.
so, now I can't use the synaptic or apt-get to install anything.

the system asked me to run this to fix the error.
sudo dpkg --configure -a

kwan@kwan-laptop:~$ sudo dpkg --configure -a
[sudo] password for kwan:
Setting up initramfs-tools (0.92bubuntu16) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-
Cannot find /lib/modules/
update-initramfs: failed for /boot/initrd.img-
dpkg: subprocess post-installation script returned error exit status 1

then I tried this solution I found on this forum(it doesn't work for me)

kwan@kwan-laptop:/etc/event.d$ sudo update-initramfs -k -d
Cannot delete /boot/initrd.img-, doesn't exist.

I stuck at here.

Hope to have your help!!

thank you so much.