デーモン シェル スクリプトを Devian サーバーから RHEL 5 サーバーに移動しました。スクリプトはエラーをスローするようになりました:
E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed
スクリプトのエラーはここから来ているようです:
if ! [ -x "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed"
exit 1
fi
しかし、RHEL5 の lsb-base の新しいバージョンをインストールしようとすると、次のようになります。
[root@********** tmp]# rpm -ivh redhat-lsb-4.0-2.1.4.el5.i386.rpm
warning: redhat-lsb-4.0-2.1.4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 192a7d7d
Preparing... ########################################### [100%]
file /etc/redhat-lsb/lsb_start_daemon from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /etc/redhat-lsb/lsb_start_daemon from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
file /usr/sbin/redhat_lsb_trigger.i386 from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
同じバージョンの redhat-lsb-3.1-12.3.EL.i386.rpmまたはredhat-lsb-3.1-12.3.EL.x86_64.rpmでアップグレードしようとすると、次のようになります。
>> rpm -Uvh redhat-lsb-3.1-12.3.EL.x86_64.rpm
>> warning: redhat-lsb-3.1-12.3.EL.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
package redhat-lsb-3.1-12.3.EL.x86_64 is already installed
file /usr/sbin/redhat_lsb_trigger.x86_64 from install of redhat-lsb-3.1-12.3.EL.x86_64 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-3.1-12.3.EL.x86_64 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-3.1-12.3.EL.x86_64 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
システムに関する情報:
[root@*********** tmp]# cat /proc/version
Linux version 2.6.18-128.el5 (mockbuild@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Dec 17 11:41:38 EST 2008
[root@*********** tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
編集:yumがインストールされていないため、それを介してインストールしようとしませんでした。何か案が?
次のパッケージでも同じ問題が発生します。
- redhat-lsb-3.1-12.3.EL.i386.rpm
- redhat-lsb-3.1-12.3.EL.src.rpm
- redhat-lsb-3.1-12.3.EL.x86_64.rpm
- redhat-lsb-4.0-2.1.4.el5.i386.rpm
- redhat-lsb-4.0-2.1.4.el5.src.rpm
- redhat-lsb-4.0-2.1.4.el5.x86_64.rpm