Lubuntu installation failed at installing bootloader

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>

Please start the installation media, open a terminal and post the output of:

sudo apt update && sudo apt install efibootmgr
sudo parted --list
sudo efibootmgr -v
1 Like
lubuntu@lubuntu:~$ sudo parted --list
Model: ATA WDC WD7500BPVT-2 (scsi)
Disk /dev/sda: 750GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      2097kB  317MB  315MB  fat32              boot, esp
 2      317MB   750GB  750GB  ext4


Model: Multiple Card Reader (scsi)
Disk /dev/sdb: 8003MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  8003MB  8002MB  primary  fat32        boot, lba


Model: Unknown (unknown)
Disk /dev/zram1: 926MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system     Flags
 1      0.00B  926MB  926MB  linux-swap(v1)


Model: Unknown (unknown)
Disk /dev/zram0: 926MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system     Flags
 1      0.00B  926MB  926MB  linux-swap(v1)


lubuntu@lubuntu:~$ sudo efibootmgr -v
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0002,0004,0005,0008,0003,0007,0006
Boot0000  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001  Boot Menu     FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002* USB FDD:      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0003* ATA HDD0: WDC WD7500BPVT-24HXZT1                      PciRoot(0x0)/Pci(0x11,0x0)/Ata(0,0,0)..bYVD.A...O.*..
Boot0004* USB HDD: Multiple Card  Reader        PciRoot(0x0)/Pci(0x13,0x2)/USB(0,0)3.!..3.G..A.....
Boot0005* USB CD:       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0006* PCI LAN: Realtek PXE B02 D00  BBS(Network,Realtek PXE B02 D00,0x0)..................@.......@...@.............................................A.....................
Boot0007* Windows Boot Manager  HD(2,GPT,a13d9715-ea0a-46ba-b94d-651fc05a5895,0x109000,0x31800)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0008* ubuntu        HD(1,GPT,5d558b8b-bf2c-b243-8d32-a1debf88582a,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)

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.

1 Like

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.