Difference between revisions of "Pacman troubleshooting"

added error section
imported>Excalibur1234
(expandend to all key errors)
imported>Excalibur1234
(added error section)
Line 35: Line 35:
{{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! }}


'''1. Remove old (and possibly broken) keys''' by entering these commands:
'''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  
'''2. Reinstall keyrings including the latest keys''':
  sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
  sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring


'''2. Initialize the pacman keyring''':
'''3. Initialize the pacman keyring''':


  sudo pacman-key --init  
  sudo pacman-key --init  


'''3. Load the signature keys''':
'''4. Load the signature keys''':


  sudo pacman-key --populate archlinux manjaro  
  sudo pacman-key --populate archlinux manjaro  


'''4. Refresh and update the signature keys''':  
'''5. Refresh and update the signature keys''':  


  sudo pacman-key --refresh-keys  
  sudo pacman-key --refresh-keys  


'''5. Clear out the software packages downloaded during the aborted installation''' (optional):  
'''6. Clear out the software packages downloaded during the aborted installation''' (optional):  


  sudo pacman -Sc
  sudo pacman -Sc
Line 117: Line 121:


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]]'''.
== "keyserver refresh failed: No dirmngr" Error ==
Try running the following command:
sudo dirmngr </dev/null