美文网首页
rathat 8 安装软件时签名问题

rathat 8 安装软件时签名问题

作者: Tess鱼丸 | 来源:发表于2022-12-22 03:49 被阅读0次

今天在安装samba的时候遇到了这个问题。。。

(44/44): samba-client-libs-4.17.2-2.el8.x86_64.  43 kB/s | 5.0 MB     01:57    
--------------------------------------------------------------------------------
总计                                            100 kB/s |  19 MB     03:19     
警告:/var/cache/dnf/base-42fb0eff3ddd0a06/packages/libnetapi-4.17.2-2.el8.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 8483c65d: NOKEY
CentOS-8 - Base - mirrors.aliyun.com            413  B/s | 2.3 kB     00:05    
Status code: 404 for https://mirrors.aliyun.com/centos-stream/RPM-GPG-KEY-CentOS-Official (IP: 120.192.91.237)
下载的软件包保存在缓存中,直到下次成功执行事务。
您可以通过执行 'yum clean packages' 删除软件包缓存。
[root@localhost ~]# 

没有密钥
密钥 ID 8483c65d: NOKEY

先到次报错文件夹下,查看报错文件的Signature

[root@localhost ~]# cd /var/cache/dnf/base-42fb0eff3ddd0a06/packages/
[root@localhost packages]# 
[root@localhost packages]# rpm -qpi ./libnetapi-4.17.2-2.el8.x86_64.rpm
警告:./libnetapi-4.17.2-2.el8.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 8483c65d: NOKEY
Name        : libnetapi
Epoch       : 0
Version     : 4.17.2
Release     : 2.el8
Architecture: x86_64
Install Date: (not installed)
Group       : Unspecified
Size        : 489672
License     : GPLv3+ and LGPLv3+
Signature   : RSA/SHA256, 2022年11月23日 星期三 11时59分06秒, Key ID 05b555b38483c65d    #把这里的Key ID复制下来
Source RPM  : samba-4.17.2-2.el8.src.rpm
Build Date  : 2022年11月17日 星期四 12时11分05秒
Build Host  : x86-01.mbox.centos.org
Relocations : (not relocatable)
Packager    : CentOS Buildsys <bugs@centos.org>
Vendor      : CentOS
URL         : https://www.samba.org
Summary     : The NETAPI library
Description :
This contains the NETAPI library from the Samba suite.
[root@localhost packages]# ^C

这时候我们去公网的gpg key 服务器去下这个公钥下来试试看

[root@localhost ~]# gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 05b555b38483c65d
gpg: key 05B555B38483C65D: 1 signature not checked due to a missing key
gpg: /root/.gnupg/trustdb.gpg:建立了信任度数据库
gpg: 密钥 05B555B38483C65D:公钥“CentOS (CentOS Official Signing Key) <security@centos.org>”已导入
gpg: 没有找到任何绝对信任的密钥
gpg: 合计被处理的数量:1
gpg:           已导入:1
[root@localhost ~]# 

接下来安装操作执行!!!

[root@localhost ~]# cd /etc/rpm/
[root@localhost rpm]# 
[root@localhost rpm]# ls
macros.dist
[root@localhost rpm]# 
[root@localhost rpm]# 
[root@localhost rpm]# gpg -a --export --armor -o centos.key
[root@localhost rpm]# file centos.key
centos.key: PGP public key block Public-Key (old)
[root@localhost rpm]# rpm -qa gpg-pubkey*
[root@localhost rpm]# rpm --import ./centos.key 
[root@localhost rpm]# rpm -qa gpg-pubkey*
gpg-pubkey-8483c65d-5ccc5b19
[root@localhost rpm]# rpm -qi gpg-pubkey-8483c65d-5ccc5b19
Name        : gpg-pubkey
Version     : 8483c65d
Release     : 5ccc5b19
Architecture: (none)
Install Date: 2022年12月21日 星期三 14时41分42秒
Group       : Public Keys
Size        : 0
License     : pubkey
Signature   : (none)
Source RPM  : (none)
Build Date  : 2019年05月03日 星期五 11时15分37秒
Build Host  : localhost
Relocations : (not relocatable)
Packager    : CentOS (CentOS Official Signing Key) <security@centos.org>
Summary     : gpg(CentOS (CentOS Official Signing Key) <security@centos.org>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.14.2 (NSS-3)

mQINBFzMWxkBEADHrskpBgN9OphmhRkc7P/YrsAGSvvl7kfu+e9KAaU6f5MeAVyn
rIoM43syyGkgFyWgjZM8/rur7EMPY2yt+2q/1ZfLVCRn9856JqTIq0XRpDUe4nKQ
8BlA7wDVZoSDxUZkSuTIyExbDf0cpw89Tcf62Mxmi8jh74vRlPy1PgjWL5494b3X
5fxDidH4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xM5MaIk=
=w2wU
-----END PGP PUBLIC KEY BLOCK-----

[root@localhost rpm]# 

OK 接下来就可以安装啦~

yum install samba

[root@localhost ~]# yum install samba
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:0:19:21 前,执行于 2022年12月21日 星期三 14时25分22秒。
依赖关系解决。
================================================================================
 软件包                      架构        版本                   仓库       大小
================================================================================
安装:
 samba                       x86_64      4.17.2-2.el8           base      1.5 M

... ...

完毕!
[root@localhost ~]# 

相关文章

网友评论

      本文标题:rathat 8 安装软件时签名问题

      本文链接:https://www.haomeiwen.com/subject/wdzpqdtx.html