You are not logged in.

#1 2021-09-10 16:30:05

theodore
Member
Registered: 2008-09-09
Posts: 151

[Solved] Problem refreshing pgp keys

Hi all,

I am trying to refresh my pgp keys by running the following command:

# pacman-key --refresh-keys --keyserver hkps://keyserver.ubuntu.com
...
...
...
gpg: error retrieving 'lizhaolong0123@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'su@sasasu.me' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 95FC83B3084A5ADD: "Sasasu <lizhaolong0123@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'i@sasa.su' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'su@sasasu.me' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'sasasu@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'lizhaolong0123@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 4E72AF09097DAE2E: no user ID for key signature packet of class 13
gpg: key 4E72AF09097DAE2E: no user ID for key signature packet of class 13
gpg: key 4E72AF09097DAE2E: no user ID for key signature packet of class 13
gpg: key 4E72AF09097DAE2E: 9 duplicate signatures removed
gpg: key 4E72AF09097DAE2E: 9 signatures reordered
gpg: key 4E72AF09097DAE2E: "Sasasu <i@sasa.su>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'skywol@qq.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 26D9876AC0719A0B: "Skywol (Skywol Alia) <skywol@qq.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'zhangjianqiu13@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key B012733142D79E59: "Jianqiu Zhang (VOID001's Master Key) <zhangjianqiu13@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'wenxuangm@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key CCAF35548C65530F: "Wenxuan Zhang <wenxuangm@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'xgdgsc@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 28D10C49A44F261E: "xgdgsc <xgdgsc@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'xuanwo.cn@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 0832F151DB0FB18E: "Xuanwo (The key to heart) <xuanwo.cn@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'yk@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 997995DF61A0959A: "Yk Elvis <yk@archlinuxcn.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'self@gimo.me' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'yuanji@douban.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key E8D79E63E3D142F3: "Yuanji <self@gimo.me>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'yyc1992@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'yuyichao@mit.edu' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'yyc_1992@126.com' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'yuyichao@pku.edu.cn' via WKD: End of file
gpg: error reading key: End of file
gpg: error retrieving 'yichaoyu@g.harvard.edu' via WKD: Network error
gpg: error reading key: Network error
gpg: error retrieving 'yuyichao@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 07F45E2A1937DD32: "Yichao Yu <yyc1992@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'ownbyzjuyk@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key F84D36A73BF39DC8: "zjuyk (Creat at 2021-01-23) <ownbyzjuyk@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'zsrkmyn@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'zsrkmyn@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 34908FFBC0BFAC35: 4 signatures not checked due to missing keys
gpg: key 34908FFBC0BFAC35: "Stephen Zhang (lazy...) <zsrkmyn@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'i@axionl.me' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'axionl@aosc.io' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'i@axionl.me' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key B9E701221C820178: no user ID
gpg: Total number processed: 1
==> ERROR: Could not update key: B9E701221C820178
gpg: error retrieving 'axionl@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'i@axionl.me' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'axionl@aosc.io' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'innaxionl@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 3CD72EBFE6DE17D8: "ArielAxionL <axionl@archlinuxcn.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'cvhc@mail.ustc.edu.cn' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'cuihao.leo@gmail.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 8FDE3D8FC99F40AE: "CUI Hao (cvhc) <cvhc@mail.ustc.edu.cn>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'skywol@qq.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key EF50AB125C83BB2D: "Skywol (Skywol Alia) <Skywol@qq.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'tobiichiamane@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'sa@axionl.me' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'sa@amane.live' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'tobiichiamane@outlook.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 96D6420DD2E3A1F0: "Sakuraba Amane <tobiichiamane@archlinuxcn.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'tobiichiamane@outlook.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 2D1E72461CCBBA98: "Sakuraba Amane <tobiichiamane@outlook.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'tobiichiamane@archlinuxcn.org' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'sa@axionl.me' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'sa@amane.live' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving 'tobiichiamane@outlook.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key BF971BB9D4D40A3B: "Sakuraba Amane <tobiichiamane@archlinuxcn.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'i@jingbei.li' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 7931B6D628C8D3BA: "Jingbei Li <i@jingbei.li>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: key 50FB9B273A9D0BB5: "Johannes Löthberg <johannes@kyriasis.com>" not changed
gpg: key 208F4A2651787967: "Johannes Löthberg <johannes@kyriasis.com>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   rsa8192 2014-01-14 [SC] [expires: 2022-02-03]
      5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5
uid           [  full  ] Johannes Löthberg <johannes@kyriasis.com>
uid           [ unknown] Johannes Löthberg <demize@archlinux.org>
sub   rsa8192 2014-01-14 [E] [expires: 2022-02-03]
sub   rsa8192 2014-09-21 [S] [expires: 2022-02-03]

gpg: key F3E1D5C5D30DB0AD: "Andrea Scarpino <me@andreascarpino.it>" not changed
gpg: key 918F7DDFFD8D0B6E: "Andrea Scarpino <me@andreascarpino.it>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   rsa2048 2011-04-19 [SC]
      4FCF887689C41B09506BE8D5F3E1D5C5D30DB0AD
uid           [ unknown] Andrea Scarpino <me@andreascarpino.it>
uid           [ unknown] Andrea Scarpino (KDE) <scarpino@kde.org>
uid           [marginal] Andrea Scarpino (Arch Linux) <andrea@archlinux.org>

gpg: key 7AFF7601AB2707F9: "<yebenmy@protonmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2016-12-05 [SC]
      9D125CEE288467B493D6FD937AFF7601AB2707F9
uid           [ unknown] <yebenmy@protonmail.com>
sub   rsa2048 2016-12-05 [E]

gpg: key 99AEEB49FFA0989E: "kenookamihoro@protonmail.ch <kenookamihoro@protonmail.ch>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2018-04-08 [SC]
      F204B08199D53B28BF94066E99AEEB49FFA0989E
uid           [ unknown] kenookamihoro@protonmail.ch <kenookamihoro@protonmail.ch>
sub   rsa2048 2018-04-08 [E]

However, as you can see many keys are returning an error. Most likely it is because they have been expired, I've tried to use another server like hkp://pool.sks-keyservers.net but I am getting similar errors. Any idea how to resolve this.

Thanks.

Last edited by theodore (2021-09-13 08:29:54)

Offline

#2 2021-09-10 19:11:24

loqs
Member
Registered: 2014-03-06
Posts: 13,956

Re: [Solved] Problem refreshing pgp keys

Why do you believe the errors are because keys have expired?

gpg: error retrieving 'lizhaolong0123@gmail.com' via WKD: No data
gpg: error reading key: No data

Key could not be retrieved via WKD

gpg: error retrieving 'su@sasasu.me' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 95FC83B3084A5ADD: "Sasasu <lizhaolong0123@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Key could not be retrieved via WKD,  key was retrieved from keyserver had not changed,  local key not updated.

gpg: key 7AFF7601AB2707F9: "<yebenmy@protonmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2016-12-05 [SC]
      9D125CEE288467B493D6FD937AFF7601AB2707F9
uid           [ unknown] <yebenmy@protonmail.com>
sub   rsa2048 2016-12-05 [E]

gpg: key 99AEEB49FFA0989E: "kenookamihoro@protonmail.ch <kenookamihoro@protonmail.ch>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2018-04-08 [SC]
      F204B08199D53B28BF94066E99AEEB49FFA0989E
uid           [ unknown] kenookamihoro@protonmail.ch <kenookamihoro@protonmail.ch>
sub   rsa2048 2018-04-08 [E]

Are expired,  do you have any packages signed by those keys?

Offline

#3 2021-09-11 00:11:18

theodore
Member
Registered: 2008-09-09
Posts: 151

Re: [Solved] Problem refreshing pgp keys

loqs wrote:

Why do you believe the errors are because keys have expired?

Well this is one of the explanations that I've found when I was looking for a solution

Key could not be retrieved via WKD
Key could not be retrieved via WKD,  key was retrieved from keyserver had not changed,  local key not updated.

What does that mean and how could be solve, because I've seen others complaining for a similar error and they suggest to change keyserver but this did not help.

Are expired,  do you have any packages signed by those keys?

Well could be, but I did not get "not trusted" message regarding these keys. Actually what initiated to check on refreshing the keys was a package that I wanted to install and signed from the following key:

gpg: error retrieving 'i@jingbei.li' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 7931B6D628C8D3BA: "Jingbei Li <i@jingbei.li>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Thus, I've tried to refresh all the keys but still I cannot resolve the installation of the package.

checking package integrity                                                             [######################################################] 100%
error: brlcad: signature from "Jingbei Li <i@jingbei.li>" is unknown trust
:: File /var/cache/pacman/pkg/brlcad-7.32.4-1-x86_64.pkg.tar.zst 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.

Offline

#4 2021-09-11 00:14:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,679
Website

Re: [Solved] Problem refreshing pgp keys

brlcad is not an official package, and Jingbei Li is not Arch staff, so their key has nothing to do with pacman's keys.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2021-09-11 07:39:15

progandy
Member
Registered: 2012-05-17
Posts: 4,556

Re: [Solved] Problem refreshing pgp keys

What does that mean and how could be solve, because I've seen others complaining for a similar error and they suggest to change keyserver but this did not help.

gpg is configured to try to get the key from the email domain before trying the keyserver. If the domain does not provide the key, then an error is logged and the keyserver is asked for the key. That is all that happens and you do not have to change anything since the keyserver worked fine.


As for Jingbei Li's key, in case you use an unofficial repository with signed packages you'll have to choose to trust the packagers. Either there is an additional keyring package for you to install or you have to manually trust them. If you do not trust them remove the repository.
https://wiki.archlinux.org/title/Pacman … icial_keys

Last edited by progandy (2021-09-11 07:48:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2021-09-13 08:29:28

theodore
Member
Registered: 2008-09-09
Posts: 151

Re: [Solved] Problem refreshing pgp keys

Thanks.

Offline

Board footer

Powered by FluxBB