Есть у меня софтинка, которая перед исталяцией готовит себе chroot окружение, затем делает chroot и пытается оттуда установить RPM пакет, получаю ошибку:
rpm -U --nodeps --nopostun --nopreun /var/tmp/VRTSpbx_4657/VRTSpbx-1.5.0.6-6.RH_x86_64.rpm
error: /var/tmp/VRTSpbx_4657/VRTSpbx-1.5.0.6-6.RH_x86_64.rpm: Header SHA1 digest: BAD
error: /var/tmp/VRTSpbx_4657/VRTSpbx-1.5.0.6-6.RH_x86_64.rpm cannot be installedзапускаю из chroot
rpm -K VRTSpbx-1.5.0.6-6.RH_x86_64.rpm -vv
получаю:
##############
bash-4.1# rpm -K VRTSpbx-1.5.0.6-6.RH_x86_64.rpm -vv
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:mpool:joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: Expected size: 4672028 = lead(96)+sigs(180)+pad(4)+data(4671748)
D: Actual size: 4672028
VRTSpbx-1.5.0.6-6.RH_x86_64.rpm:
Header SHA1 digest: BAD
MD5 digest: BAD
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm
##############
Покидаю chroot и выполняю ту же команду:
[root@rhelas62 qwwww]# rpm -K VRTSpbx-1.5.0.6-6.RH_x86_64.rpm -vv
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:mpool:joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: Expected size: 4672028 = lead(96)+sigs(180)+pad(4)+data(4671748)
D: Actual size: 4672028
VRTSpbx-1.5.0.6-6.RH_x86_64.rpm:
Header SHA1 digest: OK (11bb787764f806ce31d453d218755e70216be106)
MD5 digest: OK (ad6a4a37a8da4e1b7487e9e83b0881a8)
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm
###############
Нету ошибок, т.е явно чо-то софтинка себе в окружение не дотянула, но вот ЧТО?
Порешалось установкой двух библиотеков.