this post was submitted on 27 Mar 2024
10 points (100.0% liked)

Arch Linux

7759 readers
2 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

So I was wondering, is there a place you can make the --debug flag output to or if there was a default location besides the terminal itself?

Like the title says pacman -Syu is occasionally hard locking the computer forcing a power cycle. After restarting the computer the update will go fine after deleting the archives that are corrupted from the failed update.

It always hangs in the :: Running post-transaction hooks... part of the update. This time it hung specifically on the ( 3/19) Reloading system manager configuration...

I have tried to redirect the debug output like: pacman -Syu --debug >> ~/Desktop/pacdebug.txt but it seems that I only get the standard upgrade output.

Is there some other tool or steps I can use to investigate this?

This has been happening since I upgraded to KDE 6 but I don't think it's directly related to KDE it's just when it started.

Thanks!

~~Update for future peoples:~~

~~At this point I'm relatively sure that I had broken my kernel. I switched to a different kernel and the pacman freezing has stopped. Still testing but so far I'm pretty confident that was the issue as it has been several days without issue.~~

~~To future peoples that might be having a similar issue try a different kernel and if the issue is resolved, remove the broken kernel + kernel headers and reinstall it.~~

top 4 comments
sorted by: hot top controversial new old
[–] zurohki@aussie.zone 3 points 7 months ago (1 children)

Maybe do pacman -Syu --debug >& ~/Desktop/pacdebug.txt to redirect stderr too?

[–] disheveledWallaby@lemmy.ml 2 points 7 months ago (1 children)

pacman -Syu --debug >& ~/Desktop/pacdebug.txt

Looks like that will almost work, I need to answer :: Proceed with installation? [Y/n] and possibly other questions. Do you think that I should use the --noconfirm flag?

   --noconfirm
       Bypass any and all “Are you sure?” messages. It’s not a good idea to do this unless you want to run pacman from a script.
[–] zurohki@aussie.zone 3 points 7 months ago (1 children)

Yeah, that's probably the easiest way to get it to work.

[–] disheveledWallaby@lemmy.ml 3 points 7 months ago

I'm going to wait for a couple days to see if anyone else has any ideas and use the time to do some more investigating. If all else fails I'll just have to hope I get an update that doesn't require an important intervention.

Thanks again, your advice is much appreciated!