> On Sat, 26 Jun 2010 16:23:17 -0400 (EDT), Mizanur Khondoker wrote: >> >> I am having the following error while upgrading lenny. Any help would >> be greatly appreciated. >> >> debian:/home/mizanur# aptitude safe-upgrade >> Reading package lists... Done >> Building dependency tree >> Reading state information... Done >> Reading extended state information >> Initializing package states... Done >> Reading task descriptions... Done >> The following partially installed packages will be configured: >> linux-image-2.6.26-2-686 >> 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. >> Need to get 0B of archives. After unpacking 0B will be used. >> Setting up linux-image-2.6.26-2-686 (2.6.26-24) ... >> Running depmod. >> Running mkinitramfs-kpkg. >> Failed to symbolic-link boot/initrd.img-2.6.26-2-686 to initrd.img. >> dpkg: error processing linux-image-2.6.26-2-686 (--configure): >> subprocess post-installation script returned error exit status 17 >> Errors were encountered while processing: >> linux-image-2.6.26-2-686 >> E: Sub-process /usr/bin/dpkg returned an error code (1) >> A package failed to install. Trying to recover: >> Setting up linux-image-2.6.26-2-686 (2.6.26-24) ... >> Running depmod. >> Running mkinitramfs-kpkg. >> Failed to symbolic-link boot/initrd.img-2.6.26-2-686 to initrd.img. >> dpkg: error processing linux-image-2.6.26-2-686 (--configure): >> subprocess post-installation script returned error exit status 17 >> Errors were encountered while processing: >> linux-image-2.6.26-2-686 > > Mizanur, > > Please provide the following information: > > (1) Which boot loader are you using? (Grub version 1? Grub version 2? > lilo? extlinux?) > > (2) What is the contents of /etc/kernel-img.conf? > > (3) What are the names of the files in the following directories? > > /etc/kernel/preinst.d > /etc/kernel/prerm.d > /etc/kernel/postinst.d > /etc/kernel/postrm.d > > (4) What is the output of the following commands? > > ls -Al /boot/ > ls -Al / > > -- > .''`. Stephen Powell > : :' : > `. `'` > `- Dear Stephen,
Thanks for trying to help. Please find below the information you requested. (1) debian:/home/mizanur# grub-install -v grub-install (GNU GRUB 0.97) (2) debian:/home/mizanur# cat /etc/kernel-img.conf # Kernel image management overrides # See kernel-img.conf(5) for details do_symlinks = yes relative_links = yes do_bootloader = no do_bootfloppy = no do_initrd = yes link_in_boot = no postinst_hook = update-grub postrm_hook = update-grub (3) None of these directories seem to exist. In fact there is no kernel directory under /etc/. debian:/home/mizanur# ls -l /etc/kernel/preinst.d ls: cannot access /etc/kernel/preinst.d: No such file or directory debian:/home/mizanur# ls -l /etc/kernel/prerm.d ls: cannot access /etc/kernel/prerm.d: No such file or directory debian:/home/mizanur# ls -l /etc/kernel/postinst.d ls: cannot access /etc/kernel/postinst.d: No such file or directory debian:/home/mizanur# ls -l /etc/kernel/postrm.d ls: cannot access /etc/kernel/postrm.d: No such file or directory (4) debian:/home/mizanur# ls -Al /boot/ total 16594 -rw-r--r-- 1 root root 91746 2010-06-21 11:42 config-2.6.26-2-686 drwxr-xr-x 2 root root 1024 2010-06-26 21:08 grub -rw-r--r-- 1 root root 7197441 2010-06-26 21:16 initrd.img-2.6.26-2-686 -rw-r--r-- 1 root root 7190250 2009-04-13 10:45 initrd.img-2.6.26-2-686.bak -rw-r--r-- 1 root root 928782 2010-06-21 11:42 System.map-2.6.26-2-686 -rw-r--r-- 1 root root 1507408 2010-06-21 11:42 vmlinuz-2.6.26-2-686 debian:/home/mizanur# ls -Al / total 75 drwxr-xr-x 2 root root 5120 2010-06-26 20:20 bin drwxr-xr-x 3 root root 1024 2010-06-26 21:16 boot lrwxrwxrwx 1 root root 11 2007-11-14 20:27 cdrom -> media/cdrom drwxr-xr-x 16 root root 3980 2010-06-27 10:04 dev drwxr-xr-x 152 root root 9216 2010-06-27 10:06 etc drwxr-xr-x 5 root root 4096 2010-06-26 08:32 home drwxr-xr-x 2 root root 1024 2007-11-14 20:29 initrd lrwxrwxrwx 1 root root 28 2009-05-10 12:05 initrd.img -> boot/initrd.img-2.6.26-1-486 lrwxrwxrwx 1 root root 28 2009-04-13 10:45 initrd.img.old -> boot/initrd.img-2.6.26-2-686 drwxr-xr-x 16 root root 9216 2010-06-23 22:04 lib drwx------ 2 root root 12288 2007-11-14 20:27 lost+found drwxr-xr-x 4 root root 1024 2010-06-27 10:05 media drwxr-xr-x 5 root root 1024 2009-08-01 23:42 mnt drwxr-xr-x 2 root root 1024 2007-11-14 20:29 opt dr-xr-xr-x 163 root root 0 2010-06-27 11:03 proc -rw-r--r-- 1 mizanur mizanur 4400 2008-03-31 13:04 programmes -rw------- 1 root root 1024 2007-11-14 20:55 .rnd drwxr-xr-x 32 root root 1024 2010-06-24 21:43 root drwxr-xr-x 2 root root 6144 2010-06-26 20:20 sbin drwxr-xr-x 2 root root 1024 2007-03-07 22:56 selinux drwxr-xr-x 2 root root 1024 2007-11-14 20:29 srv drwxr-xr-x 11 root root 0 2010-06-27 11:03 sys drwxrwxrwt 12 root root 8192 2010-06-27 10:18 tmp drwxr-xr-x 14 root root 4096 2008-03-31 12:52 usr drwxr-xr-x 16 root root 4096 2007-11-14 20:57 var lrwxrwxrwx 1 root root 25 2009-05-10 12:05 vmlinuz -> boot/vmlinuz-2.6.26-1-486 lrwxrwxrwx 1 root root 25 2009-04-13 10:45 vmlinuz.old -> boot/vmlinuz-2.6.26-2-686 regards, -- Mizanur Khondoker -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktilcqra6j_2_hdwkmwyfywotbn-arnnhmq2eo...@mail.gmail.com