You are not logged in.

#1 2025-01-07 15:14:01

aliibrahim
Member
Registered: 2025-01-07
Posts: 3

[SOLVED] Error During Post-Transaction Hooks in pacman

I encountered an issue while using pacman. During the post-transaction hooks after updating or installing packages, I received the following error:

:: Running post-transaction hooks...

( 3/13) Reloading user manager configuration...
user@970.service is not active, cannot reload.
error: command failed to execute correctly

I also run systemctl status user@970.service and got his:

× user@970.service - User Manager for UID 970
     Loaded: loaded (/usr/lib/systemd/system/user@.service; static)
    Drop-In: /usr/lib/systemd/system/user@.service.d
             └─10-login-barrier.conf
     Active: failed (Result: exit-code) since Tue 2025-01-07 18:09:34 +04; 59min ago
 Invocation: bed9a289926e40cfb5dee667ad2092c2
       Docs: man:user@.service(5)
    Process: 1722 ExecStart=/usr/lib/systemd/systemd --user (code=exited, status=224/PAM)
   Main PID: 1722 (code=exited, status=224/PAM)
   Mem peak: 3.2M
        CPU: 7ms
Jan 07 18:09:34 arch systemd[1]: Starting User Manager for UID 970...
Jan 07 18:09:34 arch (systemd)[1722]: pam_unix(systemd-user:account): account sddm has expired (account expired)
Jan 07 18:09:34 arch (systemd)[1722]: PAM failed: User account has expired
Jan 07 18:09:34 arch (systemd)[1722]: user@970.service: Failed to set up PAM session: Operation not permitted
Jan 07 18:09:34 arch (systemd)[1722]: user@970.service: Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted
Jan 07 18:09:34 arch systemd[1]: user@970.service: Main process exited, code=exited, status=224/PAM
Jan 07 18:09:34 arch systemd[1]: user@970.service: Failed with result 'exit-code'.
Jan 07 18:09:34 arch systemd[1]: Failed to start User Manager for UID 970.

Last edited by aliibrahim (2025-01-07 15:40:46)

Offline

#2 2025-01-07 15:26:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,323

Re: [SOLVED] Error During Post-Transaction Hooks in pacman

What does `sudo chage --list sddm` show?

Offline

#3 2025-01-07 15:34:33

aliibrahim
Member
Registered: 2025-01-07
Posts: 3

Re: [SOLVED] Error During Post-Transaction Hooks in pacman

Scimmia wrote:

What does `sudo chage --list sddm` show?


Hi, Scimmia
I'm sorry, I must have reported the issue too quickly because I found the solution after talking to chatgpt for a while.
the solution:

sudo chage -E 2200-12-31 sddm

Offline

#4 2025-01-07 15:43:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,323

Re: [SOLVED] Error During Post-Transaction Hooks in pacman

And again, chatgpt tells you something stupid.

First off, why was it set to expire at all? That's not default, so something went wrong somewhere and if you don't know where, it could happen again. Second, why would you choose some random date in the future instead of just removing the expiration?

Offline

#5 2025-01-07 15:52:51

aliibrahim
Member
Registered: 2025-01-07
Posts: 3

Re: [SOLVED] Error During Post-Transaction Hooks in pacman

Scimmia wrote:

And again, chatgpt tells you something stupid.

First off, why was it set to expire at all? That's not default, so something went wrong somewhere and if you don't know where, it could happen again. Second, why would you choose some random date in the future instead of just removing the expiration?

I just installed arch Linux today using arch install, and when I ran

sudo chage -l sddm

it showed account expiration Jan 1, 1970.

When I ran

sudo chage -E never sddm

it did not work.

Offline

#6 2025-01-07 15:58:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,323

Re: [SOLVED] Error During Post-Transaction Hooks in pacman

Then it looks like https://gitlab.archlinux.org/archlinux/ … 31dd309961 had some unintended consequences.

From the chage man page: "Passing the number -1 as the EXPIRE_DATE will remove an account expiration date."

Edit: I opened https://gitlab.archlinux.org/archlinux/ … -/issues/6

Last edited by Scimmia (2025-01-07 16:12:33)

Offline

Board footer

Powered by FluxBB