You are not logged in.

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

LittleSandra
Member
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?

Hugs,
Sandra smile

Traceback (most recent call last):


Traceback (most recent call last):
  File "/usr/bin/archinstall", line 8, in <module>
    sys.exit(run_as_a_module())
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/__init__.py", line 312, in run_as_a_module
    script.execute()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/profiles.py", line 195, in execute
    self.spec.loader.exec_module(sys.modules[self.namespace])
  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/guided.py", line 291, in <module>
    ask_user_questions()
  File "/usr/lib/python3.11/site-packages/archinstall/examples/guided.py", line 103, in ask_user_questions
    global_menu.run()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/abstract_menu.py", line 340, in run
    if not self._process_selection(value):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/abstract_menu.py", line 357, in _process_selection
    return self.exec_option(config_name, selector)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/abstract_menu.py", line 377, in exec_option
    result = selector.func(presel_val)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/global_menu.py", line 79, in <lambda>
    lambda preset: self._select_harddrives(preset),
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/menu/global_menu.py", line 355, in _select_harddrives
    harddrives = select_harddrives(old_harddrives)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/user_interaction/system_conf.py", line 52, in select_harddrives
    hard_drives = all_blockdevices(partitions=False).values()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/helpers.py", line 294, in all_blockdevices
    instances[path] = BlockDevice(path, path_info)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/blockdevice.py", line 53, in __init__
    self._load_partitions()
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/blockdevice.py", 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/partition.py", line 102, in __init__
    self._partition_info = self._fetch_information()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/partition.py", line 220, in _fetch_information
    sfdisk_info = self._call_sfdisk()
                  ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/partition.py", line 207, in _call_sfdisk
    sfdisk_info = json.loads(output)
                  ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", 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)

Offline

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

2ManyDogs
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.

Offline

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

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

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

What does

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

yield?
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)

Offline

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

LittleSandra
Member
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 https://github.com/archlinux/archinstal … -iso-image ?

Offline

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

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

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.

Offline

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

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

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

Offline

Board footer

Powered by FluxBB