translator
278
edits
(Added improved sequence to fix broken keyrings) |
m (removed gnupg from pacman command, added $HOME/.cache/pkg/ instead of $HOME/.cache/,) |
||
Line 122: | Line 122: | ||
sudo pacman -Sc</s> | sudo pacman -Sc</s> | ||
{{BoxInfo| | {{BoxInfo|Info|Improved version added, since it doesn't work that way above. The packages are signed and since '''/etc/pacman.d/gnupg''' has been removed, it cannot be installed due the check. Instead editing the '''/etc/pacman.conf''' and lowering the SigLevel, it would be better installing the keyrings without a check manually to overcome this problem.}} | ||
'''1. Remove old (and possibly broken) keys''' by entering this command: | '''1. Remove old (and possibly broken) keys''' by entering this command: | ||
Line 133: | Line 133: | ||
'''3. Download the packages:''' | '''3. Download the packages:''' | ||
{{BoxInfo|Info| GPG check errors can be ignored, since it only downloads the keyring packages.}} | |||
sudo pacman -Syw | mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/ | ||
'''4. Remove the signatures:''' | '''4. Remove the signatures:''' | ||
{{BoxInfo|Info| Signatures must be removed to avoid the automatic check of the packages.}} | |||
rm -f $HOME/.cache/*.sig | rm -f $HOME/.cache/pkg/*.sig | ||
'''5. Install the downloaded packages manually: | '''5. Install the downloaded packages manually: | ||
{{BoxInfo| | {{BoxInfo|Info|This will also trigger the populate process.}} | ||
sudo pacman -U $HOME/.cache/*.tar.zst | sudo pacman -U $HOME/.cache/pkg/*.tar.zst | ||
'''6. Clear out the software packages downloaded during the aborted installation''' (optional): | '''6. Clear out the software packages downloaded during the aborted installation''' (optional): | ||
{{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.}} | |||
sudo pacman -Sc | sudo pacman -Sc | ||
'''7. Remove the custom package folder:''' (optional): | |||
sudo rm -Rf $HOME/.cache/pkg/ | |||