2014-07-10 14 views
-1

데비안 서버에서 RHEL 5 서버로 데몬 쉘 스크립트를 이동했습니다.RHEL 5 용 redhat-lsb 패키지를 설치하거나 업데이트 할 수 없습니다.

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 기반의 최신 버전을 설치 스크립트는 이제 오류가 발생합니다 다음

[[email protected]********** 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 

내가 같은 버전 레드햇-LSB-3.1-12.3.EL.i386.rpm 또는 레드햇-LSB-3.1-으로 업그레이드 할 때

시스템에 대한
>> 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 

정보 :

[[email protected]*********** tmp]# cat /proc/version 
Linux version 2.6.18-128.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Dec 17 11:41:38 EST 2008 
[[email protected]*********** tmp]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.3 (Tikanga) 

편집 : 나는 그것을 설치하려고하지 않았는지 설치된 냠이 없습니다, 그건 12.3.EL.x86_64.rpm 나는 것을 얻을 그것을 통해. 아이디어가 있으십니까?

같은 문제는 다음과 같은 패키지 발생

  • 레드햇-LSB-3.1-12.3.EL.i386.rpm
  • 레드햇-LSB-3.1-12.3.EL.src.rpm
  • 레드햇-LSB-3.1-12.3.EL.x86_64.rpm
  • 레드햇-LSB-4.0-2.1.4.el5.i386.rpm
  • 레드햇-LSB-4.0-2.1.4.el5.src.rpm
  • redhat-lsb-4.0-2.1.4.el5.x86_64.rpm

답변

0

i386 아키텍처 용 RPM을 설치하려고했지만 시스템이 x86_64 인 것 같습니다.

- F 강제 패키지로 구성에게

--replacepkgs를 설치 : RPM을 매개 변수를 다음 redhat-lsb-4.0-2.1.4.el5.x86_64.rpm

+0

죄송합니다 내 원래의 게시물이 충분히 명확하지 않았다. 예, 당신이 말한 꾸러미로도 시험해 보았습니다.하지만 슬프게도 나는 같은 오류가납니다! 그래도 도와 ​​줘서 고마워! – gulden

0

를 사용하여 설치를 시도 그들 중 일부는 이미이 시스템에 설치되어있는 경우에도 패키지를 설치합니다.

--nodeps :이 명령 결의에게 오류의 유형을 사용하여 패키지

를 설치하거나 업그레이드하기 전에 종속성 검사를 수행하지 마십시오