I wonder if anybody can help me solving an upgrade problem I encountered with Arch Linux.
I´m running Arch Linux as a virtual machine in
gnome-boxes. This is the image I´m using: “Arch-Linux-x86_64-basic-20220127.45754.qcow2”.
I used to run it with
virt-manager but at present I´m running it with
gnome-boxes. No issues there. The problems started when I tried to upgrade Arch.
I did it this way:
This should update the package repositories and then perform the upgrade, as Arch is a rolling release model.
Currently it´s an older version:
I´ll have to dig my memory as I didn´t take notes at the time. I´ll do my best to be as accurate as possible. Well, I got something like this in the terminal:
core is up to date
extra is up to date
community is up to date
Then I proceeded:
Starting full system upgrade.
resolving dependencies... looking for conflicting packages... .
So far so good. Then:
Proceed with installation? [Y/n] I accepted, of course. After that several “corrupted” errors occurred.
Here is just one example:
File /var/cache/pacman/pkg/confuse-2.8-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
I always let the packages be deleted but in the end I got “errors occurred, no packages were upgraded”. I wasted about 600 MB of download and the system wasn´t upgraded after all.
I also refreshed the package mirrors:
sudo pacman -Syy
and cleared the pacman cache:
sudo pacman -Scc.
Nothing helped so far.
Then I thought: Perhaps it’s possible that my pacman keyring is outdated or corrupted. So I did the following:
sudo pacman-key --init
sudo pacman-key --populate archlinux
It worked well but the upgrade still failed with the same errors.
Then I updated my mirrorlist using reflector:
sudo reflector --country Germany --latest 10 --sort rate --save /etc/pacman.d/mirrorlist .
cat /etc/pacman.d/mirrorlist showed me that I was successful in doing that. But the upgrade still failed with the same error messages.
Now I´m running out of ideas. Does anyone know what can be done about it
Thanks a lot in advance and many greetings from Rosika.