准备把vps的debian换成archlinux,然后安装出现了这样的问题
error:dhcpcd:signature from "anatol pomozov <anatol.pomozov@gmail.com>"is unknown trust
::file /mnt/var/cache/pacmans/pkg/dhcpd*.pkg.tar.xz is corrupted(invalid or corrupted package (PGP signature))
do you want to delete it ?[y/n]
出现同样错误提示的还有 lzo,libarchive,libaio,libatomic_ops这四个文件
error:failed to commit transaction (invalid or corrupted package)
errors occurred, no packages were upgraded
==> error:failed to install packages to new root
用google了一下有说是时间设置的问题,但是我看了一下时间设置是正确的。
还有说是pacman-key --init pacman-key --populate archlinux。我都运行了这两条命令,还是不能解决。
一个好久没滚的vmware当中的archlinux,昨天滚了下。出现了差不多同样的问题:
error: dhclient: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/dhclient-4.3.2-1-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: dhcpcd: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/dhcpcd-6.8.1-1-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
离线
看看是不是确实坏了:
tar tf /var/cache/pacman/pkg/dhcpcd-6.8.1-1-i686.pkg.tar.xz || echo "bad file"
看看 key 是否已导入并信任:
pacman-key --list-keys anatol.pomozov@gmail.com
离线
看看是不是确实坏了:
tar tf /var/cache/pacman/pkg/dhcpcd-6.8.1-1-i686.pkg.tar.xz || echo "bad file"
看看 key 是否已导入并信任:
pacman-key --list-keys anatol.pomozov@gmail.com
问题解决了,重新安装了pacman-keyring
离线