Moderators, translator
455
edits
m (added nowiki tags on curl commands) |
(Marked this version for translation) |
||
Line 22: | Line 22: | ||
The error relates to content of the db files. The error happens when pacman receives markup from the mirror instead of the database archives. | 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:97--> | |||
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. | ||
<!--T:98--> | |||
'''Run pacman-mirrors to refresh your mirrorlist''' | '''Run pacman-mirrors to refresh your mirrorlist''' | ||
{{UserCmd|command=sudo pacman-mirrors -c Global}} | {{UserCmd|command=sudo pacman-mirrors -c Global}} | ||
<!--T:99--> | |||
'''Download the databases and update the system''' | '''Download the databases and update the system''' | ||
{{UserCmd|command=sudo pacman -Syyu}} | {{UserCmd|command=sudo pacman -Syyu}} | ||
Line 64: | Line 67: | ||
{{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! }} | ||
<!--T:100--> | |||
{{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|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.}} | ||
<!--T:101--> | |||
{{BoxInfo|Info|Those running ARM can find the '''archlinuxarm-keyring''' and '''manjaro-arm-keyring''' in the '''sync-arm''' and '''overlay-arm''' folders respectively.}} | {{BoxInfo|Info|Those running ARM can find the '''archlinuxarm-keyring''' and '''manjaro-arm-keyring''' in the '''sync-arm''' and '''overlay-arm''' folders respectively.}} | ||
<!--T:102--> | |||
'''Download the new keyring packages''' | '''Download the new keyring packages''' | ||
Before you download ensure no keyring packages is in the current folder. | Before you download ensure no keyring packages is in the current folder. | ||
{{UserCmd|command=rm manjaro-keyring* archlinux-keyring*}} | {{UserCmd|command=rm manjaro-keyring* archlinux-keyring*}} | ||
<!--T:103--> | |||
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. | 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. | ||
<!--T:104--> | |||
{{UserCmd|command=curl -O <nowiki>https://mirror.easyname.at/manjaro/pool/overlay/manjaro-keyring-YYYYMMDD-R-any.pkg.tar.xz</nowiki>}} | {{UserCmd|command=curl -O <nowiki>https://mirror.easyname.at/manjaro/pool/overlay/manjaro-keyring-YYYYMMDD-R-any.pkg.tar.xz</nowiki>}} | ||
{{UserCmd|command=curl -O <nowiki>https://mirror.easyname.at/manjaro/pool/sync/archlinux-keyring-YYYYMMDD-R-any.pkg.tar.zst</nowiki>}} | {{UserCmd|command=curl -O <nowiki>https://mirror.easyname.at/manjaro/pool/sync/archlinux-keyring-YYYYMMDD-R-any.pkg.tar.zst</nowiki>}} | ||
<!--T:105--> | |||
'''Remove the dysfunctional keyrings''' by entering this command: | '''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}} | ||
<!--T:106--> | |||
'''Initialize the pacman keyring''': | '''Initialize the pacman keyring''': | ||
{{UserCmd|command=sudo pacman-key --init}} | {{UserCmd|command=sudo pacman-key --init}} | ||
<!--T:107--> | |||
'''Install the downloaded packages''' | '''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 | 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=sudo pacman -U manjaro-keyring*.pkg.tar.xz archlinux-keyring*.pkg.tar.zst}} | ||
<!--T:108--> | |||
'''Populate the keyrings''' - (optional as the install process will do that) | '''Populate the keyrings''' - (optional as the install process will do that) | ||
{{UserCmd|command=sudo pacman-key --populate manjaro archlinux}} | {{UserCmd|command=sudo pacman-key --populate manjaro archlinux}} | ||
<!--T:109--> | |||
'''Clear out the software packages downloaded during the aborted installation''' (optional): | '''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 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.}} | ||
{{UserCmd|command=sudo pacman -Sc}} | {{UserCmd|command=sudo pacman -Sc}} | ||
<!--T:110--> | |||
After that try running '''sudo pacman -Syyu''' to see if the errors were resolved. | After that try running '''sudo pacman -Syyu''' to see if the errors were resolved. | ||