PDA

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



chanyunkwan
March 8th, 2009, 03:04 PM
hi,

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-2.6.28.7kwan
Cannot find /lib/modules/2.6.28.7kwan
update-initramfs: failed for /boot/initrd.img-2.6.28.7kwan
dpkg: subprocess post-installation script returned error exit status 1
kwan@kwan-laptop:~$



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 2.6.28.7kwan -d
Cannot delete /boot/initrd.img-2.6.28.7kwan, doesn't exist.


I stuck at here.

Hope to have your help!!

thank you so much.

Kwan