You are not logged in.

#1 2023-08-11 11:41:59

Registered: 2021-01-25
Posts: 75

[SOLVED] archinstall crashes when selecting "Drives"

Dear all smile

When I select "Drives" in archinstall it crashes with the below error.

I have an nvme SSD.

Does anyone know how to work around this?

Sandra smile

Traceback (most recent call last):

Traceback (most recent call last):
  File "/usr/bin/archinstall", line 8, in <module>
  File "/usr/lib/python3.11/site-packages/archinstall/", line 312, in run_as_a_module
  File "/usr/lib/python3.11/site-packages/archinstall/lib/", line 195, in execute
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/archinstall/examples/", line 291, in <module>
  File "/usr/lib/python3.11/site-packages/archinstall/examples/", line 103, in ask_user_questions
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/", line 340, in run
    if not self._process_selection(value):
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/", line 357, in _process_selection
    return self.exec_option(config_name, selector)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/", line 377, in exec_option
    result = selector.func(presel_val)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/", line 79, in <lambda>
    lambda preset: self._select_harddrives(preset),
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/", line 355, in _select_harddrives
    harddrives = select_harddrives(old_harddrives)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/user_interaction/", line 52, in select_harddrives
    hard_drives = all_blockdevices(partitions=False).values()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/", line 294, in all_blockdevices
    instances[path] = BlockDevice(path, path_info)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/", line 53, in __init__
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/", line 131, in _load_partitions
    self._partitions[part_id] = Partition(root + part_id, block_device=self, part_id=part_id)
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/", line 102, in __init__
    self._partition_info = self._fetch_information()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/", line 220, in _fetch_information
    sfdisk_info = self._call_sfdisk()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/", line 207, in _call_sfdisk
    sfdisk_info = json.loads(output)
  File "/usr/lib/python3.11/json/", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.11/json/", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.11/json/", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Last edited by LittleSandra (2023-08-15 12:18:24)


#2 2023-08-11 11:44:48

Forum Moderator
Registered: 2012-01-15
Posts: 4,636

Re: [SOLVED] archinstall crashes when selecting "Drives"

Moving to Guided Installer forum.

How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.


#3 2023-08-11 18:35:34

From: Hannover
Registered: 2016-05-06
Posts: 1,906

Re: [SOLVED] archinstall crashes when selecting "Drives"

What does

$ sfdisk --json /path/to/your/drive

At any rate, you appear to be using archinstall v2.5.6.
Try to update to the latest release.
The codebase regarding disk management seems to have been completely rewritten since that release.

Last edited by schard (2023-08-11 18:37:28)


#4 2023-08-11 19:41:49

Registered: 2021-01-25
Posts: 75

Re: [SOLVED] archinstall crashes when selecting "Drives"

I can post the output on Monday. I left the computer at work smile

Yes, it is 2.5.6. I recall when I did

pacman -Syy

archinstall 2.5.6-1 was on the list.

As for using the latest archinstall. Do you mean I should just

pacman -S archinstall

or take a specific feature branch as described here … -iso-image ?


#5 2023-08-12 11:21:31

From: Hannover
Registered: 2016-05-06
Posts: 1,906

Re: [SOLVED] archinstall crashes when selecting "Drives"

Since partial upgrades are not supported, I'd recommend just downloading an up-to-date ISO that should™ ship the lastest version of archinstall.
If you're not relying on the accessibility features that archinstall supposedly provides, I urge you to install Arch Linux using the official installation guide.
You just experienced why I'd recommend that.


#6 2023-08-12 12:14:22

Inspector Parrot
Registered: 2011-11-29
Posts: 29,342

Re: [SOLVED] archinstall crashes when selecting "Drives"

FWIW if accessibility is relevant, the iso provides actual accessibility features described in the installation guide as opposed to the supposed ones of the script installer's promotional material.  So this is in fact one of many reasons to use the official installation guide, and not an exception / counterpoint in favor of the automated script.

Last edited by Trilby (2023-08-12 12:15:46)

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman


Board footer

Powered by FluxBB