archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Archinstall error

Open atkosX opened this issue 1 year ago • 3 comments

Which ISO version are you using?

"2025-09-01"

The installation log

[2025-09-18 20:18:26] - DEBUG - Hardware model detected: HP OMEN by HP Gaming Laptop 16-xd0xxx; UEFI mode: True
[2025-09-18 20:18:26] - DEBUG - Processor model detected: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
[2025-09-18 20:18:26] - DEBUG - Memory statistics: 13551936 available out of 15629860 total installed
[2025-09-18 20:18:26] - DEBUG - Could not detect virtual system: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

[2025-09-18 20:18:26] - DEBUG - System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

[2025-09-18 20:18:26] - DEBUG - Virtualization detected: None; is VM: False
[2025-09-18 20:18:28] - DEBUG - Graphics devices detected: dict_keys(['NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)', 'Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c2)'])
[2025-09-18 20:18:28] - DEBUG - Disk states before installing:
{
    "blockdevices": [
        {
            "name": "loop0",
            "path": "/dev/loop0",
            "pkname": null,
            "log_sec": 512,
            "size": "946 MiB",
            "pttype": null,
            "ptuuid": null,
            "rota": false,
            "tran": null,
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": "squashfs",
            "fsver": "4.0",
            "fsavail": 0,
            "fsuse_percentage": "100%",
            "type": "loop",
            "mountpoint": "/run/archiso/airootfs",
            "mountpoints": [
                "/run/archiso/airootfs"
            ],
            "fsroots": [
                "/"
            ],
            "children": []
        },
        {
            "name": "sda",
            "path": "/dev/sda",
            "pkname": null,
            "log_sec": 512,
            "size": "15296 MiB",
            "pttype": "gpt",
            "ptuuid": "b8fa5d43-91b7-4a5e-8b5b-fb7f7af3bca7",
            "rota": true,
            "tran": "usb",
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": null,
            "fsver": null,
            "fsavail": null,
            "fsuse_percentage": null,
            "type": "disk",
            "mountpoint": null,
            "mountpoints": [],
            "fsroots": [],
            "children": [
                {
                    "name": "sda1",
                    "path": "/dev/sda1",
                    "pkname": "sda",
                    "log_sec": 512,
                    "size": "15294 MiB",
                    "pttype": "gpt",
                    "ptuuid": "b8fa5d43-91b7-4a5e-8b5b-fb7f7af3bca7",
                    "rota": true,
                    "tran": null,
                    "partn": 1,
                    "partuuid": "32e2432d-d6ce-4fa7-9d60-74ea07f1a722",
                    "parttype": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7",
                    "uuid": "0AE3-1184",
                    "fstype": "vfat",
                    "fsver": "FAT32",
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                }
            ]
        },
        {
            "name": "nvme0n1",
            "path": "/dev/nvme0n1",
            "pkname": null,
            "log_sec": 512,
            "size": "976762 MiB",
            "pttype": "gpt",
            "ptuuid": "817524d3-9879-415c-9790-dedd605b3314",
            "rota": false,
            "tran": "nvme",
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": null,
            "fsver": null,
            "fsavail": null,
            "fsuse_percentage": null,
            "type": "disk",
            "mountpoint": null,
            "mountpoints": [],
            "fsroots": [],
            "children": [
                {
                    "name": "nvme0n1p1",
                    "path": "/dev/nvme0n1p1",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "260 MiB",
                    "pttype": "gpt",
                    "ptuuid": "817524d3-9879-415c-9790-dedd605b3314",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 1,
                    "partuuid": "96469ee0-b9e9-485c-88c4-dd53d5433457",
                    "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b",
                    "uuid": "844B-D334",
                    "fstype": "vfat",
                    "fsver": "FAT32",
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme0n1p2",
                    "path": "/dev/nvme0n1p2",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "16 MiB",
                    "pttype": "gpt",
                    "ptuuid": "817524d3-9879-415c-9790-dedd605b3314",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 2,
                    "partuuid": "96da437a-307b-4d64-a5f8-5319a23ecd0a",
                    "parttype": "e3c9e316-0b5c-4db8-817d-f92df00215ae",
                    "uuid": null,
                    "fstype": null,
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme0n1p3",
                    "path": "/dev/nvme0n1p3",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "725789 MiB",
                    "pttype": "gpt",
                    "ptuuid": "817524d3-9879-415c-9790-dedd605b3314",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 3,
                    "partuuid": "9a623bda-82db-47f1-ba91-02b5ef5892e4",
                    "parttype": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7",
                    "uuid": "A22EA4022EA3CE1B",
                    "fstype": "ntfs",
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme0n1p4",
                    "path": "/dev/nvme0n1p4",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "690 MiB",
                    "pttype": "gpt",
                    "ptuuid": "817524d3-9879-415c-9790-dedd605b3314",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 4,
                    "partuuid": "87633d62-fb5e-4113-9f1e-7ab673c508a0",
                    "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b",
                    "uuid": "3ED29DD4D29D912F",
                    "fstype": "ntfs",
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                }
            ]
        }
    ]
}
[ - Starting installation...
[2025-09-18 20:35:28] - DEBUG - Mounting ordered layout
[2025-09-18 20:35:28] - DEBUG - No lvm config defined to be mounted
[2025-09-18 20:35:28] - DEBUG - Mounting partition layout
[2025-09-18 20:35:28] - DEBUG - Mounting /dev/nvme0n1p7: mount /dev/nvme0n1p7 /mnt
[2025-09-18 20:35:28] - DEBUG - Mounting /dev/nvme0n1p5: mount /dev/nvme0n1p5 /mnt/boot
[2025-09-18 20:35:28] - INFO - Waiting for time sync (timedatectl show) to complete.
[2025-09-18 20:35:28] - INFO - Waiting for automatic mirror selection (reflector) to complete.
[2025-09-18 20:35:28] - INFO - Waiting for Arch Linux keyring sync (archlinux-keyring-wkd-sync) to complete.
[2025-09-18 20:35:28] - DEBUG - Setting mirrors on live system
[2025-09-18 20:35:28] - DEBUG - Checking download speed of in.mirrors.cicku.me[1.4100078130431601] by fetching: http://in.mirrors.cicku.me/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:30] - DEBUG -     speed: 1213192.5235320232 (1.15MiB/s)
[2025-09-18 20:35:30] - DEBUG - Checking download speed of in.mirrors.cicku.me[1.704439464215559] by fetching: https://in.mirrors.cicku.me/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:30] - DEBUG -     speed: 3465209.734565996 (3.3MiB/s)
[2025-09-18 20:35:30] - DEBUG - Checking download speed of mirror.del2.albony.in[1.1711024323217587] by fetching: https://mirror.del2.albony.in/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:34] - DEBUG -     speed: 341865.94162172463 (0.32MiB/s)
[2025-09-18 20:35:34] - DEBUG - Checking download speed of mirror.maa.albony.in[1.664918531104226] by fetching: https://mirror.maa.albony.in/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:35] - DEBUG -     speed: 852012.1075260303 (0.81MiB/s)
[2025-09-18 20:35:35] - DEBUG - Checking download speed of in-mirror.garudalinux.org[0.4296071775247549] by fetching: http://in-mirror.garudalinux.org/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:37] - DEBUG -     speed: 857180.2220455689 (0.81MiB/s)
[2025-09-18 20:35:37] - DEBUG - Checking download speed of in-mirror.garudalinux.org[0.6911843331858925] by fetching: https://in-mirror.garudalinux.org/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:37] - DEBUG -     speed: 1255703.1935156055 (1.19MiB/s)
[2025-09-18 20:35:37] - DEBUG - Checking download speed of mirror.sahil.world[0.44177263443645803] by fetching: http://mirror.sahil.world/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:38] - DEBUG -     speed: 691114.9448128582 (0.65MiB/s)
[2025-09-18 20:35:38] - DEBUG - Checking download speed of mirror.sahil.world[0.4855573791420324] by fetching: https://mirror.sahil.world/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:38] - DEBUG -     speed: 736232.781710187 (0.7MiB/s)
[2025-09-18 20:35:38] - DEBUG - Checking download speed of mirrors.nxtgen.com[1.690960035216756] by fetching: http://mirrors.nxtgen.com/archlinux-mirror/core/os/x86_64/core.db
[2025-09-18 20:35:38] - DEBUG -     speed: 1243813.1758473045 (1.18MiB/s)
[2025-09-18 20:35:38] - DEBUG - Checking download speed of mirrors.nxtgen.com[1.7821989684361765] by fetching: https://mirrors.nxtgen.com/archlinux-mirror/core/os/x86_64/core.db
[2025-09-18 20:35:39] - DEBUG -     speed: 1245462.7636216325 (1.18MiB/s)
[2025-09-18 20:35:39] - DEBUG - Checking download speed of mirrors.abhy.me[1.1922288796129443] by fetching: https://mirrors.abhy.me/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:43] - DEBUG -     speed: 1902273.4017729883 (1.81MiB/s)
[2025-09-18 20:35:43] - DEBUG - Checking download speed of in.arch.niranjan.co[0.6630738555183014] by fetching: https://in.arch.niranjan.co/core/os/x86_64/core.db
[2025-09-18 20:35:44] - DEBUG -     speed: 5952831.429085125 (5.67MiB/s)
[2025-09-18 20:35:44] - DEBUG - Checking download speed of mirrors.saswata.cc[1.3237665114168342] by fetching: http://mirrors.saswata.cc/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:55] - DEBUG -     speed: 1685418.926742676 (1.6MiB/s)
[2025-09-18 20:35:55] - DEBUG - Checking download speed of mirrors.saswata.cc[1.0839957369169697] by fetching: https://mirrors.saswata.cc/archlinux/core/os/x86_64/core.db
[2025-09-18 20:35:57] - DEBUG -     speed: 1914741.2679693494 (1.82MiB/s)
[2025-09-18 20:35:57] - DEBUG - Checking download speed of archlinux.kushwanthreddy.com[1.459185205812462] by fetching: https://archlinux.kushwanthreddy.com/core/os/x86_64/core.db
[2025-09-18 20:36:01] - DEBUG -     speed: 4259505.453417891 (4.06MiB/s)
[2025-09-18 20:36:01] - DEBUG - Mirrorlist:


## India
Server = http://in-mirror.garudalinux.org/archlinux/$repo/os/$arch
Server = http://mirror.sahil.world/archlinux/$repo/os/$arch
Server = https://mirror.sahil.world/archlinux/$repo/os/$arch
Server = https://in.arch.niranjan.co/$repo/os/$arch
Server = https://in-mirror.garudalinux.org/archlinux/$repo/os/$arch
Server = https://mirrors.saswata.cc/archlinux/$repo/os/$arch
Server = https://mirror.del2.albony.in/archlinux/$repo/os/$arch
Server = https://mirrors.abhy.me/archlinux/$repo/os/$arch
Server = http://mirrors.saswata.cc/archlinux/$repo/os/$arch
Server = http://in.mirrors.cicku.me/archlinux/$repo/os/$arch
Server = https://archlinux.kushwanthreddy.com/$repo/os/$arch
Server = https://mirror.maa.albony.in/archlinux/$repo/os/$arch
Server = http://mirrors.nxtgen.com/archlinux-mirror/$repo/os/$arch
Server = https://in.mirrors.cicku.me/archlinux/$repo/os/$arch
Server = https://mirrors.nxtgen.com/archlinux-mirror/$repo/os/$arch

[2025-09-18 20:36:01] - DEBUG - System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

[2025-09-18 20:36:01] - DEBUG - Optional repositories: []
[2025-09-18 20:36:06] - INFO - Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux', 'amd-ucode']
[2025-09-18 20:40:08] - INFO - Enabling periodic TRIM
[2025-09-18 20:40:08] - INFO - Enabling service fstrim.timer
[2025-09-18 20:40:08] - 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 20:40:08] - 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 203, in guided
    return 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 20:40:08] - 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

Description of the issue

I was installing on Ryzen 7 CPU

I ran the archinstall script and the installation failed in between Also unable to run systemctl in arch-chroot

atkosX avatar Sep 18 '25 20:09 atkosX

https://0x0.st/KTuX.log

atkosX avatar Sep 18 '25 21:09 atkosX

Same issue

rusinov-artem avatar Sep 18 '25 21:09 rusinov-artem

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

MythSnipper avatar Sep 18 '25 21:09 MythSnipper