Hyprland installer fails - "bad main script file"

I’m trying to install garuda-hyprland on my laptop, and every time i run the installer, it fails with an error.
the installer window’s output is:

Installation Failed
Garuda Linux Soaring has not been installed on your computer. 
the error message was: Bad main script file

a pop-up window shows:

Installation failed
Bad main script file
details:
Main script file /usr/lib/calamares/modules/mount/main.py for python job mount raised an exception

i am using garuda-hyprland-linux-zen-250308.iso, which was downloaded from Garuda Linux and i ran the checksum to ensure it was valid. i got this from the frontpage, so i assume its the latest release.

i have attempted various settings, and found that it throws the same error whether i’m doing encrypted or not, or whether i’m making a new partition table vs using one previously set up.

this laptop has previously had other versions of garuda installed on it just fine

i’m using a ventoy usb for the install, i reinstalled ventoy during my troubleshooting, so its on the latest version. when mounting the image, i used the grub2 mode

here is the output of garuda-inxi

System:
  Kernel: 6.13.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1 clocksource: tsc
    avail: acpi_pm parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC
    misobasedir=garuda root=miso:LABEL=GARUDA_HYPRLAND_BROADWING quiet systemd.show_status=1
    checksum=y driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 rdinit=/vtoy/vtoy
  Console: pty pts/1 DM: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20U1002AUS v: ThinkPad L14 Gen 1
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20U1002AUS v: SDK0K17763 WIN serial: <superuser required>
    part-nu: LENOVO_MT_20U1_BU_Think_FM_ThinkPad L14 Gen 1 uuid: <superuser required> UEFI: LENOVO
    v: R17ET37W (1.20 ) date: 02/25/2023
Battery:
  ID-1: BAT0 charge: 34.1 Wh (86.5%) condition: 39.4/45.0 Wh (87.5%) power: 6.0 W volts: 11.8
    min: 11.1 model: LGC 5B10W13894 type: Li-poly serial: <filter> status: discharging cycles: 241
CPU:
  Info: model: Intel Core i5-10210U bits: 64 type: MT MCP arch: Comet/Whiskey Lake note: check
    gen: core 10 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x8E (142) stepping: 0xC (12) microcode: 0xFC
  Topology: cpus: 1x dies: 1 clusters: 4 cores: 4 threads: 8 tpc: 2 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 400 min/max: 400/4200 scaling: driver: intel_pstate governor: powersave
    cores: 1: 400 2: 400 3: 400 4: 400 5: 400 6: 400 7: 400 8: 400 bogomips: 33599
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1 empty: DP-1, DP-2,
    HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:9b41 class-ID: 0300
  Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 1-7:2 chip-ID: 04f2:b6c2 class-ID: 0e02 serial: <filter>
  Display: unspecified server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6 compositor: Hyprland
    driver: X: loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915 tty: 148x67
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x14f5 built: 2018 res: 1920x1080 dpi: 158 gamma: 1.2
    size: 309x173mm (12.17x6.81") diag: 354mm (13.9") ratio: 16:9 modes: 1920x1080
  API: Vulkan v: 1.4.304 layers: 4 device: 0 type: integrated-gpu name: Intel UHD Graphics (CML
    GT2) driver: N/A device-ID: 8086:9b41 surfaces: N/A device: 1 type: cpu name: llvmpipe (LLVM
    19.1.7 256 bits) driver: N/A device-ID: 10005:0000 surfaces: N/A
  API: OpenGL Message: GL data unavailable in console, glxinfo missing.
  Info: Tools: api: vulkaninfo wl: kanshi, wdisplays, wlr-randr x11: xprop
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Lenovo driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:02c8 class-ID: 0403
  API: ALSA v: k6.13.5-zen1-1-zen status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.7 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: Intel Ethernet I219-V vendor: Lenovo driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:0d4f class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
    bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  Info: services: NetworkManager, sshd, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    mode: 1.1 bus-ID: 1-10:3 chip-ID: 8087:0029 class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.2 lmp-v: 11 status:
    discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 477.49 GiB used: 5.8 MiB (0.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: N/A size: 238.47 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 5107AGLA temp: 28.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: Flash Drive size: 239.02 GiB block-size:
    physical: 512 B logical: 512 B type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1
    tech: SSD serial: <filter> fw-rev: 1100 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) zswap: no
  ID-1: swap-1 type: zram size: 7.54 GiB used: 0 KiB (0.0%) priority: 100 comp: zstd
    avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 max-streams: 8 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 8 GiB available: 7.54 GiB used: 1.74 GiB (23.1%)
  Processes: 277 Power: uptime: 23m states: freeze,mem,disk suspend: deep avail: s2idle
    wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 2.98 GiB
    services: upowerd Init: systemd v: 257 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1259 libs: 363 tools: pacseek,paru Compilers: gcc: 14.2.1
    Shell: garuda-inxi default: Bash v: 5.2.37 running-in: pty pts/1 (SSH) inxi: 3.3.37
Garuda (2.7.2-1):
  System install date:     2025-04-09
  Last full system update: 2025-04-09 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       <superuser required>
  Failed units:            snapper-cleanup.service

Yes this issue i have too , because it dont like to install beside an existing OS. If i installed Hyprland on my SSD and delete the partitions and let create Calamares itself it worked. After the install i resized the SSD and installed KDE beside :wink:

Im not doing a dual boot here, im trying to install it as the only OS on the system

hi,

i am on a desktop pc and not a laptop with hyprland.

i got these error too like you described but i dont know why. Manually partitioning didnt work. install beside other DE`s didnt work. It worked only if i selected the Erase Disk function/ Option.

Did you try an other USB Drive? or other usb port? I never used a big flash drive if you try to install from it so i can not say about the behaviors off it.

Seems it is a calamares problem or something else. Did/can you try Xfce as test?
Did you use the correct drive?

would be good to know which Versions.

i tested XFCE, Mokka, KDE, KDE Dr460nized and Gnome they didnt have an issue like this Hyprland Calamares on my Pc or Laptop or installed on friends laptops aswell :wink:

That can’t actually be.
sha256sum tested on the stick?
Garuda uses the same calamaresversion on all DE’s.

3 Likes

I know thats a bit wired.

I also had a other issue but it was with an Acer Desktop Pc from a friend. I was able to boot the usb stick on it but after the displaying the Live Enviroment no Keyboard or Mouse was working anymore. Tested with my Ventoy Drive and created drive with KDE Iso Image Writer. On the Iso Image writer version those Acer Pc showed the boot image but the keyboard didnt respond well if i go up or down for choose boot with open driver it goes all way up and peeeped 4 or 5 times until it stopped and same if i want go down again really funny. Yes they was sha256 tested and looked fine :wink:

Did you boot the USB drive in UEFI mode (BIOS boot menu)?

Does the installation work if you don’t do anything manually but select the “Erase Disk” option in calamares?

If the error occurs again, then open ~/.cache/calamares/session.log in the live environment, copy the complete content to Garuda PrivateBin and share the generated link here.

2 Likes

Start calamares from terminal

sudo -E calamares -D8
2 Likes

ok, got a handful of things to try from y’all. i’ll update as i go along.

firstly i just downloaded a fresh iso and got it checked while on the ventoy drive

just to be sure, after i did the checksum, i tried running it again, this time selecting “normal mode” instead of “grub2 mode” from ventoy when i launched the virtual environment

i checked my bios, i couldnt find a way to specify a particular drive to boot in uefi mode. what i did find was an option to have it try uefi first, which was already on. i guess thats the closest i can get.

installing the Xfce iso worked normally

@nepti

i will check that too. i download it beside again because deleted it from ventoy because i did create a own flash drive with iso imagewriter it dosnt use the iso as a file like ventoy.

i will see when the error comes up again to get the log.

i ran it from the command line, and it seems to have failed the first time?
it only gave me the option of manually partitioning the drives, and i attempted to just have it use the previous partitions. i might have done that wrong though.

the second time i ran it, it did show me the option of deleting the drive and using the suggested partitioning, and when i ran it, it was successful that time!

heres the log file after the successful install.

I should think that is any issue with Ventoy!!!

So i did try to install Hypr beside an existing Kde Version and it gave me the same Error again. After the option Erase the Disk and go forward it worked again like i said before. Here the Log output.

Then i used my created other Usb Drive with Iso Imagewriter (Kde) and there was no issues at all i can install beside other DE`s .

Wired at all =) So far my Experiences with Ventoy on my System :wink:
(didnt have to log from the installed one because should be solved now if i see right )

I had the same problem, only on the Hyprland version (dr460nized and Mokka installed fine). Dual boot with Windows 11. Booting from Medicat which uses Ventoy as well as a standard Ventoy install. I had verified the sha256sum and redownloaded just in case. I had randomly had success after a few different troubleshooting steps resulted in it working temporarily and could replicate this success (albeit unreliably) by repeating those steps. Anyway launching calamares manually worked like a charm for me as well.

1 Like

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