我修改了rpm包,它成功了,但是当我尝试通过rpm安装它时,我遇到了这个问题。
[root@vps8865 ~]# cd rpmbuild/
[root@vps8865 rpmbuild]# cd RPMS/
[root@vps8865 RPMS]# ls
x86_64
[root@vps8865 RPMS]# cd x86_64/
[root@vps8865 x86_64]# ls
libblkid-2.23.2-65.el7.1.x86_64.rpm libmount-devel-2.23.2-65.el7.1.x86_64.rpm libuuid-2.23.2-65.el7.1.x86_64.rpm util-linux-debuginfo-2.23.2-65.el7.1.x86_64.rpm
libblkid-devel-2.23.2-65.el7.1.x86_64.rpm libsmartcols-2.23.2-65.el7.1.x86_64.rpm libuuid-devel-2.23.2-65.el7.1.x86_64.rpm uuidd-2.23.2-65.el7.1.x86_64.rpm
libmount-2.23.2-65.el7.1.x86_64.rpm libsmartcols-devel-2.23.2-65.el7.1.x86_64.rpm util-linux-2.23.2-65.el7.1.x86_64.rpm
[root@vps8865 x86_64]# rpm -i util-linux-2.23.2-65.el7.1.x86_64.rpm
error: Failed dependencies:
libblkid = 2.23.2-65.el7.1 is needed by util-linux-2.23.2-65.el7.1.x86_64
libmount = 2.23.2-65.el7.1 is needed by util-linux-2.23.2-65.el7.1.x86_64
libsmartcols = 2.23.2-65.el7.1 is needed by util-linux-2.23.2-65.el7.1.x86_64
libuuid = 2.23.2-65.el7.1 is needed by util-linux-2.23.2-65.el7.1.x86_64
[root@vps8865 x86_64]#
[root@vps8865 x86_64]#
[root@vps8865 x86_64]#
[root@vps8865 x86_64]#
[root@vps8865 x86_64]#
[root@vps8865 x86_64]# yum install libsmartcols
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: pkg.adfinis.com
* epel: mirror.hostnet.nl
* extras: centos.mirror.net-d-sign.de
* updates: mirror.23m.com
Package libsmartcols-2.23.2-65.el7_9.1.x86_64 already installed and latest version
Nothing to do
[root@vps8865 x86_64]# yum install libuuid
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netzwerge.de
* epel: mirror.hostnet.nl
* extras: centos.mirror.net-d-sign.de
* updates: mirror.23m.com
Package libuuid-2.23.2-65.el7_9.1.x86_64 already installed and latest version
Nothing to do
[root@vps8865 x86_64]# yum install libmount
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: pkg.adfinis.com
* epel: mirror.hostnet.nl
* extras: centos.mirror.net-d-sign.de
* updates: mirror.23m.com
Package libmount-2.23.2-65.el7_9.1.x86_64 already installed and latest version
Nothing to do
[root@vps8865 x86_64]# yum install libblkid
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netzwerge.de
* epel: mirror.nl.leaseweb.net
* extras: centos.mirror.net-d-sign.de
* updates: mirror.23m.com
Package libblkid-2.23.2-65.el7_9.1.x86_64 already installed and latest version
Nothing to do
[root@vps8865 x86_64]#发布于 2021-08-23 22:32:56
您的包是...2.32.2-65.el7.1...,安装的包是...2.32.2-65.el7_9.1...。根据相同的版本号,它们可能来自相同的源包,您的也应该如此。
也许您错过了更新规范文件中的某个版本,或者您的dist宏关闭了(也就是说,当它应该是el7_9.1时它会读取el7.1。无论如何,至少发布(此处65)应该晚于上游发布,以避免RPM数据库混乱(发行包具有与本地不同的version+release,安装后肯定会为娱乐烟花制作)。
发布于 2021-08-23 21:26:02
您要么下载了一个旧的源rpm,要么没有应用所需的修补程序。从搜索一个比你拥有的更新的源rpm开始。
https://unix.stackexchange.com/questions/665963
复制相似问题