linux - 无法安装或更新 RHEL 5 的 redhat-lsb 软件包

标签 linux redhat rhel rhel5 lsb

我将守护程序 shell 脚本从 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.rpmredhat-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

最佳答案

您似乎正在尝试安装适用于 i386 架构的 RPM,但您的系统是 x86_64。尝试安装redhat-lsb-4.0-2.1.4.el5.x86_64.rpm

关于linux - 无法安装或更新 RHEL 5 的 redhat-lsb 软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24677114/

相关文章:

linux - 如何在 Oracle Linux 6.4 x64 上安装 PostGIS?

c++ - 在 Xcode 中导入 C++ 项目

linux - 如何通过在 linux 中加载模块来终止进程?

git config core.fileMode false 不适用于 redhat git 1.7.1

linux - DOMJudge安装: compile script not generating proper permissions

linux - 使用 linux 镜像托管 3rd 方 RPM

linux - 循环中的 GREP 命令

linux - 如何让 Gradle 停止在 NTFS 驱动器上尝试 chmod MANIFEST.MF

elasticsearch - Kibana - 在/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js :355:15 30000ms 后请求超时

linux - OpenShift Online gears 中的根权限