lost and found ( for me ? )

Mint 13 : error : Can't open /usr/share/grub/grub-mkconfig_lib

When upgrading to a newer kernel on Mint13 64bit , I’ve faced the following error.
I’ve upgraded from Mint 12 to Mint 13 via apt-get , not a fresh installation.

errors I’ve faced
(/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib )

# apt-get install linux-image-3.2.0-30-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-3.2.0-30-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-3.2.0-30-generic (3.2.0-30.48) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-30-generic
Warning: No support for locale: ja_JP.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-30-generic...
P: Writing config for /boot/vmlinuz-3.2.0-29-generic...
P: Writing config for /boot/vmlinuz-3.0.0-24-generic...
P: Writing config for /boot/vmlinuz-3.0.0-23-generic...
P: Writing config for /boot/vmlinuz-3.0.0-22-generic...
P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
P: Writing config for /boot/vmlinuz-3.0.0-20-generic...
P: Writing config for /boot/vmlinuz-3.0.0-19-generic...
P: Writing config for /boot/vmlinuz-3.0.0-17-generic...
P: Writing config for /boot/vmlinuz-3.0.0-16-generic...
P: Writing config for /boot/vmlinuz-3.0.0-15-generic...
P: Writing config for /boot/vmlinuz-3.0.0-14-generic...
P: Writing config for /boot/vmlinuz-3.0.0-13-generic...
P: Writing config for /boot/vmlinuz-3.0.0-12-generic...
 No volume groups found
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
Generating grub.cfg ...
/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-30-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-30-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-30-generic; however:
 Package linux-image-3.2.0-30-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.30.32); however:
 Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                         No apport report written because the error message indicates its a followup error from a previous failure.
                                                   Errors were encountered while processing:
linux-image-3.2.0-30-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


This seems to be grub issue…

grub-mkconfig_lib file does not exist..
# ls /usr/share/grub/grub-mkconfig_lib
ls: cannot access /usr/share/grub/grub-mkconfig_lib: No such file or directory


make a symbolic file
# ln -s /usr/lib/grub/grub-mkconfig_lib /usr/share/grub/grub-mkconfig_lib


then upgrade the kernel
# apt-get install linux-image-3.2.0-30-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-3.2.0-30-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-3.2.0-30-generic (3.2.0-30.48) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-30-generic
Warning: No support for locale: ja_JP.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-30-generic...
P: Writing config for /boot/vmlinuz-3.2.0-29-generic...
P: Writing config for /boot/vmlinuz-3.0.0-24-generic...
P: Writing config for /boot/vmlinuz-3.0.0-23-generic...
P: Writing config for /boot/vmlinuz-3.0.0-22-generic...
P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
P: Writing config for /boot/vmlinuz-3.0.0-20-generic...
P: Writing config for /boot/vmlinuz-3.0.0-19-generic...
P: Writing config for /boot/vmlinuz-3.0.0-17-generic...
P: Writing config for /boot/vmlinuz-3.0.0-16-generic...
P: Writing config for /boot/vmlinuz-3.0.0-15-generic...
P: Writing config for /boot/vmlinuz-3.0.0-14-generic...
P: Writing config for /boot/vmlinuz-3.0.0-13-generic...
P: Writing config for /boot/vmlinuz-3.0.0-12-generic...
 No volume groups found
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-30-generic /boot/vmlinuz-3.2.0-30-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-30-generic
Found initrd image: /boot/initrd.img-3.2.0-30-generic
Found linux image: /boot/vmlinuz-3.2.0-29-generic
Found initrd image: /boot/initrd.img-3.2.0-29-generic
Found linux image: /boot/vmlinuz-3.0.0-24-generic
Found initrd image: /boot/initrd.img-3.0.0-24-generic
Found linux image: /boot/vmlinuz-3.0.0-23-generic
Found initrd image: /boot/initrd.img-3.0.0-23-generic
Found linux image: /boot/vmlinuz-3.0.0-22-generic
Found initrd image: /boot/initrd.img-3.0.0-22-generic
Found linux image: /boot/vmlinuz-3.0.0-21-generic
Found initrd image: /boot/initrd.img-3.0.0-21-generic
Found linux image: /boot/vmlinuz-3.0.0-20-generic
Found initrd image: /boot/initrd.img-3.0.0-20-generic
Found linux image: /boot/vmlinuz-3.0.0-19-generic
Found initrd image: /boot/initrd.img-3.0.0-19-generic
Found linux image: /boot/vmlinuz-3.0.0-17-generic
Found initrd image: /boot/initrd.img-3.0.0-17-generic
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found linux image: /boot/vmlinuz-3.0.0-15-generic
Found initrd image: /boot/initrd.img-3.0.0-15-generic
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found initrd image: /boot/initrd.img-3.0.0-14-generic
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
 No volume groups found
grep: input file `/boot/grub/grub.cfg.new' is also the output
done
Setting up linux-image-generic (3.2.0.30.32) ...
Setting up linux-generic (3.2.0.30.32) ...


reboot the OS
# reboot


after booting the OS.
I could upgrade to the newer kernel.
# uname -ri
3.2.0-30-generic x86_64

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.