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 + host_os=linux-gnu + datadir=/usr/share + [ x = x ] + pkgdatadir=/usr/share/grub + grub_cfg= + grub_mkconfig_dir=/etc/grub.d + basename /usr/sbin/grub-mkconfig + self=grub-mkconfig + grub_probe=/usr/sbin/grub-probe + grub_file=/usr/bin/grub-file + grub_editenv=/usr/bin/grub-editenv + grub_script_check=/usr/bin/grub-script-check + export TEXTDOMAIN=grub + export TEXTDOMAINDIR=/usr/share/locale + . /usr/share/grub/grub-mkconfig_lib + prefix=/usr + exec_prefix=/usr + datarootdir=/usr/share + datadir=/usr/share + bindir=/usr/bin + sbindir=/usr/sbin + [ x/usr/share/grub = x ] + test x/usr/sbin/grub-probe = x + test x/usr/bin/grub-file = x + test x = x + grub_mkrelpath=/usr/bin/grub-mkrelpath + which gettext + : + grub_tab= + test 2 -gt 0 + option=-o + shift + argument -o /boot/grub/grub.cfg + opt=-o + shift + test 1 -eq 0 + echo /boot/grub/grub.cfg + grub_cfg=/boot/grub/grub.cfg + shift + test 0 -gt 0 + fgrep -qs ${GRUB_PREFIX}/video.lst /etc/grub.d/00_header + [ x = x ] + id -u + EUID=0 + [ 0 != 0 ] + set /usr/sbin/grub-probe dummy + test -f /usr/sbin/grub-probe + : + head -1 + /usr/sbin/grub-probe --target=device / + GRUB_DEVICE=/dev/mapper/sata-debian + /usr/sbin/grub-probe --device /dev/mapper/sata-debian --target=fs_uuid + GRUB_DEVICE_UUID=ebda8c23-2154-4559-be2b-9e9c422658d1 + /usr/sbin/grub-probe --target=device /boot + GRUB_DEVICE_BOOT=/dev/sdb2 + /usr/sbin/grub-probe --device /dev/sdb2 --target=fs_uuid + GRUB_DEVICE_BOOT_UUID=96735182-42db-4a5f-944a-2f91eae1edf1 + /usr/sbin/grub-probe --device /dev/mapper/sata-debian --target=fs + GRUB_FS=btrfs + [ xbtrfs = xunknown ] + test -f /etc/default/grub + . /etc/default/grub + GRUB_DEFAULT=0 + GRUB_TIMEOUT=5 + lsb_release -i -s + GRUB_DISTRIBUTOR=Debian + GRUB_CMDLINE_LINUX_DEFAULT=resume=/dev/mapper/sata-swap init=/bin/systemd no_console_suspend thinkpad_acpi.fan_control=1 + GRUB_CMDLINE_LINUX= + GRUB_GFXMODE=1920x1080 + [ -e /etc/default/grub.d/*.cfg ] + [ x != x ] + termoutdefault=0 + [ x = x ] + GRUB_TERMINAL_OUTPUT=gfxterm + termoutdefault=1 + GRUB_ACTUAL_DEFAULT=0 + [ x0 = xsaved ] + [ x = x ] + GRUB_RECOVERY_TITLE=recovery mode + export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT GRUB_PRELOAD_MODULES GRUB_ACTUAL_DEFAULT + export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_TIMEOUT_STYLE GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON GRUB_TIMEOUT_BUTTON GRUB_TIMEOUT_STYLE_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_BUTTON_CMOS_CLEAN GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_LINUX_XEN_REPLACE GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT GRUB_CMDLINE_GNUMACH GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_ENABLE_CRYPTODISK GRUB_BADRAM GRUB_OS_PROBER_SKIP_LIST GRUB_DISABLE_SUBMENU GRUB_RECORDFAIL_TIMEOUT GRUB_RECOVERY_TITLE + test x/boot/grub/grub.cfg != x + rm -f /boot/grub/grub.cfg.new + umask + oldumask=0022 + umask 077 + exec + umask 0022 + gettext Generating grub configuration file ... Generating grub configuration file ...+ echo + cat + grub_file_is_not_garbage /etc/grub.d/00_header + test -f /etc/grub.d/00_header + return 0 + test -x /etc/grub.d/00_header + echo + echo ### BEGIN /etc/grub.d/00_header ### + /etc/grub.d/00_header /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib dpkg: error processing package grub-pc (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: grub-pc ====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ====== ----- Show old opportunities as well as new ones: how-can-i-help --old ----- E: Sub-process /usr/bin/dpkg returned an error code (1) Thanks, -- Martin