ArchLinux長時間不更新永遠會有的unknown trust報錯解決方法彙總

lightmon發表於2024-09-04
sudo pacman-key --refresh-keys

# enable ntp and ensure the time correct
timedatectl set-ntp 1
timedatectl status

rm -fr /etc/pacman.d/gnupg
# create pacman master key
pacman-key --init
# reload keys from keyring resources
pacman-key --populate

sudo rm /var/cache/pacman/pkg -r

pacman -Sy archlinux-keyring && pacman -Syu

相關文章