translator
11,127
edits
(change for error with keys because of archlinux-keyring tar file is end by .tar.xz) Tags: Mobile web edit Mobile edit |
m (link) |
||
Line 40: | Line 40: | ||
'''Replace yyyymmdd and x with the info found at the above links''' | '''Replace yyyymmdd and x with the info found at the above links''' | ||
<!--T:12--> | |||
sudo pacman -U https://mirror.netzspielplatz.de/manjaro/packages/pool/overlay/manjaro-keyring-yyyymmdd-x-any.pkg.tar.xz | {{UserCmd|command=sudo pacman -U https://mirror.netzspielplatz.de/manjaro/packages/pool/overlay/manjaro-keyring-yyyymmdd-x-any.pkg.tar.xz}} | ||
{{UserCmd|command=sudo pacman -U https://mirror.netzspielplatz.de/manjaro/packages/pool/sync/archlinux-keyring-yyyymmdd-x-any.pkg.tar.xz}} | |||
<!--T:13--> | <!--T:13--> | ||
'''Remove your faulty databases''' | '''Remove your faulty databases''' | ||
{{UserCmd|command=sudo rm -f /var/lib/pacman/sync/*}} | |||
'''Download the databases and update the system''' | '''Download the databases and update the system''' | ||
{{UserCmd|command=sudo pacman -Syyu}} | |||
== "Unable to lock database" Error == <!--T:14--> | == "Unable to lock database" Error == <!--T:14--> | ||
Line 63: | Line 63: | ||
<!--T:18--> | <!--T:18--> | ||
sudo rm /var/lib/pacman/db.lck | {{UserCmd|command=sudo rm /var/lib/pacman/db.lck}} | ||
<!--T:19--> | <!--T:19--> | ||
Line 90: | Line 90: | ||
<s>'''1. Remove old (and possibly broken) keys''' by entering this command: | <s>'''1. Remove old (and possibly broken) keys''' by entering this command: | ||
{{UserCmd|command=sudo rm -r /etc/pacman.d/gnupg}} | |||
<!--T:27--> | <!--T:27--> | ||
Line 96: | Line 96: | ||
<!--T:28--> | <!--T:28--> | ||
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring | {{UserCmd|command=sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring}} | ||
<!--T:29--> | <!--T:29--> | ||
''' | '''3. Initialize the pacman keyring''': | ||
<!--T:30--> | <!--T:30--> | ||
sudo pacman-key --init | {{UserCmd|command=sudo pacman-key --init}} | ||
<!--T:31--> | <!--T:31--> | ||
Line 108: | Line 108: | ||
<!--T:32--> | <!--T:32--> | ||
sudo pacman-key --populate archlinux manjaro | {{UserCmd|command=sudo pacman-key --populate archlinux manjaro}} | ||
<!--T:33--> | <!--T:33--> | ||
Line 114: | Line 114: | ||
<!--T:34--> | <!--T:34--> | ||
sudo pacman-key --refresh-keys | {{UserCmd|command=sudo pacman-key --refresh-keys}} | ||
<!--T:35--> | <!--T:35--> | ||
'''6. Clear out the software packages downloaded during the aborted installation''' (optional): | '''6. Clear out the software packages downloaded during the aborted installation''' (optional): | ||
<!--T:36--> | |||
sudo pacman -Sc</s> | {{UserCmd|command=sudo pacman -Sc}}</s> | ||
<!--T:85--> | <!--T:85--> | ||
Line 128: | Line 128: | ||
'''1. Remove old (and possibly broken) keys''' by entering this command: | '''1. Remove old (and possibly broken) keys''' by entering this command: | ||
{{UserCmd|command=sudo rm -r /etc/pacman.d/gnupg}} | |||
<!--T:87--> | <!--T:87--> | ||
'''2. Initialize the pacman keyring''': | '''2. Initialize the pacman keyring''': | ||
{{UserCmd|command=sudo pacman-key --init}} | |||
<!--T:88--> | <!--T:88--> | ||
Line 143: | Line 143: | ||
}} | }} | ||
{{UserCmd|command=mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/}} | |||
<!--T:89--> | <!--T:89--> | ||
Line 149: | Line 149: | ||
{{BoxInfo|Info| Signatures must be removed to avoid the automatic check of the packages.}} | {{BoxInfo|Info| Signatures must be removed to avoid the automatic check of the packages.}} | ||
{{UserCmd|command=rm -f $HOME/.cache/pkg/*.sig}} | |||
<!--T:90--> | <!--T:90--> | ||
'''5. Install the downloaded packages manually: | '''5. Install the downloaded packages manually: | ||
{{BoxInfo|Info|This will also trigger the populate process.}} | {{BoxInfo|Info|This will also trigger the populate process.}} | ||
{{UserCmd|command=sudo pacman -U $HOME/.cache/pkg/*.tar.zst}} | |||
{{UserCmd|command=sudo pacman -U $HOME/.cache/pkg/*.tar.xz}} | |||
<!--T:91--> | <!--T:91--> | ||
Line 161: | Line 161: | ||
{{warning|The above 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 above 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}} | |||
'''7. Remove the custom package folder:''' (optional): | '''7. Remove the custom package folder:''' (optional): | ||
{{UserCmd|command=sudo rm -Rf $HOME/.cache/pkg/}} | |||
Line 204: | Line 204: | ||
<!--T:49--> | <!--T:49--> | ||
pacman -Qo /path/to/file | {{UserCmd|command=pacman -Qo /path/to/file}} | ||
<!--T:50--> | <!--T:50--> | ||
Line 250: | Line 250: | ||
<!--T:64--> | <!--T:64--> | ||
sudo pacman -Syyu | {{UserCmd|command=sudo pacman -Syyu}} | ||
<!--T:65--> | <!--T:65--> | ||
Line 256: | Line 256: | ||
<!--T:66--> | <!--T:66--> | ||
sudo pacman -Sc | {{UserCmd|command=sudo pacman -Sc}} | ||
<!--T:67--> | <!--T:67--> | ||
Line 271: | Line 271: | ||
<!--T:71--> | <!--T:71--> | ||
sudo pacman -Syy | {{UserCmd|command=sudo pacman -Syy}} | ||
<!--T:72--> | <!--T:72--> | ||
Line 277: | Line 277: | ||
<!--T:73--> | <!--T:73--> | ||
sudo pacman-key --refresh-keys | {{UserCmd|command=sudo pacman-key --refresh-keys}} | ||
<!--T:74--> | <!--T:74--> | ||
Line 283: | Line 283: | ||
<!--T:75--> | <!--T:75--> | ||
sudo pacman-key --populate archlinux manjaro | {{UserCmd|command=sudo pacman-key --populate archlinux manjaro}} | ||
<!--T:76--> | <!--T:76--> | ||
Line 289: | Line 289: | ||
<!--T:77--> | <!--T:77--> | ||
sudo pacman -Sc | {{UserCmd|command=sudo pacman -Sc}} | ||
<!--T:78--> | <!--T:78--> | ||
5. Re-attempt the aborted download. | 5. Re-attempt the aborted download. | ||
<!--T:79--> | <!--T:79--> | ||
If the error still persists, then it is recommended to '''[[Change to a Different Download Server]]'''. | If the error still persists, then it is recommended to '''[[Change to a Different Download Server|Change to a Different Download Server]]'''. | ||
Line 311: | Line 310: | ||
<!--T:84--> | <!--T:84--> | ||
* '''[[Change to a Different Download Server]]''' | * '''[[Change to a Different Download Server|Change to a Different Download Server]]''' | ||
* '''[[Pacman-mirrors|Reference Guide for pacman-mirrors]]''' | * '''[[Pacman-mirrors|Reference Guide for pacman-mirrors]]''' | ||
* '''[https://wiki.archlinux.org/index.php/Pacman#Troubleshooting Arch wiki for more comprehensive troubleshooting]''' | * '''[https://wiki.archlinux.org/index.php/Pacman#Troubleshooting Arch wiki for more comprehensive troubleshooting]''' | ||
</translate> | </translate> | ||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] |