Manjaro Difference between revisions of "Pacman troubleshooting"

Difference between revisions of "Pacman troubleshooting"

From Manjaro
(Removed confusing section - perhaps obsolete - rewritten with tried and tested commands)
(fix explanation)
Line 20: Line 20:


<!--T:6-->
<!--T:6-->
The error relates to a mismatch in the information contained in the db files at the mentioned location and the db files at the first mirror in your mirrorlist. Pacman checks a package in the database and sees if the signature file matches the one in the database. If it does not, then pacman will say the package is corrupted.
The error relates to content of the db files. The error happens when pacman receives markup from the mirror instead of the database archives.


<!--T:7-->
While it sometimes is possible to fix the issue simply by deleting the files and the running a pacman update it far from every time.
While it sometimes is possible to fix the issue simply by deleting the files and the running a pacman update it far from every time.


=== One recipe for fixing this === <!--T:8-->
'''Run pacman-mirrors to refresh your mirrorlist'''
{{UserCmd|command=sudo pacman-mirrors -c Global}}


<!--T:9-->
It is mandatory to ensure that the keyrings is current. By ensuring the keyrings are in shape and then redownloading the databases we reestablish the chain of trust between the keyrings and the packages.
<!--T:10-->
'''You will have to find the correct names by looking at'''
Browse [https://mirror.easyname.at/manjaro/pool/overlay/ https://mirror.easyname.at/manjaro/pool/overlay/] for the current manjaro-keyring
and
Browse [https://mirror.easyname.at/manjaro/pool/sync https://mirror.easyname.at/manjaro/pool/sync] for the current archlinux-keyring
<!--T:11-->
'''Replace yyyymmdd and x with the info found at the above links'''
<!--T:12-->
{{UserCmd|command=sudo pacman -U <nowiki>https://mirror.easyname.at/manjaro/pool/overlay/manjaro-keyring-yyyymmdd-x-any.pkg.tar.xz</nowiki>}}
{{UserCmd|command=sudo pacman -U <nowiki>https://mirror.easyname.at/manjaro/pool/sync/archlinux-keyring-yyyymmdd-x-any.pkg.tar.xz</nowiki>}}
<!--T:13-->
'''Remove your faulty databases'''
{{UserCmd|command=sudo rm -f /var/lib/pacman/sync/*}}
<!--T:92-->
'''Download the databases and update the system'''
'''Download the databases and update the system'''
{{UserCmd|command=sudo pacman -Syyu}}
{{UserCmd|command=sudo pacman -Syyu}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.