Manjaro Difference between revisions of "Pacman troubleshooting"

Difference between revisions of "Pacman troubleshooting"

From Manjaro
imported>Excalibur1234
imported>Fhdk
Line 7: Line 7:
Various issues relating to the download and installation of software packages from the Manjaro repositories are dealt with here.
Various issues relating to the download and installation of software packages from the Manjaro repositories are dealt with here.


== "Unrecognized archive format" Error ==
It has ocurred more than once, an update is issuing these messages in a seemingly never ending stream.
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
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.
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 ===
It is mandatory to ensure that the keyrings is current.
'''You will have to find the correct names by looking at'''
Browse [http://repo.stdout.net/manjaro/pool/overlay repo.stdout.net/manjaro/pool/overlay] for the current manjaro-keyring
and
Browse [http://repo.stdout.net/manjaro/pool/sync repo.stdout.net/manjaro/pool/sync] for the current archlinux-keyring
'''Replace yyyymmdd and x with the info found at the above links'''
sudo pacman -U http://repo.stdout.net/manjaro/pool/overlay/manjaro-keyring-yyyymmdd-x-any.pkg.tar.xz
sudo pacman -U http://repo.stdout.net/manjaro/pool/sync/archlinux-keyring-yyyymmdd-x-any.pkg.tar.xz
'''Remove your faulty databases'''
sudo rm -f /var/lib/pacman/sync/*
'''Refresh the databases'''
sudo pacman -Sy
'''And finally run a full system update'''
sudo pacman -Syu


== "Unable to lock database" Error ==
== "Unable to lock database" Error ==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.