You are not logged in.

#1 2025-09-19 00:10:07

mathmonk
Member
Registered: 2025-09-12
Posts: 2

[SOLVED]Post-transaction hook failures during pacstrap and arch-chroot

Hi all,

I'm running into a series of errors when using pacstrap during a fresh Arch install as per the official guide. After executing:

pacstrap -K /mnt base

I get multiple failures during the post-transaction hooks. Here's a snippet of the output:

:: Running post-transaction hooks...
(1/11) Creating system user accounts...
Creating group 'alpm' with GID 971.
Creating user 'alpm' (Arch Linux Package Management) with UID 971 and GID 971. 
(2/11) Updating journal message catalog...
(3/11) Reloading system manager configuration...
Failed to check for chroot() environment: Function not implemented
Failed to connect to system scope bus via local transport: No data available 
error: command failed to execute correctly
(4/11) Reloading user manager configuration...
Failed to check for chroot() environment: Function not implemented
Failed to connect to system scope bus via local transport: No data available
error: command failed to execute correctly
(5/11) Updating udev hardware database...
(6/11) Applying kernel sysctl settings...
Failed to check for chroot() environment: Function not implemented
(7/11) Creating temporary files...
(8/11) Reloading device manager configuration...
Failed to check for chroot() environment: Function not implemented
LNXSYSTM:00: Failed to write 'change' to '/sys/devices/LNXSYSTM:00/uevent': Read-only file system 
error: command failed to execute correctly
(9/11) Arming ConditionNeedsUpdate...
(10/11) Rebuilding certificate stores..
(11/11) Reloading system bus configuration...
Failed to check for chroot() environment: Function not implemented
Failed to connect to system scope bus via local transport: No data available
error: command failed to execute correctly
pacstrap -K /mnt base 6.32s user 5.65s system 51% cpu 23.202 total

It seems like systemd-related hooks are failing due to missing or inaccessible resources in the chroot environment. I have tried solving it by updating the pacman mirrorlist

reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist

and updating the keyring

pacman -Syy archlinux-keyring

But none of that worked. I have also serached this forum but didn't find a post about this problem.

I am able to proceed until it is time to install `networkmanager` under arch-chroot. It leads to same post-completion hook errors. Moreover,

systemctl enable NetworkManager

leads to the following red color message:

Failed to connect to system scope bus via local transport: No data available

This is my fifth time installing Arch from scratch and have never faced this issue before.

Last edited by mathmonk (2025-09-19 19:59:56)

Offline

#2 2025-09-19 00:29:07

correctmost
Member
Registered: 2024-01-20
Posts: 22

Re: [SOLVED]Post-transaction hook failures during pacstrap and arch-chroot

There's a change in systemd 258 that is causing the issues:
- https://gitlab.archlinux.org/archlinux/ … /issues/54
- https://github.com/systemd/systemd/pull/39021

Last edited by correctmost (2025-09-19 18:49:30)

Offline

#3 2025-09-19 00:43:20

mathmonk
Member
Registered: 2025-09-12
Posts: 2

Re: [SOLVED]Post-transaction hook failures during pacstrap and arch-chroot

Thank you very much for the prompt response!

So the course of action is to wait for the bug fix and then try again?

Last edited by mathmonk (2025-09-19 01:02:15)

Offline

#4 2025-09-19 18:57:19

correctmost
Member
Registered: 2024-01-20
Posts: 22

Re: [SOLVED]Post-transaction hook failures during pacstrap and arch-chroot

This should work now with the systemd 258-2 package.

Offline

Board footer

Powered by FluxBB