grub-common 1.99-12ubuntu5-1linuxmint1 prevents linux-image-3.2.0-24-generic_3.2.0-24.39 from upgrading

Bug #1006772 reported by Miha Tomsic
54
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Linux Mint
New
Undecided
Unassigned

Bug Description

There seems to be an error in grub-common 1.99-12ubuntu5-1linuxmint1 which popped out while doing upgrade more precisely the instalation of linux-image-3.2.0-24-generic_3.2.0-24.39

1. Using Linux Mint 13 upgraded from Linux Mint 12
2. I did apt-get upgrade
3. I got error while upgrading (see below)
4. I would expect upgrade as usually
5. The problem persisted till I made the dirty fix

lenovo ~ # apt-get upgrade
...
...
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-24-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-3.2.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

------------
lenovo ~ # dpkg -S /etc/grub.d/10_linux
grub-common: /etc/grub.d/10_linux

the actual file is located at:
/usr/lib/grub/grub-mkconfig_lib

lenovo ~ # dpkg -S /usr/lib/grub/grub-mkconfig_lib
grub-common: /usr/lib/grub/grub-mkconfig_lib
------------------------------

By fixing line 22 in /etc/grub.d/10_linux:
from:
datarootdir="${prefix}/share"
to:
datarootdir="${prefix}/lib"
the problem was resolved.

I first reported it in the Ubuntu linux-image bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1004943but now it seems not soo good idea as it looks like a different issue.

Thanks and take care,
Miha

Revision history for this message
Fabian A. Scherschel (fabsh) wrote :

I can confirm the problem and the fact that the fix works. I also updated from Mint 12 to 13 with apt-get.

Revision history for this message
hiptrop (lilo5011) wrote :

i can confirm the problem too. The fix works. ( upgraded from Mint 12 to 13 also)

seems to happen on every kernel update!

Revision history for this message
Dag-Erling Smørgrav (dag-erling) wrote :

I also upgraded from 12 to 13. The problem seems to reappear every time the kernel is upgraded. The fix works.

Revision history for this message
Mike (michburt) wrote :

I found out that there is a replacement of the file /etc/grub.d/10_linux with the file /usr/share/ubuntu-system-adjustments/grub/10_linux. This replacement is set in the file /etc/linuxmint/adjustments/15-grub.overwrite.
So if you change the file /usr/share/ubuntu-system-adjustments/grub/10_linux
from:
datarootdir="${prefix}/share"
to:
datarootdir="${prefix}/lib"
you don't have to update the file /etc/grub.d/10_linux every time.

Revision history for this message
Bedlore (brendan-dbinformatics) wrote :
Download full text (3.1 KiB)

I experienced this issue on the last upgrade, and the above trick worked, but not on this latest one. Output below, any ideas please?

bedlore@hyssop:~$ sudo apt-get install -f linux-image-3.2.0-26-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-3.2.0-26-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 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-26-generic (3.2.0-26.41) ...
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-26-generic /boot/vmlinuz-3.2.0-26-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-26-generic
Warning: No support for locale: en_AU.utf8
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-26-generic...
P: Writing config for /boot/vmlinuz-3.2.0-25-generic...
P: Writing config for /boot/vmlinuz-3.2.0-24-generic...
P: Writing config for /boot/vmlinuz-3.2.0-23-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-12-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-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-26-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-26-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-26-generic; however:
  Package linux-image-3.2.0-26-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
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-26-generic
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
bedlore...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.