8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 15: | Line 15: | ||
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format | error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format | ||
The error relates to | The error relates to content of the db files. The error happens when pacman receives markup from the mirror instead of the database archives. | ||
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. | ||
'''Run pacman-mirrors to refresh your mirrorlist''' | |||
{{UserCmd|command=sudo pacman-mirrors -c Global}} | |||
''' | |||
{{UserCmd|command=sudo pacman - | |||
'''Download the databases and update the system''' | '''Download the databases and update the system''' | ||
Line 64: | Line 50: | ||
{{Warning|The following commands only work, when your system time is set correctly! }} | {{Warning|The following commands only work, when your system time is set correctly! }} | ||
''' | {{BoxInfo|Info|Retrieving the latest keyring packages can be done by browsing a current mirrors pool folder. E.g. from '''https://mirror.easyname.at/manjaro/pool''' - using the '''overlay''' for Manjaro keyring and '''sync''' for Arch keyring and downloading them to your system. Do not download '''.sig''' files.}} | ||
''' | {{BoxInfo|Info|Those running ARM can find the '''archlinuxarm-keyring''' and '''manjaro-arm-keyring''' in the '''sync-arm''' and '''overlay-arm''' folders respectively.}} | ||
''' | '''Download the new keyring packages''' | ||
{{UserCmd|command= | Before you download ensure no keyring packages is in the current folder. | ||
{{UserCmd|command=rm manjaro-keyring* archlinux-keyring*}} | |||
''' | Use either your browser or curl to download. Using curl assumes you know the correct package name as located with the mirror. Replace '''YYYYMMDD-R''' as available from the mirror. | ||
{{UserCmd|command=curl -O <nowiki>https://mirror.easyname.at/manjaro/pool/overlay/manjaro-keyring-YYYYMMDD-R-any.pkg.tar.xz</nowiki>}} | |||
{{UserCmd|command= | {{UserCmd|command=curl -O <nowiki>https://mirror.easyname.at/manjaro/pool/sync/archlinux-keyring-YYYYMMDD-R-any.pkg.tar.zst</nowiki>}} | ||
''' | '''Remove the dysfunctional keyrings''' by entering this command: | ||
{{UserCmd|command=sudo rm -r /etc/pacman.d/gnupg}} | {{UserCmd|command=sudo rm -r /etc/pacman.d/gnupg}} | ||
''' | '''Initialize the pacman keyring''': | ||
{{UserCmd|command=sudo pacman-key --init}} | {{UserCmd|command=sudo pacman-key --init}} | ||
''' | '''Install the downloaded packages''' | ||
Assuming the files is the current folder and using wildcard so you don't have to deal with dates and versions - remove the packages after successful installation | |||
{{UserCmd|command=sudo pacman -U manjaro-keyring*.pkg.tar.xz archlinux-keyring*.pkg.tar.zst}} | |||
{{UserCmd|command= | |||
''' | '''Populate the keyrings''' - (optional as the install process will do that) | ||
{{UserCmd|command=sudo pacman-key --populate manjaro archlinux}} | |||
{{UserCmd|command= | |||
''' | '''Clear out the software packages downloaded during the aborted installation''' (optional): | ||
{{warning|The command clears the pacman cache completely, and one will not be able to downgrade to a previous version of a package if required. Instead packages that are causing signing errors can be removed individually when upgrading.}} | |||
{{warning|The | |||
{{UserCmd|command=sudo pacman -Sc}} | {{UserCmd|command=sudo pacman -Sc}} | ||
After that try running '''sudo pacman -Syyu''' to see if the errors were resolved. | |||
After that try running '''sudo pacman - | |||
== Conflicting files - ''FILENAME'' exists in filesystem == | == Conflicting files - ''FILENAME'' exists in filesystem == |