Bootloader failed to install

Hey, I got a problem when I’m installing Garuda Xfce, first time trying to install it and i tried multiple fixes, but none helped me. I am in full UEFI in BIOS, also my fast boot is turned off, no secure boot option available.

Here is the error I get:

The bootloader could not be installed. The installation command

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Garuda --force
returned error code 1.

Also sorry for my bad english grammar.

Thanks for help.

Hi there, welcome to the forum.
Please post from your live USB the output of

garuda-inxi

And

lsblk -f
1 Like
garuda-inxi:
System:
  Kernel: 6.1.26-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC
    misobasedir=garuda root=miso:LABEL=GARUDA_XFCE_RAPTOR quiet
    systemd.show_status=1 ibt=off systemd.unified_cgroup_hierarchy=1
    driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 80XR v: Lenovo ideapad 320-15IAP
    serial: <superuser required> Chassis: type: 10 v: Lenovo ideapad 320-15IAP
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    UEFI: LENOVO v: 5RCN36WW date: 08/06/2018
Battery:
  ID-1: BAT0 charge: 15.0 Wh (96.8%) condition: 15.5/30.0 Wh (51.5%)
    volts: 8.1 min: 7.4 model: LGC L16L2PB2 type: Li-poly serial: <filter>
    status: not charging
CPU:
  Info: model: Intel Pentium N4200 bits: 64 type: MCP arch: Goldmont level: v2
    built: 2016 process: Intel 14nm family: 6 model-id: 0x5C (92) stepping: 9
    microcode: 0x48
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
    desc: d-4x24 KiB; i-4x32 KiB L2: 2 MiB desc: 2x1024 KiB
  Speed (MHz): avg: 2128 min/max: 800/2500 scaling: driver: intel_cpufreq
    governor: schedutil cores: 1: 2128 2: 2128 3: 2128 4: 2128 bogomips: 8756
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Apollo Lake [HD Graphics 505] vendor: Lenovo driver: i915
    v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5a84 class-ID: 0300
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
    620/625 Mobile] vendor: Lenovo driver: amdgpu v: kernel arch: GCN-3
    code: Volcanic Islands process: TSMC 28nm built: 2014-19 pcie: gen: 1
    speed: 2.5 GT/s lanes: 4 link-max: gen: 3 speed: 8 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 1002:6900 class-ID: 0380 temp: 43.0 C
  Device-3: IMC Networks EasyCamera type: USB driver: uvcvideo bus-ID: 1-7:3
    chip-ID: 13d3:5a02 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 compositor: xfwm v: 4.18.0 driver: X:
    loaded: amdgpu,modesetting alternate: fbdev,intel,vesa dri: iris,radeonsi
    gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
    s-diag: 414mm (16.31")
  Monitor-1: eDP-1 model: BOE Display 0x0675 built: 2015 res: 1366x768
    hz: 60 dpi: 101 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1366x768
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Audio:
  Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
    vendor: Lenovo driver: snd_hda_intel v: kernel alternate: snd_soc_skl,
    snd_soc_avs, snd_sof_pci_intel_apl bus-ID: 00:0e.0 chip-ID: 8086:5a98
    class-ID: 0403
  API: ALSA v: k6.1.26-1-lts status: kernel-api tools: N/A
  Server-1: PipeWire v: 0.3.70 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Lenovo
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 1000
    bus-ID: 02:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
    chip-ID: 8086:3166 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-8:4 chip-ID: 8087:0a2a class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 2 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 469.38 GiB used: 4.07 GiB (0.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ01ABF050
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 2D scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: A-Data
    model: USB Flash Drive size: 3.62 GiB block-size: physical: 512 B
    logical: 512 B type: SSD serial: <filter> rev: 0.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  Message: No partition data found.
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 3.66 GiB used: 781.2 MiB (20.9%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 56.0 C mobo: N/A gpu: amdgpu temp: 43.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 237 Uptime: 1h 20m wakeups: 56319 Memory: 3.66 GiB
  used: 2.18 GiB (59.6%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1286
  libs: 359 tools: paru Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.26
warning: database file for 'garuda' does not exist (use '-Sy' to download)
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
warning: database file for 'multilib' does not exist (use '-Sy' to download)
warning: database file for 'chaotic-aur' does not exist (use '-Sy' to download)
Garuda (2.6.16-1):
  System install date:     2023-09-24
  Last full system update: 2023-09-24 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       <superuser required>
  Failed units:            snapper-cleanup.service udisks2-zram-setup@zram0.service 
lsblk -f:
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                    0   100% /run/miso/sfs/livefs
loop1
     squash 4.0                                                    0   100% /run/miso/sfs/mhwdfs
loop2
     squash 4.0                                                    0   100% /run/miso/sfs/desktopfs
loop3
     squash 4.0                                                    0   100% /run/miso/sfs/rootfs
sda                                                                         
β”œβ”€sda1
β”‚    vfat   FAT32       C98E-765A                             299.1M     0% /tmp/calamares-root-jhaltd43/boot/efi
└─sda2
     btrfs              84acdbe4-c556-4ac7-842c-fbfde8477bd8  459.9G     1% /tmp/calamares-root-jhaltd43/var/tmp
                                                                            /tmp/calamares-root-jhaltd43/var/log
                                                                            /tmp/calamares-root-jhaltd43/var/cache
                                                                            /tmp/calamares-root-jhaltd43/srv
                                                                            /tmp/calamares-root-jhaltd43/root
                                                                            /tmp/calamares-root-jhaltd43/home
                                                                            /tmp/calama
                                                                            res-root-jh
                                                                            altd43
sdb  iso966 Jolie GARUDA_XFCE_RAPTOR
                        2023-05-01-21-54-11-00                     0   100% /run/miso/bootmnt
β”œβ”€sdb1
β”‚    iso966 Jolie GARUDA_XFCE_RAPTOR
β”‚                       2023-05-01-21-54-11-00                              
└─sdb2
     vfat   FAT12 MISO_EFI
                        3126-4D58                                           
zram0
                                                                            [SWAP]

I don’t see anything strange honestly.
Maybe you could try to reinstall the GRUB from the Garuda boot repair utility in the live ISO.
I usually prefer this manual tutorial to have my hands directly on it.

Another thing you could try with the manual procedure if you get the error is this different grub install command

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Garuda --no-nvram
5 Likes

I will give it a try and will announce you about that. Thanks.

When trying to insert this command:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Garuda --no-nvram

I get this error:

Installing for x86_64-efi platform.
grub-install: error: failed to make directory: '/boot/grub'.

Tried it with sudo and i got this other error:

Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/efi'.

I just tried the other method, I don’t really know if it worked but I will give it a restart and tell you about it.

Indeed it did boot, but it doesn’t work properly.
As normal when I first time boot into i get the Garuda Setup Assistant which leads into terminal for an update which does not work for me. I get this big error about the keyring and pacman thing.

Synchronizing package databases...
 garuda                 95.5 KiB   126 KiB/s 00:01 [----------------------] 100%
 core                  127.4 KiB   113 KiB/s 00:01 [----------------------] 100%
 extra                   8.2 MiB  87.8 KiB/s 01:36 [----------------------] 100%
 community              45.0   B  78.0   B/s 00:01 [----------------------] 100%
 multilib              141.2 KiB   129 KiB/s 00:01 [----------------------] 100%
 chaotic-aur             2.6 MiB  2.58 MiB/s 00:01 [----------------------] 100%
looking for conflicting packages...

Packages (1) garuda-update-4.2.2-1

Total Download Size:   0.01 MiB
Total Installed Size:  0.02 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 garuda-update-4....     9.9 KiB  19.0 KiB/s 00:01 [----------------------] 100%
(1/1) checking keys in keyring                     [----------------------] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (could not find or read file)
Errors occurred, no packages were upgraded.

--> Refreshing mirrorlists using rate-mirrors, please be patient..🍡

:: Synchronizing package databases...
 garuda downloading...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
 chaotic-aur downloading...
looking for conflicting packages...

Packages (1) garuda-update-4.2.2-1

Total Installed Size:  0.02 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (could not find or read file)
Errors occurred, no packages were upgraded.

--> Applying keyring updates before starting full system update..
warning: garuda-hotfixes-1.1.2-1 is up to date -- skipping
resolving dependencies...
looking for conflicting packages...

Packages (2) archlinux-keyring-20230918-1  chaotic-keyring-20230616-1

Total Download Size:   1.17 MiB
Total Installed Size:  1.65 MiB
Net Upgrade Size:      0.01 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20230918-1-any downloading...
 chaotic-keyring-20230616-1-any downloading...
checking keyring...
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
Press enter to exit

I don’t understand a thing as I used Ubuntu for a little time.
Also sorry for giving u headackes trying to help me.

Nevermind I have probably solved the problem with the keyrings, I was atleast able to install Steam, but I still need some programs like Sublime Text 3 and a C++ Compiler as I need that for my pairs in college. Thanks for helping me with solutions, it was a little hard for people like me who doesn’t understand a thing in arch.

1 Like

doesn’t your linux system already have a c++ compiler

g++ -o <FILENAME> <PROGRAMM.cpp>
Example
 ╭─ankur@ankur in ~/Public took 2ms
 ╰─λ nvim p.cpp

 ╭─ankur@ankur in ~/Public took 1s
 ╰─λ bat p.cpp
───────┬──────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: p.cpp
───────┼──────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ #include <iostream>
   2   β”‚ using namespace std;
   3   β”‚ int main () {
   4   β”‚     cout << "Hello World";
   5   β”‚ }
───────┴──────────────────────────────────────────────────────────────────────────────────────

 ╭─ankur@ankur in ~/Public took 15ms
 ╰─λ g++ -o file p.cpp

 ╭─ankur@ankur in ~/Public took 299ms
 ╰─λ ./file
Hello World⏎                                                                                  

 ╭─ankur@ankur in ~/Public took 3ms
 ╰─λ 

Or simply :

g++ <PROGRAMM.cpp>
./a.out

you can follow this guide :
https://www.sublimetext.com/docs/linux_repositories.html

2 Likes

Already got everything i needed, thanks!

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