[搜到凑合方法了,1次补充]为何pacstrap总是签名出问题?

其他Linux/Unix/BSD/OSX等发行版讨论
回复
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

[搜到凑合方法了,1次补充]为何pacstrap总是签名出问题?

#1

帖子 科学之子 » 2017-01-23 20:49

第一次运行pacstrap说让我运行pacman-key --init
pacman-key --init需要很长时间?
而且之后再次运行pacstrap还是提示签名无效

代码: 全选

#前面一大堆...
error: usbutils: signature from "Tobias Powalowski <[email protected]>" is unknown trust
:: File /mnt/var/cache/pacman/pkg/usbutils-008-1-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vi: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /mnt/var/cache/pacman/pkg/vi-1:070224-2-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: which: signature from "Sébastien Luttringer <[email protected]>" is unknown trust
:: File /mnt/var/cache/pacman/pkg/which-2.21-2-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: xfsprogs: signature from "Tobias Powalowski <[email protected]>" is unknown trust
:: File /mnt/var/cache/pacman/pkg/xfsprogs-4.8.0-1-i686.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root

凑合方法
https://bbs.archlinux.org/viewtopic.php ... 5#p1411655
Tue Jan 24 13:28:48 CST 2017 补充:
https://www.archlinux.org/pacman/pacman ... _a_id_sc_a
当然,就算是凑合,签名也还是要验证的,只是公钥信任放宽.
不然传输过程中出错了就不好了(天朝网络环境你懂得)
上次由 科学之子 在 2017-01-24 13:31,总共编辑 3 次。
头像
lilydjwg
论坛版主
帖子: 4255
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 为何pacstrap总是签名出问题?

#2

帖子 lilydjwg » 2017-01-23 21:02

因为信任数据库有变化。你先装 pacman -Sy archlinux-keyring 再操作。(或者用/等新的 iso。)
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

Re: 为何pacstrap总是签名出问题?

#3

帖子 科学之子 » 2017-01-23 21:50

lilydjwg 写了:因为信任数据库有变化。你先装 pacman -Sy archlinux-keyring 再操作。(或者用/等新的 iso。)
连这个包也一样提示签名无效

代码: 全选

[root@debian arch_linux]# pacman -Sy archlinux-keyring
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20170104-1

Total Download Size:   0.59 MiB
Total Installed Size:  0.81 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 archlinux-keyring-20170104-1-any                                                  604.5 KiB  2.42M/s 00:00 [################################################################] 100%
(1/1) checking keys in keyring                                                                              [################################################################] 100%
(1/1) checking package integrity                                                                            [################################################################] 100%
error: archlinux-keyring: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20170104-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
头像
lilydjwg
论坛版主
帖子: 4255
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: [搜到凑合方法了]为何pacstrap总是签名出问题?

#4

帖子 lilydjwg » 2017-01-24 11:35

囧……你的 iso 是什么时候的呀?
回复