I am new to Linux distros and have been attempting to install lubuntu 20.10 on my laptop with a usb. I tried both erasing the disc and manually partitioning the disc(efi fat32 partition and ext4 partition). In both methods, I get this error in installation:
Boost.Python error in job "bootloader".
Command 'grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --force' returned non-zero exit status 1.
Installing for x86_64-efi platform. grub-install: warning: Cannot set EFI variable Boot0008. grub-install: warning: efivarfs_set_variable: writing to fd 8 failed: Invalid argument. grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: Invalid argument. grub-install: error: failed to register the EFI boot entry: Invalid argument.
Traceback:
File "/usr/lib/x86_64-linux-gnu/calamares/modules/bootloader/main.py", line 486, in run
prepare_bootloader(fw_type)
File "/usr/lib/x86_64-linux-gnu/calamares/modules/bootloader/main.py", line 458, in prepare_bootloader
install_grub(efi_directory, fw_type)
File "/usr/lib/x86_64-linux-gnu/calamares/modules/bootloader/main.py", line 320, in install_grub
check_target_env_call([libcalamares.job.configuration["grubInstall"],
File "<string>", line 8, in <module>
I see a boot entry for Windows, but I don’t see, where it could be installed? Did you modify the output of parted --list or is it only an old entry?
We can try to manually install the bootloader. Start again the installation medium, open a terminal and execute line by line:
sudo -s
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
for i in dev dev/pts proc sys sys/firmware; do mount --bind /$i /mnt/$i; done
chroot /mnt
update-grub
grub-install
exit
exit
Please post the complete input and output, so that we can help in case of errors.
To clarify, when you say start installation medium, do you mean to actually begin installation of lubuntu or rather just open the medium that installs it?
Just use your USB or DVD or whatever to boot to the live system. Don’t start the installation. We’re just using it here to gain access to the system, mount the drive, and update the bootloader on that drive.