Difference between revisions of "Pacman troubleshooting"

Added improved sequence to fix broken keyrings
(Marked this version for translation)
(Added improved sequence to fix broken keyrings)
Line 88: Line 88:


<!--T:26-->
<!--T:26-->
'''1. Remove old (and possibly broken) keys''' by entering this command:
<s>'''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  
Line 99: Line 99:


<!--T:29-->
<!--T:29-->
'''3. Initialize the pacman keyring''':
'''2. Initialize the pacman keyring''':


  <!--T:30-->
  <!--T:30-->
Line 120: Line 120:


  <!--T:36-->
  <!--T:36-->
sudo pacman -Sc
sudo pacman -Sc</s>
 
{{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:
sudo rm -r /etc/pacman.d/gnupg
 
'''2. Initialize the pacman keyring''':
sudo pacman-key --init
 
'''3. Download the packages:'''
sudo pacman -Syw gnupg archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/
 
'''4. Remove the signatures:'''
rm -f $HOME/.cache/*.sig
 
'''5. Install the downloaded packages manually:
{{BoxInfo|INFO|This will also trigger the populate process.}}
sudo pacman -U $HOME/.cache/*.tar.zst
 
'''6. Clear out the software packages downloaded during the aborted installation''' (optional):
sudo pacman -Sc


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




<!--T:38-->
<!--T:38-->
After that try running '''sudo pacman -Syu''' to see if the errors were resolved.
After that try running '''sudo pacman -Syu''' to see if the errors were resolved.


== Conflicting files - ''FILENAME'' exists in filesystem == <!--T:39-->
== Conflicting files - ''FILENAME'' exists in filesystem == <!--T:39-->
translator
278

edits