前几日给我的安卓手机安装了Termux,开始了我的暑假搞机之旅,好不容易给它装上了ArchLinux,在我使用pacman更新时却报了这样的错误:
error: libxinerama: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/libxinerama-1.1.4-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: libdmx: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/libdmx-1.1.4-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: xorg-xdpyinfo: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/xorg-xdpyinfo-1.3.2-2-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: xorg-xprop: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/xorg-xprop-1.2.3-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: screenfetch: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/screenfetch-3.8.0-2-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
看起来大概意思是软件的签名有问题。
Excuse me?
你系统自己设定的软件来源你现在告诉我你自己不信任他??
好吧,生活还是要继续的:百度,google,blahblah,我这么解决了这个问题:
pacman-key --init
pacman-key --populate
这上边两条命令,一条条输入进去执行一下,然后就可以使用pacman了
顺便晒一晒手机里的arch: