RPM(JRE) 문제

RPM(JRE) 문제

Ubuntu 10.04에 JRE를 설치하려고 했지만 실패했습니다.

oneat@oneat-desktop:~/Downloads$ sudo rpm -i --force-debian jre-6u21-linux-i586.rpm
error: Failed dependencies:
    /bin/basename is needed by jre-1.6.0_21-fcs.i586
    /bin/cat is needed by jre-1.6.0_21-fcs.i586
    /bin/cp is needed by jre-1.6.0_21-fcs.i586
    /bin/gawk is needed by jre-1.6.0_21-fcs.i586
    /bin/grep is needed by jre-1.6.0_21-fcs.i586
    /bin/ln is needed by jre-1.6.0_21-fcs.i586
    /bin/ls is needed by jre-1.6.0_21-fcs.i586
    /bin/mkdir is needed by jre-1.6.0_21-fcs.i586
    /bin/mv is needed by jre-1.6.0_21-fcs.i586
    /bin/pwd is needed by jre-1.6.0_21-fcs.i586
    /bin/rm is needed by jre-1.6.0_21-fcs.i586
    /bin/sed is needed by jre-1.6.0_21-fcs.i586
    /bin/sort is needed by jre-1.6.0_21-fcs.i586
    /bin/touch is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/cut is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/dirname is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/expr is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/find is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/tail is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/tr is needed by jre-1.6.0_21-fcs.i586
    /usr/bin/wc is needed by jre-1.6.0_21-fcs.i586
    /bin/sh is needed by jre-1.6.0_21-fcs.i586

이 문제를 어떻게 해결할 수 있나요?


편집하다: 나는 노력했다리카르도의 대답, 하지만 여전히 작동하지 않습니다.

root@oneat-desktop:/home/oneat/Downloads/untitled folder# rpm --nodeps --force-debian -i jre.rpm
Unpacking JAR files...
    rt.jar...
    jsse.jar...
    charsets.jar...
    localedata.jar...
    plugin.jar...
    javaws.jar...
    deploy.jar...
[: 924: /usr/java/jre1.6.0_21: unexpected operator
[: 924: /usr/java/jre1.6.0_21: unexpected operator

다음은 오류 중 일부입니다.

dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/jre/usr/java/jre1.6.0_21/lib/i386/libj2gss.so (ELF format: 'elf32-i386'; RPATH: '/usr/java/jre1.6.0_21/lib/i386').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/jre/usr/java/jre1.6.0_21/lib/i386/libjava.so (ELF format: 'elf32-i386'; RPATH: '/usr/java/jre1.6.0_21/lib/i386').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/jre/usr/java/jre1.6.0_21/lib/i386/libjsoundalsa.so (ELF format: 'elf32-i386'; RPATH: '/usr/java/jre1.6.0_21/lib/i386').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libmawt.so needed by debian/jre/usr/java/jre1.6.0_21/lib/i386/libjawt.so (ELF format: 'elf32-i386'; RPATH: '/usr/java/jre1.6.0_21/lib/i386').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/jre/usr/java/jre1.6.0_21/lib/i386/libjawt.so (ELF format: 'elf32-i386'; RPATH: '/usr/java/jre1.6.0_21/lib/i386').

답변1

Ubuntu를 실행하고 있으므로 Ubuntu 저장소에서 JRE를 설치할 수 없습니까? 예를 들어 sudo apt-get install sun-java6-jre(현재 버전은 6.20dlj-1ubuntu3)입니다.

여전히 RPM 경로로 이동해야 하는 경우 두 가지 옵션이 있습니다.

  1. 나열된 모든 프로그램은 이미 표준 Ubuntu 시스템에 설치되어 있으므로 rpm이러한 종속성( )을 무시하도록 지시합니다 . rpm --nodeps -i ...(일치하지 않는 유일한 것은 Ubuntu에 있지만 종속성 출력에 있다는 gawk것 입니다 . 안전을 위해 심볼릭 링크를 만들거나 그냥 무시하고 JRE 스크립트가 해당 경로를 하드코딩하지 않기를 바랍니다. .)/usr/bin/gawk/bin/gawkgawk

  2. 사용외계인( sudo apt-get install alien)는 .rpm 파일을 .deb파일로 변환합니다. 이렇게 하면 종속성을 수정하거나 수정할 수도 있습니다.

관련 정보