Errors
Systemd failed units
systemctl --failed --all
Error logs
journalctl -p 3 -xb
Update the system
Update the keys. Needed if the last update was a long time ago.
sudo pacman-key --refresh-keys
Update
yay --editmenu -Syyu --devel --timeupdate
Clean
yay -Yc # Clean unneeded dependencies
yay -Sc # Remove all the cached packages that are not currently installed
paccache -rk1 # Removes up to one version of all packages
paccache -ruk0 # Remove all cached versions of uninstalled packages
pacdiff
DIFFPROG=meld pacdiff
More info on how to use vimdiff https://yurialek.gitlab.io/guides/linux/vim.html#vimdiff.
meld
is a GUI utility.
Signature from "" is unknown trust.
Or signature from "" is marginal trust
.
Happens when the system has not been updated in a long time.
Archwiki - Pacman - Package signing
Update Arch's keyring and gnupg
. This populates the new keys automatically.
sudo pacman -S archlinux-keyring gnupg
You can force a full reload of all the signatures.
rm -r /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys
Update mirrorlist.
Takes around 10 minutes.
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.$(date +'%Y.%m.%d').old
curl -o /tmp/mirrorlist.new https://archlinux.org/mirrorlist/all/
sed -i 's/^#Server/Server/' /tmp/mirrorlist.new
rankmirrors -n 10 /tmp/mirrorlist.new | sudo tee /etc/pacman.d/mirrorlist
Broken symlinks
find / -xtype l -print