Special precautions for resuming interrupted pacman upgrades

I was just upgrading my system when the entire thing except my cursor froze. I had to force restart my system, and after restarting, there was a lockfile at /var/lib/pacman/db.lck blocking any commands, so I removed it. However now pacman says there’s nothing to update, and I see no visible problems with my system. Do I have to do anything?

It depends where the failure occurred in the process and which packages were updated.

You need to review your pacman.log file to see exactly where it failed and what it was doing. You may need to reinstall some packages.

1 Like

Here are the last lines in the logs:

[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Hardlinking files ***
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Mode:                     real
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Method:                   sha256
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Files:                    2073
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Linked:                   9 files
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Compared:                 0 xattrs
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Compared:                 481 files
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Saved:                    1.42 MiB
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: Duration:                 0.012649 seconds
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Hardlinking files done ***
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Generating early-microcode cpio image ***
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Constructing AuthenticAMD.bin ***
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Store current command line parameters ***
[2023-09-16T10:42:21-0400] [ALPM-SCRIPTLET] dracut: *** Stripping files ***
[2023-09-16T10:42:22-0400] [ALPM-SCRIPTLET] dracut: *** Stripping files done ***
[2023-09-16T10:42:22-0400] [ALPM-SCRIPTLET] dracut: *** Creating image file '/efi/e9328e87bd024cdfa996ce66355b3462/6.5.3-zen1-1-zen/initrd-fallback' ***

dracut runs pretty late in the update cycle so you are hopefully OK if you made it that far. I would run sudo dracut-rebuild just to make sure all your dracut images were rebuilt.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.