My updates broke again and remained broken for quite a while. I got a keyring issue and the same error message as before, namely:
error: *package* : signature from "User <firstname.lastname@example.org>" is invalid error: failed to commit transaction (invalid or corrupted package (PGP signature)) Errors occured, no packages were upgraded.
Or something to that effect. I just left it since I had more pressing matters at hand, but today I finally decided to RTFM.
I tried this first, as root:
ntpd -qg hwclock -w
It didn’t work. Then I tried this:
pacman-key --init pacman-key --populate pacman-key --refresh-keys pacman -Sy archlinux-keyring
It started working, then gave me this error:
error: failed to commit transaction (conflicting files) *package* : */path/to/file* exists in filesystem Errors occurred, no packages were upgraded.
So I tried this, from the Pacman page on the wiki:
The problem is usually trivial to solve. A safe way is to first check if another package owns the file (pacman -Qo /path/to/file
). If the file is owned by another package, [file a bug report](https://wiki.archlinux.org/index.php/Reporting_bug_guidelines). If the file is not owned by another package, rename the file which 'exists in filesystem' and re-issue the update command. If all goes well, the file may then be removed.
That worked. What was wrong? Seems like a combination of my keys being out of date and some dodgy files lying where they should not have. Fortunately, nobody owned those files so I could rename them and update. Perhaps someone else experienced the same issue, so here’s a possible solution for you.