[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Shutdown during kernel upgrade using aptitude



I keep getting error message:
can't find file /lib/modules/2.6.9-1-k7/modules.dep
at boot time.  I can see the file is there.
At botton is the list of things I have already done.

root:/lib/modules/2.6.9-1-k7# ls -l
total 836
drwxr-xr-x   2 root root   4096 Dec  2 22:16 boot
drwxr-xr-x   2 root root   4096 Dec  2 22:16 initrd
drwxr-xr-x  10 root root   4096 Dec  2 22:16 kernel
-rw-r--r--   1 root root 141154 Dec  2 22:16 modules.alias
-rw-r--r--   1 root root     69 Dec  2 22:16 modules.ccwmap
-rw-r--r--   1 root root 236413 Dec  2 22:16 modules.dep
-rw-r--r--   1 root root    517 Dec  2 22:16 modules.ieee1394map
-rw-r--r--   1 root root   1141 Dec  2 22:16 modules.inputmap
-rw-r--r--   1 root root  16427 Dec  2 22:16 modules.isapnpmap
-rw-r--r--   1 root root 135507 Dec  2 22:16 modules.pcimap
-rw-r--r--   1 root root 106450 Dec  2 22:16 modules.symbols
-rw-r--r--   1 root root 156573 Dec  2 22:16 modules.usbmap
lrwxrwxrwx   1 root root     87 Dec  2 22:16 source -> /home/dilinger/src/kernel/kernel-image/2.6.9-3/kernel-image-2.6.9-i386-2.6.9/install-k7
root:/lib/modules/2.6.9-1-k7#

-----------------------------------------------------------------
 --- On Wed 12/01, J F < j1234f@excite.com > wrote:
From: J F [mailto: j1234f@excite.com]
Date: Wed,  1 Dec 2004 18:49:34 -0500
Subject: Shutdown during system upgrade

Subject:  
Shutdown during system upgrade


 




My system shutdown during system upgrade using
aptitude. It was sitting there warning that
I should not shutdown while upgrading the kernel and
lilo might not work.

Anyway, here is how I fixed it:
1. Boot Knoppix
2. Click on hda3 to mount it. Close the file browser window
and right click on hda3, select properties and 
uncheck the read only button.
3. su
4. cd /
5. remove the link from /boot to the cdrom and then:
6. ln -s /mnt/hda3/boot .
7. Knoppix is in ramdisk, so cp /mnt/hda3/etc/lilo.conf /etc/lilo.conf
8. rm /vmlinuz; cd /
ln -s /boot/kernimagewhateververion vmlinuz
9. I had a problem with the kernel that was
installing, so I deleted it out of lilo.conf and
then typed:
lilo
 
Reboot into debian
10. If you run aptitude and get the error like
can't lock cache, then:
dpkg --configure -a
11. lilo
Fatal: open /initrd.img: No such file or directory
12. # mkinitrd -o /initrd.img
13. lilo
and hopefully it will work now.

Just thought somebody might run into the same problem.



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Reply to: