Well, I haven't done what #4 suggest, because I solved my problem with a
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 would like to point out the actual problem seems to be in grub-common 
package. When I checked the version of grub-common I got found out it's a linux 
Mint package:
grub-common 1.99-12ubuntu5-1linuxmint1

I don't know if it's a Mint problem or it originates upstream in Ubuntu
or even debian.

Maybe this can help someone.

Take care, 
Miha

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1004943

Title:
  package linux-image-3.2.0-24-generic 3.2.0-24.39 failed to
  install/upgrade: ErrorMessage: subprocess installed post-installation
  script returned error exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1004943/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to