修正されたrpmをインストールする際の問題

修正されたrpmをインストールする際の問題

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]#

ベストアンサー1

あなたのパッケージはであり...2.32.2-65.el7.1...、インストールされたパッケージはです ...2.32.2-65.el7_9.1...。同じバージョン番号を持つことは、おそらく同じソースパッケージから出てくるでしょう、おそらくあなたのパッケージも同じでしょう。

仕様ファイルの一部のバージョンの更新を見逃しているか、マクロがオフになっている可能性があります(distつまり、el7.1読み込む必要がある場合は読み取る必要がありel7_9.1ます。とにかく、少なくともバージョン(ここでは65)はアップストリームバージョンより後のバージョンでなければなりません。RPMデータベースの混乱を避けることができます(リリースパッケージはローカルバージョン+リリースと同じです。その他、インストール後は間違いなく楽しい花火になります。

おすすめ記事