archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Archinstall error

Open ran220221 opened this issue 1 year ago • 3 comments

Which ISO version are you using?

2025.9.1

The installation log

[2025-09-18 16:06:58] - INFO - Fetching Arch Linux package database...
[2025-09-18 16:06:59] - INFO - Checking version...
[2025-09-18 16:06:59] - DEBUG - Failed to check for package upgrades: archinstall
[2025-09-18 16:06:59] - DEBUG - No archinstall upgrades found
[2025-09-18 16:07:21] - DEBUG - Creating yescrypt hash with rounds 5
[2025-09-18 16:07:30] - DEBUG - Creating yescrypt hash with rounds 5
[2025-09-18 16:08:08] - DEBUG -  -- Chosen configuration --
[2025-09-18 16:08:08] - DEBUG - {
    "app_config": {
        "audio_config": {
            "audio": "pipewire"
        },
        "bluetooth_config": {
            "enabled": true
        }
    },
    "archinstall-language": "English",
    "auth_config": {},
    "bootloader": "Grub",
    "custom_commands": [],
    "disk_config": {
        "config_type": "pre_mounted_config",
        "mountpoint": "/mnt"
    },
    "hostname": "archjakob",
    "kernels": [
        "linux"
    ],
    "locale_config": {
        "kb_layout": "de",
        "sys_enc": "UTF-8",
        "sys_lang": "en_US.UTF-8"
    },
    "network_config": {
        "type": "nm"
    },
    "ntp": true,
    "packages": [
        "os-prober",
        "nano"
    ],
    "parallel_downloads": 0,
    "profile_config": {
        "gfx_driver": null,
        "greeter": null,
        "profile": {}
    },
    "script": null,
    "services": [],
    "swap": true,
    "timezone": "UTC",
    "version": "3.0.10"
}
[2025-09-18 16:08:09] - DEBUG - Disk layout configuration is set to pre-mount, not performing any operations
[2025-09-18 16:08:09] - INFO - Starting installation...
[2025-09-18 16:08:09] - INFO - Waiting for time sync (timedatectl show) to complete.
[2025-09-18 16:08:09] - INFO - Waiting for automatic mirror selection (reflector) to complete.
[2025-09-18 16:08:09] - INFO - Waiting for Arch Linux keyring sync (archlinux-keyring-wkd-sync) to complete.
[2025-09-18 16:08:09] - DEBUG - System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

[2025-09-18 16:08:09] - DEBUG - Optional repositories: []
[2025-09-18 16:08:10] - INFO - Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux', 'amd-ucode']
[2025-09-18 16:08:33] - INFO - Enabling periodic TRIM
[2025-09-18 16:08:33] - INFO - Enabling service fstrim.timer
[2025-09-18 16:08:33] - ERROR - Unable to start service fstrim.timer: ['/usr/bin/arch-chroot', '/mnt', 'systemctl', 'enable', 'fstrim.timer'] exited with abnormal exit code [1]: 
[2025-09-18 16:08:33] - ERROR - Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 670, in enable_service
    self.arch_chroot(f'systemctl enable {service}')
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 685, in arch_chroot
    return self.run_command(cmd)
           ~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 679, in run_command
    return SysCommand(f'arch-chroot {self.target} {cmd}')
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 326, in __init__
    self.create_session()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 366, in create_session
    with SysCommandWorker(
         ~~~~~~~~~~~~~~~~^
    	self.cmd,
     ^^^^^^^^^
    ...<3 lines>...
    	working_directory=self.working_directory,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as session:
    ^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 194, in __exit__
    raise SysCallError(
    ...<3 lines>...
    )
archinstall.lib.exceptions.SysCallError: ['/usr/bin/arch-chroot', '/mnt', 'systemctl', 'enable', 'fstrim.timer'] exited with abnormal exit code [1]: 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 104, in run_as_a_module
    rc = main()
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 94, in main
    importlib.import_module(mod_name)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 212, in <module>
    guided()
    ~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 209, in guided
    perform_installation(arch_config_handler.args.mountpoint)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 89, in perform_installation
    installation.minimal_installation(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    	optional_repositories=optional_repositories,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    	locale_config=locale_config,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 887, in minimal_installation
    self.enable_periodic_trim()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 660, in enable_periodic_trim
    self.enable_service('fstrim.timer')
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 672, in enable_service
    raise ServiceException(f'Unable to start service {service}: {err}')
archinstall.lib.exceptions.ServiceException: Unable to start service fstrim.timer: ['/usr/bin/arch-chroot', '/mnt', 'systemctl', 'enable', 'fstrim.timer'] exited with abnormal exit code [1]: 

[2025-09-18 16:08:33] - WARNING - Archinstall experienced the above error. If you think this is a bug, please report it to
https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".

Hint: To extract the log from a live ISO 
curl -F'file=@/var/log/archinstall/install.log' https://0x0.st

describe the problem

i was finished and it just crashed

ran220221 avatar Sep 18 '25 16:09 ran220221

Everybody is having this error

MasterChief1335 avatar Sep 18 '25 16:09 MasterChief1335

Same here, had the exact same error twice now

jiri-skala avatar Sep 18 '25 16:09 jiri-skala

try this fix!!! https://github.com/archlinux/archinstall/issues/3800#issuecomment-3309621778

MythSnipper avatar Sep 18 '25 20:09 MythSnipper