n: Installation started. (17.1-11-ga4c9636b-0ubuntu1~16.04.1) third party drivers not installed or necessary. Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [235 kB] Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Get:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [65.5 kB] Hit:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease Get:5 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8386 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1009 kB] Fetched 9846 kB in 3s (3676 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: crda grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libdbus-glib-1-2 libnl-3-200 libnl-genl-3-200 linux-firmware linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic linux-signed-image-4.13.0-32-generic linux-signed-image-generic os-prober sbsigntool thermald wireless-regdb Suggested packages: multiboot-doc grub-emu xorriso desktop-base fdutils linux-doc-4.13.0 | linux-source-4.13.0 linux-tools The following NEW packages will be installed: crda grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libdbus-glib-1-2 libnl-3-200 libnl-genl-3-200 linux-firmware linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic linux-signed-generic linux-signed-image-4.13.0-32-generic linux-signed-image-generic os-prober sbsigntool thermald wireless-regdb 0 upgraded, 23 newly installed, 0 to remove and 16 not upgraded. Need to get 109 MB of archives. After this operation, 545 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdbus-glib-1-2 amd64 0.110-2 [58.3 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnl-3-200 amd64 3.2.29-0ubuntu3 [52.8 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnl-genl-3-200 amd64 3.2.29-0ubuntu3 [11.2 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 wireless-regdb all 2016.06.10-0ubuntu1 [8824 B] Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 iw amd64 4.14-0.1 [75.4 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 crda amd64 3.18-1build1 [63.5 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-common amd64 2.02-2ubuntu7 [1773 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub2-common amd64 2.02-2ubuntu7 [531 kB] Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-pc-bin amd64 2.02-2ubuntu7 [900 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-pc amd64 2.02-2ubuntu7 [137 kB] Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-gfxpayload-lists amd64 0.7 [3658 B] Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-firmware all 1.170 [41.2 MB] Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-headers-4.13.0-32 all 4.13.0-32.35 [10.9 MB] Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-headers-4.13.0-32-generic amd64 4.13.0-32.35 [691 kB] Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-headers-generic amd64 4.13.0.32.34 [2420 B] Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-image-4.13.0-32-generic amd64 4.13.0-32.35 [20.8 MB] Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-image-extra-4.13.0-32-generic amd64 4.13.0-32.35 [31.5 MB] Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 sbsigntool amd64 0.6-3.2ubuntu2 [59.4 kB] Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-signed-image-4.13.0-32-generic amd64 4.13.0-32.35 [4004 B] Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-signed-image-generic amd64 4.13.0.32.34 [2484 B] Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-signed-generic amd64 4.13.0.32.34 [1816 B] Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 os-prober amd64 1.74ubuntu1 [19.8 kB] Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 thermald amd64 1.7.0-3 [185 kB] Preconfiguring packages ... Fetched 109 MB in 5s (23.5 MB/s) E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device) Selecting previously unselected package libdbus-glib-1-2:amd64. (Reading database ... 27025 files and directories currently installed.) Preparing to unpack .../00-libdbus-glib-1-2_0.110-2_amd64.deb ... Unpacking libdbus-glib-1-2:amd64 (0.110-2) ... Selecting previously unselected package libnl-3-200:amd64. Preparing to unpack .../01-libnl-3-200_3.2.29-0ubuntu3_amd64.deb ... Unpacking libnl-3-200:amd64 (3.2.29-0ubuntu3) ... Selecting previously unselected package libnl-genl-3-200:amd64. Preparing to unpack .../02-libnl-genl-3-200_3.2.29-0ubuntu3_amd64.deb ... Unpacking libnl-genl-3-200:amd64 (3.2.29-0ubuntu3) ... Selecting previously unselected package wireless-regdb. Preparing to unpack .../03-wireless-regdb_2016.06.10-0ubuntu1_all.deb ... Unpacking wireless-regdb (2016.06.10-0ubuntu1) ... Selecting previously unselected package iw. Preparing to unpack .../04-iw_4.14-0.1_amd64.deb ... Unpacking iw (4.14-0.1) ... Selecting previously unselected package crda. Preparing to unpack .../05-crda_3.18-1build1_amd64.deb ... Unpacking crda (3.18-1build1) ... Selecting previously unselected package grub-common. Preparing to unpack .../06-grub-common_2.02-2ubuntu7_amd64.deb ... Unpacking grub-common (2.02-2ubuntu7) ... Selecting previously unselected package grub2-common. Preparing to unpack .../07-grub2-common_2.02-2ubuntu7_amd64.deb ... Unpacking grub2-common (2.02-2ubuntu7) ... Selecting previously unselected package grub-pc-bin. Preparing to unpack .../08-grub-pc-bin_2.02-2ubuntu7_amd64.deb ... Unpacking grub-pc-bin (2.02-2ubuntu7) ... Selecting previously unselected package grub-pc. Preparing to unpack .../09-grub-pc_2.02-2ubuntu7_amd64.deb ... Unpacking grub-pc (2.02-2ubuntu7) ... Selecting previously unselected package grub-gfxpayload-lists. Preparing to unpack .../10-grub-gfxpayload-lists_0.7_amd64.deb ... Unpacking grub-gfxpayload-lists (0.7) ... Selecting previously unselected package linux-firmware. Preparing to unpack .../11-linux-firmware_1.170_all.deb ... Unpacking linux-firmware (1.170) ... Selecting previously unselected package linux-headers-4.13.0-32. Preparing to unpack .../12-linux-headers-4.13.0-32_4.13.0-32.35_all.deb ... Unpacking linux-headers-4.13.0-32 (4.13.0-32.35) ... Selecting previously unselected package linux-headers-4.13.0-32-generic. Preparing to unpack .../13-linux-headers-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Unpacking linux-headers-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package linux-headers-generic. Preparing to unpack .../14-linux-headers-generic_4.13.0.32.34_amd64.deb ... Unpacking linux-headers-generic (4.13.0.32.34) ... Selecting previously unselected package linux-image-4.13.0-32-generic. Preparing to unpack .../15-linux-image-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Done. Unpacking linux-image-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package linux-image-extra-4.13.0-32-generic. Preparing to unpack .../16-linux-image-extra-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Unpacking linux-image-extra-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package sbsigntool. Preparing to unpack .../17-sbsigntool_0.6-3.2ubuntu2_amd64.deb ... Unpacking sbsigntool (0.6-3.2ubuntu2) ... Selecting previously unselected package linux-signed-image-4.13.0-32-generic. Preparing to unpack .../18-linux-signed-image-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Unpacking linux-signed-image-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package linux-signed-image-generic. Preparing to unpack .../19-linux-signed-image-generic_4.13.0.32.34_amd64.deb ... Unpacking linux-signed-image-generic (4.13.0.32.34) ... Selecting previously unselected package linux-signed-generic. Preparing to unpack .../20-linux-signed-generic_4.13.0.32.34_amd64.deb ... Unpacking linux-signed-generic (4.13.0.32.34) ... Selecting previously unselected package os-prober. Preparing to unpack .../21-os-prober_1.74ubuntu1_amd64.deb ... Unpacking os-prober (1.74ubuntu1) ... Selecting previously unselected package thermald. Preparing to unpack .../22-thermald_1.7.0-3_amd64.deb ... Unpacking thermald (1.7.0-3) ... Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for install-info (6.5.0.dfsg.1-2) ... Setting up libdbus-glib-1-2:amd64 (0.110-2) ... Setting up wireless-regdb (2016.06.10-0ubuntu1) ... Setting up linux-image-4.13.0-32-generic (4.13.0-32.35) ... Running depmod. update-initramfs: deferring update (hook will be called later) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic Processing triggers for libc-bin (2.26-0ubuntu2) ... Setting up grub-common (2.02-2ubuntu7) ... update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Running in chroot, ignoring request. invoke-rc.d: policy-rc.d denied execution of start. Processing triggers for systemd (235-3ubuntu3) ... Setting up sbsigntool (0.6-3.2ubuntu2) ... Processing triggers for man-db (2.8.1-1) ... Processing triggers for dbus (1.12.2-1ubuntu1) ... Setting up libnl-3-200:amd64 (3.2.29-0ubuntu3) ... Setting up linux-firmware (1.170) ... update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. Setting up linux-headers-4.13.0-32 (4.13.0-32.35) ... Setting up linux-signed-image-4.13.0-32-generic (4.13.0-32.35) ... warning: file-aligned section .text extends beyond end of file warning: checksum areas are greater than image size. Invalid section table? /usr/sbin/grub-mkconfig: 255: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent Setting up grub-pc-bin (2.02-2ubuntu7) ... Setting up thermald (1.7.0-3) ... Created symlink /etc/systemd/system/dbus-org.freedesktop.thermald.service → /lib/systemd/system/thermald.service. Created symlink /etc/systemd/system/multi-user.target.wants/thermald.service → /lib/systemd/system/thermald.service. Setting up grub2-common (2.02-2ubuntu7) ... Setting up libnl-genl-3-200:amd64 (3.2.29-0ubuntu3) ... Setting up os-prober (1.74ubuntu1) ... Setting up linux-headers-4.13.0-32-generic (4.13.0-32.35) ... Setting up iw (4.14-0.1) ... Setting up linux-headers-generic (4.13.0.32.34) ... Setting up crda (3.18-1build1) ... Setting up linux-image-extra-4.13.0-32-generic (4.13.0-32.35) ... run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic Setting up linux-signed-image-generic (4.13.0.32.34) ... Setting up linux-signed-generic (4.13.0.32.34) ... Setting up grub-gfxpayload-lists (0.7) ... Setting up grub-pc (2.02-2ubuntu7) ... Creating config file /etc/default/grub with new version Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for libc-bin (2.26-0ubuntu2) ... Processing triggers for dbus (1.12.2-1ubuntu1) ... Setting up swapspace version 1, size = 3.8 GiB (4019187712 bytes) no label, UUID=522e5854-088b-4e2c-ae0b-858179ce8662 Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: grub-pc-bin Use 'apt autoremove' to remove it. The following additional packages will be installed: efibootmgr grub-efi-amd64-bin libefiboot1 libefivar1 mokutil secureboot-db shim The following packages will be REMOVED: grub-gfxpayload-lists grub-pc The following NEW packages will be installed: efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed libefiboot1 libefivar1 mokutil secureboot-db shim shim-signed 0 upgraded, 10 newly installed, 2 to remove and 16 not upgraded. Need to get 1877 kB of archives. After this operation, 9884 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libefivar1 amd64 34-1 [46.2 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libefiboot1 amd64 34-1 [23.5 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 efibootmgr amd64 15-1 [28.2 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-efi-amd64-bin amd64 2.02-2ubuntu7 [655 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu7 [46.8 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-efi-amd64-signed amd64 1.92+2.02-2ubuntu7 [297 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 mokutil amd64 0.3.0-0ubuntu5 [20.9 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 secureboot-db amd64 1.1 [2740 B] Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 shim amd64 13-0ubuntu2 [440 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 shim-signed amd64 1.33.1+13-0ubuntu2 [316 kB] Preconfiguring packages ... Fetched 1877 kB in 0s (46.4 MB/s) E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device) (Reading database ... 64191 files and directories currently installed.) Removing grub-gfxpayload-lists (0.7) ... Removing grub-pc (2.02-2ubuntu7) ... Selecting previously unselected package libefivar1:amd64. (Reading database ... 64170 files and directories currently installed.) Preparing to unpack .../0-libefivar1_34-1_amd64.deb ... Unpacking libefivar1:amd64 (34-1) ... Selecting previously unselected package libefiboot1:amd64. Preparing to unpack .../1-libefiboot1_34-1_amd64.deb ... Unpacking libefiboot1:amd64 (34-1) ... Selecting previously unselected package efibootmgr. Preparing to unpack .../2-efibootmgr_15-1_amd64.deb ... Unpacking efibootmgr (15-1) ... Selecting previously unselected package grub-efi-amd64-bin. Preparing to unpack .../3-grub-efi-amd64-bin_2.02-2ubuntu7_amd64.deb ... Unpacking grub-efi-amd64-bin (2.02-2ubuntu7) ... Selecting previously unselected package grub-efi-amd64. Preparing to unpack .../4-grub-efi-amd64_2.02-2ubuntu7_amd64.deb ... Unpacking grub-efi-amd64 (2.02-2ubuntu7) ... Selecting previously unselected package grub-efi-amd64-signed. Preparing to unpack .../5-grub-efi-amd64-signed_1.92+2.02-2ubuntu7_amd64.deb ... Unpacking grub-efi-amd64-signed (1.92+2.02-2ubuntu7) ... Selecting previously unselected package mokutil. Preparing to unpack .../6-mokutil_0.3.0-0ubuntu5_amd64.deb ... Unpacking mokutil (0.3.0-0ubuntu5) ... Selecting previously unselected package secureboot-db. Preparing to unpack .../7-secureboot-db_1.1_amd64.deb ... Unpacking secureboot-db (1.1) ... Selecting previously unselected package shim. Preparing to unpack .../8-shim_13-0ubuntu2_amd64.deb ... Unpacking shim (13-0ubuntu2) ... Selecting previously unselected package shim-signed. Preparing to unpack .../9-shim-signed_1.33.1+13-0ubuntu2_amd64.deb ... Unpacking shim-signed (1.33.1+13-0ubuntu2) ... Setting up secureboot-db (1.1) ... Can't access efivars filesystem at /sys/firmware/efi/efivars, aborting Setting up shim (13-0ubuntu2) ... Setting up libefivar1:amd64 (34-1) ... Processing triggers for libc-bin (2.26-0ubuntu2) ... Setting up libefiboot1:amd64 (34-1) ... Processing triggers for man-db (2.8.1-1) ... Setting up mokutil (0.3.0-0ubuntu5) ... Setting up efibootmgr (15-1) ... Setting up grub-efi-amd64-bin (2.02-2ubuntu7) ... Setting up grub-efi-amd64 (2.02-2ubuntu7) ... Replacing config file /etc/default/grub with new version Setting up shim-signed (1.33.1+13-0ubuntu2) ... No DKMS packages installed: not changing Secure Boot validation state. Setting up grub-efi-amd64-signed (1.92+2.02-2ubuntu7) ... Processing triggers for libc-bin (2.26-0ubuntu2) ... Unexpected error while running command. Command: ['sh', '-c', 'exec "$0" "$@" 2>&1', 'install-grub', '--uefi', '--update-nvram', '/tmp/tmppc64qhx1/target', '/dev/sda'] Exit code: 1 Reason: - Stdout: + echo before grub-install efiboot settings before grub-install efiboot settings + efibootmgr BootCurrent: 0008 Timeout: 1 seconds BootOrder: 0008,0009,000A,000B,000C,000D,0007,0006 Boot0006* Generic Usb Device Boot0007* CD/DVD Device Boot0008* UEFI: IP4 Intel(R) I210 Gigabit Network Connection Boot0009* UEFI: IP6 Intel(R) I210 Gigabit Network Connection Boot000A* UEFI: IP4 Intel(R) I210 Gigabit Network Connection Boot000B* UEFI: IP6 Intel(R) I210 Gigabit Network Connection Boot000C UEFI: IP4 Intel(R) Ethernet Connection I217-LM Boot000D UEFI: IP6 Intel(R) Ethernet Connection I217-LM + dpkg-reconfigure grub-efi-amd64 Replacing config file /etc/default/grub with new version Processing triggers for shim-signed (1.33.1+13-0ubuntu2) ... No DKMS packages installed: not changing Secure Boot validation state. + update-grub Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-4.13.0-32-generic Found initrd image: /boot/initrd.img-4.13.0-32-generic Adding boot menu entry for EFI firmware configuration done + target=--target=x86_64-efi + no_nvram= + efi_dir=--efi-directory=/boot/efi + grub-install --help + gi_out=Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + + echogrep -q -- Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + grep -q -- --target + echo Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + grep -q -- --efi-directory + echo Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck Installing for x86_64-efi platform. grub-install: error: failed to get canonical path of `/boot/efi'. failed to install grub! Stderr: '' curtin: Installation failed with exception: Unexpected error while running command. Command: ['curtin', 'curthooks'] Exit code: 3 Reason: - Stdout: Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [235 kB] Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Get:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [65.5 kB] Hit:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease Get:5 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8386 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1009 kB] Fetched 9846 kB in 3s (3676 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: crda grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libdbus-glib-1-2 libnl-3-200 libnl-genl-3-200 linux-firmware linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic linux-signed-image-4.13.0-32-generic linux-signed-image-generic os-prober sbsigntool thermald wireless-regdb Suggested packages: multiboot-doc grub-emu xorriso desktop-base fdutils linux-doc-4.13.0 | linux-source-4.13.0 linux-tools The following NEW packages will be installed: crda grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libdbus-glib-1-2 libnl-3-200 libnl-genl-3-200 linux-firmware linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic linux-signed-generic linux-signed-image-4.13.0-32-generic linux-signed-image-generic os-prober sbsigntool thermald wireless-regdb 0 upgraded, 23 newly installed, 0 to remove and 16 not upgraded. Need to get 109 MB of archives. After this operation, 545 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdbus-glib-1-2 amd64 0.110-2 [58.3 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnl-3-200 amd64 3.2.29-0ubuntu3 [52.8 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnl-genl-3-200 amd64 3.2.29-0ubuntu3 [11.2 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 wireless-regdb all 2016.06.10-0ubuntu1 [8824 B] Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 iw amd64 4.14-0.1 [75.4 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 crda amd64 3.18-1build1 [63.5 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-common amd64 2.02-2ubuntu7 [1773 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub2-common amd64 2.02-2ubuntu7 [531 kB] Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-pc-bin amd64 2.02-2ubuntu7 [900 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-pc amd64 2.02-2ubuntu7 [137 kB] Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-gfxpayload-lists amd64 0.7 [3658 B] Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-firmware all 1.170 [41.2 MB] Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-headers-4.13.0-32 all 4.13.0-32.35 [10.9 MB] Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-headers-4.13.0-32-generic amd64 4.13.0-32.35 [691 kB] Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-headers-generic amd64 4.13.0.32.34 [2420 B] Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-image-4.13.0-32-generic amd64 4.13.0-32.35 [20.8 MB] Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-image-extra-4.13.0-32-generic amd64 4.13.0-32.35 [31.5 MB] Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 sbsigntool amd64 0.6-3.2ubuntu2 [59.4 kB] Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-signed-image-4.13.0-32-generic amd64 4.13.0-32.35 [4004 B] Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-signed-image-generic amd64 4.13.0.32.34 [2484 B] Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 linux-signed-generic amd64 4.13.0.32.34 [1816 B] Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 os-prober amd64 1.74ubuntu1 [19.8 kB] Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 thermald amd64 1.7.0-3 [185 kB] Preconfiguring packages ... Fetched 109 MB in 5s (23.5 MB/s) E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device) Selecting previously unselected package libdbus-glib-1-2:amd64. (Reading database ... 27025 files and directories currently installed.) Preparing to unpack .../00-libdbus-glib-1-2_0.110-2_amd64.deb ... Unpacking libdbus-glib-1-2:amd64 (0.110-2) ... Selecting previously unselected package libnl-3-200:amd64. Preparing to unpack .../01-libnl-3-200_3.2.29-0ubuntu3_amd64.deb ... Unpacking libnl-3-200:amd64 (3.2.29-0ubuntu3) ... Selecting previously unselected package libnl-genl-3-200:amd64. Preparing to unpack .../02-libnl-genl-3-200_3.2.29-0ubuntu3_amd64.deb ... Unpacking libnl-genl-3-200:amd64 (3.2.29-0ubuntu3) ... Selecting previously unselected package wireless-regdb. Preparing to unpack .../03-wireless-regdb_2016.06.10-0ubuntu1_all.deb ... Unpacking wireless-regdb (2016.06.10-0ubuntu1) ... Selecting previously unselected package iw. Preparing to unpack .../04-iw_4.14-0.1_amd64.deb ... Unpacking iw (4.14-0.1) ... Selecting previously unselected package crda. Preparing to unpack .../05-crda_3.18-1build1_amd64.deb ... Unpacking crda (3.18-1build1) ... Selecting previously unselected package grub-common. Preparing to unpack .../06-grub-common_2.02-2ubuntu7_amd64.deb ... Unpacking grub-common (2.02-2ubuntu7) ... Selecting previously unselected package grub2-common. Preparing to unpack .../07-grub2-common_2.02-2ubuntu7_amd64.deb ... Unpacking grub2-common (2.02-2ubuntu7) ... Selecting previously unselected package grub-pc-bin. Preparing to unpack .../08-grub-pc-bin_2.02-2ubuntu7_amd64.deb ... Unpacking grub-pc-bin (2.02-2ubuntu7) ... Selecting previously unselected package grub-pc. Preparing to unpack .../09-grub-pc_2.02-2ubuntu7_amd64.deb ... Unpacking grub-pc (2.02-2ubuntu7) ... Selecting previously unselected package grub-gfxpayload-lists. Preparing to unpack .../10-grub-gfxpayload-lists_0.7_amd64.deb ... Unpacking grub-gfxpayload-lists (0.7) ... Selecting previously unselected package linux-firmware. Preparing to unpack .../11-linux-firmware_1.170_all.deb ... Unpacking linux-firmware (1.170) ... Selecting previously unselected package linux-headers-4.13.0-32. Preparing to unpack .../12-linux-headers-4.13.0-32_4.13.0-32.35_all.deb ... Unpacking linux-headers-4.13.0-32 (4.13.0-32.35) ... Selecting previously unselected package linux-headers-4.13.0-32-generic. Preparing to unpack .../13-linux-headers-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Unpacking linux-headers-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package linux-headers-generic. Preparing to unpack .../14-linux-headers-generic_4.13.0.32.34_amd64.deb ... Unpacking linux-headers-generic (4.13.0.32.34) ... Selecting previously unselected package linux-image-4.13.0-32-generic. Preparing to unpack .../15-linux-image-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Done. Unpacking linux-image-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package linux-image-extra-4.13.0-32-generic. Preparing to unpack .../16-linux-image-extra-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Unpacking linux-image-extra-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package sbsigntool. Preparing to unpack .../17-sbsigntool_0.6-3.2ubuntu2_amd64.deb ... Unpacking sbsigntool (0.6-3.2ubuntu2) ... Selecting previously unselected package linux-signed-image-4.13.0-32-generic. Preparing to unpack .../18-linux-signed-image-4.13.0-32-generic_4.13.0-32.35_amd64.deb ... Unpacking linux-signed-image-4.13.0-32-generic (4.13.0-32.35) ... Selecting previously unselected package linux-signed-image-generic. Preparing to unpack .../19-linux-signed-image-generic_4.13.0.32.34_amd64.deb ... Unpacking linux-signed-image-generic (4.13.0.32.34) ... Selecting previously unselected package linux-signed-generic. Preparing to unpack .../20-linux-signed-generic_4.13.0.32.34_amd64.deb ... Unpacking linux-signed-generic (4.13.0.32.34) ... Selecting previously unselected package os-prober. Preparing to unpack .../21-os-prober_1.74ubuntu1_amd64.deb ... Unpacking os-prober (1.74ubuntu1) ... Selecting previously unselected package thermald. Preparing to unpack .../22-thermald_1.7.0-3_amd64.deb ... Unpacking thermald (1.7.0-3) ... Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for install-info (6.5.0.dfsg.1-2) ... Setting up libdbus-glib-1-2:amd64 (0.110-2) ... Setting up wireless-regdb (2016.06.10-0ubuntu1) ... Setting up linux-image-4.13.0-32-generic (4.13.0-32.35) ... Running depmod. update-initramfs: deferring update (hook will be called later) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic Processing triggers for libc-bin (2.26-0ubuntu2) ... Setting up grub-common (2.02-2ubuntu7) ... update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Running in chroot, ignoring request. invoke-rc.d: policy-rc.d denied execution of start. Processing triggers for systemd (235-3ubuntu3) ... Setting up sbsigntool (0.6-3.2ubuntu2) ... Processing triggers for man-db (2.8.1-1) ... Processing triggers for dbus (1.12.2-1ubuntu1) ... Setting up libnl-3-200:amd64 (3.2.29-0ubuntu3) ... Setting up linux-firmware (1.170) ... update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. Setting up linux-headers-4.13.0-32 (4.13.0-32.35) ... Setting up linux-signed-image-4.13.0-32-generic (4.13.0-32.35) ... warning: file-aligned section .text extends beyond end of file warning: checksum areas are greater than image size. Invalid section table? /usr/sbin/grub-mkconfig: 255: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent Setting up grub-pc-bin (2.02-2ubuntu7) ... Setting up thermald (1.7.0-3) ... Created symlink /etc/systemd/system/dbus-org.freedesktop.thermald.service → /lib/systemd/system/thermald.service. Created symlink /etc/systemd/system/multi-user.target.wants/thermald.service → /lib/systemd/system/thermald.service. Setting up grub2-common (2.02-2ubuntu7) ... Setting up libnl-genl-3-200:amd64 (3.2.29-0ubuntu3) ... Setting up os-prober (1.74ubuntu1) ... Setting up linux-headers-4.13.0-32-generic (4.13.0-32.35) ... Setting up iw (4.14-0.1) ... Setting up linux-headers-generic (4.13.0.32.34) ... Setting up crda (3.18-1build1) ... Setting up linux-image-extra-4.13.0-32-generic (4.13.0-32.35) ... run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic Setting up linux-signed-image-generic (4.13.0.32.34) ... Setting up linux-signed-generic (4.13.0.32.34) ... Setting up grub-gfxpayload-lists (0.7) ... Setting up grub-pc (2.02-2ubuntu7) ... Creating config file /etc/default/grub with new version Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for libc-bin (2.26-0ubuntu2) ... Processing triggers for dbus (1.12.2-1ubuntu1) ... Setting up swapspace version 1, size = 3.8 GiB (4019187712 bytes) no label, UUID=522e5854-088b-4e2c-ae0b-858179ce8662 Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: grub-pc-bin Use 'apt autoremove' to remove it. The following additional packages will be installed: efibootmgr grub-efi-amd64-bin libefiboot1 libefivar1 mokutil secureboot-db shim The following packages will be REMOVED: grub-gfxpayload-lists grub-pc The following NEW packages will be installed: efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed libefiboot1 libefivar1 mokutil secureboot-db shim shim-signed 0 upgraded, 10 newly installed, 2 to remove and 16 not upgraded. Need to get 1877 kB of archives. After this operation, 9884 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libefivar1 amd64 34-1 [46.2 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libefiboot1 amd64 34-1 [23.5 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 efibootmgr amd64 15-1 [28.2 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-efi-amd64-bin amd64 2.02-2ubuntu7 [655 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu7 [46.8 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 grub-efi-amd64-signed amd64 1.92+2.02-2ubuntu7 [297 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 mokutil amd64 0.3.0-0ubuntu5 [20.9 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 secureboot-db amd64 1.1 [2740 B] Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 shim amd64 13-0ubuntu2 [440 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 shim-signed amd64 1.33.1+13-0ubuntu2 [316 kB] Preconfiguring packages ... Fetched 1877 kB in 0s (46.4 MB/s) E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device) (Reading database ... 64191 files and directories currently installed.) Removing grub-gfxpayload-lists (0.7) ... Removing grub-pc (2.02-2ubuntu7) ... Selecting previously unselected package libefivar1:amd64. (Reading database ... 64170 files and directories currently installed.) Preparing to unpack .../0-libefivar1_34-1_amd64.deb ... Unpacking libefivar1:amd64 (34-1) ... Selecting previously unselected package libefiboot1:amd64. Preparing to unpack .../1-libefiboot1_34-1_amd64.deb ... Unpacking libefiboot1:amd64 (34-1) ... Selecting previously unselected package efibootmgr. Preparing to unpack .../2-efibootmgr_15-1_amd64.deb ... Unpacking efibootmgr (15-1) ... Selecting previously unselected package grub-efi-amd64-bin. Preparing to unpack .../3-grub-efi-amd64-bin_2.02-2ubuntu7_amd64.deb ... Unpacking grub-efi-amd64-bin (2.02-2ubuntu7) ... Selecting previously unselected package grub-efi-amd64. Preparing to unpack .../4-grub-efi-amd64_2.02-2ubuntu7_amd64.deb ... Unpacking grub-efi-amd64 (2.02-2ubuntu7) ... Selecting previously unselected package grub-efi-amd64-signed. Preparing to unpack .../5-grub-efi-amd64-signed_1.92+2.02-2ubuntu7_amd64.deb ... Unpacking grub-efi-amd64-signed (1.92+2.02-2ubuntu7) ... Selecting previously unselected package mokutil. Preparing to unpack .../6-mokutil_0.3.0-0ubuntu5_amd64.deb ... Unpacking mokutil (0.3.0-0ubuntu5) ... Selecting previously unselected package secureboot-db. Preparing to unpack .../7-secureboot-db_1.1_amd64.deb ... Unpacking secureboot-db (1.1) ... Selecting previously unselected package shim. Preparing to unpack .../8-shim_13-0ubuntu2_amd64.deb ... Unpacking shim (13-0ubuntu2) ... Selecting previously unselected package shim-signed. Preparing to unpack .../9-shim-signed_1.33.1+13-0ubuntu2_amd64.deb ... Unpacking shim-signed (1.33.1+13-0ubuntu2) ... Setting up secureboot-db (1.1) ... Can't access efivars filesystem at /sys/firmware/efi/efivars, aborting Setting up shim (13-0ubuntu2) ... Setting up libefivar1:amd64 (34-1) ... Processing triggers for libc-bin (2.26-0ubuntu2) ... Setting up libefiboot1:amd64 (34-1) ... Processing triggers for man-db (2.8.1-1) ... Setting up mokutil (0.3.0-0ubuntu5) ... Setting up efibootmgr (15-1) ... Setting up grub-efi-amd64-bin (2.02-2ubuntu7) ... Setting up grub-efi-amd64 (2.02-2ubuntu7) ... Replacing config file /etc/default/grub with new version Setting up shim-signed (1.33.1+13-0ubuntu2) ... No DKMS packages installed: not changing Secure Boot validation state. Setting up grub-efi-amd64-signed (1.92+2.02-2ubuntu7) ... Processing triggers for libc-bin (2.26-0ubuntu2) ... Unexpected error while running command. Command: ['sh', '-c', 'exec "$0" "$@" 2>&1', 'install-grub', '--uefi', '--update-nvram', '/tmp/tmppc64qhx1/target', '/dev/sda'] Exit code: 1 Reason: - Stdout: + echo before grub-install efiboot settings before grub-install efiboot settings + efibootmgr BootCurrent: 0008 Timeout: 1 seconds BootOrder: 0008,0009,000A,000B,000C,000D,0007,0006 Boot0006* Generic Usb Device Boot0007* CD/DVD Device Boot0008* UEFI: IP4 Intel(R) I210 Gigabit Network Connection Boot0009* UEFI: IP6 Intel(R) I210 Gigabit Network Connection Boot000A* UEFI: IP4 Intel(R) I210 Gigabit Network Connection Boot000B* UEFI: IP6 Intel(R) I210 Gigabit Network Connection Boot000C UEFI: IP4 Intel(R) Ethernet Connection I217-LM Boot000D UEFI: IP6 Intel(R) Ethernet Connection I217-LM + dpkg-reconfigure grub-efi-amd64 Replacing config file /etc/default/grub with new version Processing triggers for shim-signed (1.33.1+13-0ubuntu2) ... No DKMS packages installed: not changing Secure Boot validation state. + update-grub Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-4.13.0-32-generic Found initrd image: /boot/initrd.img-4.13.0-32-generic Adding boot menu entry for EFI firmware configuration done + target=--target=x86_64-efi + no_nvram= + efi_dir=--efi-directory=/boot/efi + grub-install --help + gi_out=Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + + echogrep -q -- Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + grep -q -- --target + echo Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + grep -q -- --efi-directory + echo Usage: grub-install [OPTION...] [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. --compress=no|xz|gz|lzo compress GRUB files [optional] -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/] --fonts=FONTS install FONTS [default=unicode] --install-modules=MODULES install only MODULES and their dependencies [default=all] -k, --pubkey=FILE embed FILE as public key for signature checking --locale-directory=DIR use translations under DIR [default=/usr/share/locale] --locales=LOCALES install only LOCALES [default=all] --modules=MODULES pre-load specified modules MODULES --themes=THEMES install THEMES [default=starfield] -v, --verbose print verbose messages. --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the boot/grub directory --bootloader-id=ID the ID of bootloader. This option is only available on EFI and Macs. --core-compress=xz|none|auto choose the compression to use for core image --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --efi-directory=DIR use DIR as the EFI System Partition root. --force install even if problems are detected --force-file-id use identifier file even if UUID is available --label-bgcolor=COLOR use COLOR for label background --label-color=COLOR use COLOR for label --label-font=FILE use FILE as font for label --macppc-directory=DIR use DIR for PPC MAC install. --no-bootsector do not install bootsector --no-extra-removable Do not install bootloader code to the removable media path. This option is only available on EFI. --no-nvram don't update the `boot-device'/`Boot*' NVRAM variables. This option is only available on EFI and IEEE1275 targets. --no-rs-codes Do not apply any reed-solomon codes when embedding core.img. This option is only available on x86 BIOS targets. --no-uefi-secure-boot do not install an image usable with UEFI Secure Boot, even if the system was currently started using it. This option is only available on EFI. --product-version=STRING use STRING as product version --recheck delete device map if it already exists --removable the installation device is removable. This option is only available on EFI. -s, --skip-fs-probe do not probe for filesystems in DEVICE --target=TARGET install GRUB for TARGET platform [default=x86_64-efi]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen --uefi-secure-boot install an image usable with UEFI Secure Boot. This option is only available on EFI and if the grub-efi-amd64-signed package is installed. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. INSTALL_DEVICE must be system device filename. grub-install copies GRUB images into boot/grub. On some platforms, it may also install GRUB into the boot sector. Report bugs to . + grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck Installing for x86_64-efi platform. grub-install: error: failed to get canonical path of `/boot/efi'. failed to install grub! Stderr: '' Stderr: ''