Difference between revisions of "Pacman troubleshooting"

expandend to all key errors
imported>Excalibur1234
(improved formatting)
imported>Excalibur1234
(expandend to all key errors)
Line 22: Line 22:




== "Failed to commit transaction (invalid or corrupted package)" Error ==
== Errors about Keys ==


We all have our own unique signatures which are used to authenticate who we are and to prevent fraudulent or even malicious activities by others. This is also the case with software packages available from the software repositories. They all contain encrypted codes (signature keys) unique to their developers to ensure that they are authentic and not malicious in nature.  
We all have our own unique signatures which are used to authenticate who we are and to prevent fraudulent or even malicious activities by others. This is also the case with software packages available from the software repositories. They all contain encrypted codes (signature keys) unique to their developers to ensure that they are authentic and not malicious in nature.  
Line 33: Line 33:
Where a package has not been signed off properly before being placed in a repository, it will be the responsibility of the developer(s) to correct this. However, as this problem will be more than likely due to a problem with your system's verification of a signiture key, this can be solved in three easy steps. Working net connection is required. Once you have opened your terminal:
Where a package has not been signed off properly before being placed in a repository, it will be the responsibility of the developer(s) to correct this. However, as this problem will be more than likely due to a problem with your system's verification of a signiture key, this can be solved in three easy steps. Working net connection is required. Once you have opened your terminal:


{{Warning|The following commands only work, when your system time is set correctly! }}


'''1. Initialize the pacman keyring''' by entering the command:
'''1. Remove old (and possibly broken) keys''' by entering these commands:
sudo rm -r /etc/pacman.d/gnupg
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
 
'''2. Initialize the pacman keyring''':


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


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


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


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


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


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


  sudo pacman -Sc
  sudo pacman -Sc