Bug#841051: Can't open /grub-mkconfig_lib on upgrade due to empty $pkgdatadir
Colin Watson
cjwatson at debian.org
Mon Oct 17 11:46:30 UTC 2016
On Mon, Oct 17, 2016 at 12:30:37PM +0200, Martin Steigerwald wrote:
> Am Montag, 17. Oktober 2016, 10:02:43 CEST schrieb Colin Watson:
> > On Mon, Oct 17, 2016 at 10:28:56AM +0200, Martin Steigerwald wrote:
> > > Generating grub configuration file ...
> > > /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib
> >
> > pkgdatadir is supposed to be exported by grub-mkconfig. Could you
> > please change "set -e" at the top of /usr/sbin/grub-mkconfig to
> > "set -ex", try this again, and send me the output?
>
> It is set. But I do not see an export of the variable anywhere in the script.
>
> Anyway, here is output:
>
> merkaba:~> LANG=C apt upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Calculating upgrade... Done
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n]
> Setting up grub-pc (2.02~beta3-1) ...
> device node not found
> device node not found
> device node not found
> device node not found
> Installing for i386-pc platform.
> Installation finished. No error reported.
> Installing for i386-pc platform.
> Installation finished. No error reported.
> + prefix=/usr
> + exec_prefix=/usr
> + datarootdir=/usr/share
> + prefix=/usr
> + exec_prefix=/usr
> + sbindir=/usr/sbin
> + bindir=/usr/bin
> + sysconfdir=/etc
> + PACKAGE_NAME=GRUB
> + PACKAGE_VERSION=2.02~beta2-17
For some reason you have a thoroughly obsolete version of grub-mkconfig.
Your report said that you have grub-common 2.02~beta3-1, but the above
is clearly from 2.02~beta2-17. I suspect that you have a local
diversion of /usr/sbin/grub-mkconfig. Try "dpkg-divert --listpackage
/usr/sbin/grub-mkconfig"?
--
Colin Watson [cjwatson at debian.org]
More information about the Pkg-grub-devel
mailing list