Grimoire-
Command
.es

GNU+Linux command memo

If pamac fails to update the Artix system

Si pamac échoue à mettre à jour un système Artix

$ sudo rm /var/lib/pacman/db.lck (1)
$ sudo pacman -Sy (2)
$ sudo pacman -S archlinux-keyring artix-keyring  (3)
$ sudo pacman -Su (4)
1 Unlock pacman removing its lock / mutex / semaphore file
2 Update the catalog of packages
3 Try to update the keyring packages first to allow the system to recognize some new packages. Those packages might already be up-to-date.
4 Update the system from command line

Actually, in our case, pamac was faulty, with an apparent freeze during catalog refresh masking a segfault behind. The solution was to update /etc/pacman.d/mirrorlist-arch commenting the 1st repositories and uncommenting the 4 firsts of your geographic locality.

To get an updated mirrorlist-arch fetch it from their Github : sudo wget https://github.com/archlinux/svntogit-packages/raw/packages/pacman-mirrorlist/trunk/mirrorlist -O /etc/pacman.d/mirrorlist-arch

$ pamac checkupdates
$ pamac update
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Une authentification est requise pour installer, mettre à jour ou supprimer
des paquets
Authenticating as: ***
Password:
==== AUTHENTICATION COMPLETE ====
Checking keyring...                                                 [186/186]
Checking integrity...                                               [186/186]
Loading packages files...                                           [186/186]
Checking file conflicts...                                          [186/186]
Checking available disk space...                                    [186/186]
Running pre-transaction hooks...
Removing linux initcpios...                                             [1/2]
Removing old entries from the info directory file...                    [2/2]
Upgrading tzdata (2024a-2 -> 2024b-2)...                              [1/186]
Upgrading openssl (3.3.1-1 -> 3.3.2-1)...                             [2/186]
Upgrading gcc-libs (14.2.1+r32
…