Difference between revisions of "Pacman troubleshooting"

Marked this version for translation
m
(Marked this version for translation)
Line 122: Line 122:
sudo pacman -Sc</s>
sudo pacman -Sc</s>


<!--T:85-->
{{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.}}
{{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.}}


<!--T:86-->
'''1. Remove old (and possibly broken) keys''' by entering this command:
'''1. Remove old (and possibly broken) keys''' by entering this command:
   
   
  sudo rm -r /etc/pacman.d/gnupg  
  sudo rm -r /etc/pacman.d/gnupg  


<!--T:87-->
'''2. Initialize the pacman keyring''':
'''2. Initialize the pacman keyring''':
   
   
  sudo pacman-key --init  
  sudo pacman-key --init  


<!--T:88-->
'''3. Download the packages:'''
'''3. Download the packages:'''
{{BoxInfo|Info| GPG check errors can be ignored, since it only downloads the keyring packages.}}
{{BoxInfo|Info| GPG check errors can be ignored, since it only downloads the keyring packages.}}
Line 137: Line 141:
  mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/
  mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/


<!--T:89-->
'''4. Remove the signatures:'''
'''4. Remove the signatures:'''
{{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.}}
Line 142: Line 147:
  rm -f $HOME/.cache/pkg/*.sig
  rm -f $HOME/.cache/pkg/*.sig


<!--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.}}
  sudo pacman -U $HOME/.cache/pkg/*.tar.zst
  sudo pacman -U $HOME/.cache/pkg/*.tar.zst


<!--T:91-->
'''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.}}
{{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.}}