8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 66: | Line 66: | ||
{{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 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 74: | Line 74: | ||
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring | sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring | ||
''' | '''2. Initialize the pacman keyring''': | ||
sudo pacman-key --init | sudo pacman-key --init | ||
Line 88: | Line 88: | ||
'''6. 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</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:''' | |||
{{BoxInfo|Info| GPG check errors can be ignored, since it only downloads the keyring packages.}} | |||
mkdir -pv $HOME/.cache/pkg/ && sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/ | |||
'''4. Remove the signatures:''' | |||
{{BoxInfo|Info| Signatures must be removed to avoid the automatic check of the packages.}} | |||
rm -f $HOME/.cache/pkg/*.sig | |||
'''5. Install the downloaded packages manually: | |||
{{BoxInfo|Info|This will also trigger the populate process.}} | |||
sudo pacman -U $HOME/.cache/pkg/*.tar.zst | |||
'''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/ | |||
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 == | == Conflicting files - ''FILENAME'' exists in filesystem == | ||
Line 127: | Line 157: | ||
This post was inspired by (and adapted from): | This post was inspired by (and adapted from): | ||
https:// | https://wiki.archlinux.org/title/Pacman#%22Failed_to_commit_transaction_(conflicting_files)%22_error | ||
The above post also has links to further reading. | The above post also has links to further reading. |