首页 > 代码库 > [ArchLinux]进行更新时出现错误:GPGME error: 无数据,数据库无效的解决办法/
[ArchLinux]进行更新时出现错误:GPGME error: 无数据,数据库无效的解决办法/
今天在我进行系统更新pacman -Syu时,出现了如下错误:
# pacman -Syu 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 :: 正在同步软件包数据库... core 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% extra 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% community 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% multilib-testing 已经是最新版本 B 0.00B/s 00:00 [----------------------] 0% multilib 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% 错误:数据库 ‘core‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘extra‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘community‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib-testing‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib‘ 无效 (无效或已损坏的数据库 (PGP 签名))
在此之前为了安装Chrome浏览器,在/etc/pacman.conf中添加了yaourt的serve
[archlinuxfr] SigLevel = Never Server = http://repo.archlinux.fr/$arch
重启之后便出现了上面的错误,无法进行更新,尝试了#pacman -Syu --ignore filesystem.bash、# pacman -S bash、# pacman -Su
# pacman -Syu --ignore filesystem,bash 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 :: 正在同步软件包数据库... core 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% extra 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% community 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% multilib-testing 已经是最新版本 B 0.00B/s 00:00 [----------------------] 0% multilib 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% 错误:数据库 ‘core‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘extra‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘community‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib-testing‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib‘ 无效 (无效或已损坏的数据库 (PGP 签名)) # pacman -S bash 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:数据库 ‘core‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘extra‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘community‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib-testing‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib‘ 无效 (无效或已损坏的数据库 (PGP 签名)) # pacman -Su 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:数据库 ‘core‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘extra‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘community‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib-testing‘ 无效 (无效或已损坏的数据库 (PGP 签名)) 错误:数据库 ‘multilib‘ 无效 (无效或已损坏的数据库 (PGP 签名))
均报错GPGME error,在https://bbs.archlinux.org/viewtopic.php?pid=1115667这个帖子中,找到了解决办法:
It would be strange that you still get pgp signature error when you‘ve put "SigLevel = Never". Try doing a full database sync again (pacman -Syy). Burninate!
在五楼提到:在你设置了SigLevel = Never后仍产生了一个PGP签名错误,这很奇怪。尝试在做一次完全数据库同步 (pacman -Syy)
# pacman -Syy 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 :: 正在同步软件包数据库... core 111.7 KiB 1315K/s 00:00 [######################] 100% extra 1614.0 KiB 2.08M/s 00:01 [######################] 100% community 2.2 MiB 5.80M/s 00:00 [######################] 100% multilib-testing 6.4 KiB 0.00B/s 00:00 [######################] 100% multilib 116.0 KiB 1333K/s 00:00 [######################] 100% [root@Li lonewolf]# pacman -Syu :: 正在同步软件包数据库... core 已经是最新版本 extra 已经是最新版本 community 已经是最新版本 multilib-testing 已经是最新版本 multilib 已经是最新版本 :: 正在进行全面系统更新...
问题解决。但是对于为什么发生这个错误依旧存在疑惑,时由于在/etc/pacman.conf中添加yaourt 源导致的吗?继续探索。。。
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。