Problemas com RPM (JRE)

2

Estou tentando instalar um JRE no Ubuntu 10.04, mas falhei:

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

Como posso trabalhar com isso?

Editar : tentei a resposta de Riccardo , mas ainda não funciona:

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

Esses são apenas alguns dos erros:

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').
    
por oneat 30.09.2010 / 21:22

1 resposta

4

Como você está rodando o Ubuntu, não pode simplesmente instalar um JRE que vem dos repositórios do Ubuntu? Por exemplo, sudo apt-get install sun-java6-jre (que atualmente está na versão 6.20dlj-1ubuntu3 ).

Se você ainda precisa descer a rota de RPM, você tem duas opções:

  1. informe rpm para ignorar essas dependências ( rpm --nodeps -i ... ), pois todos os listados são programas que já estão instalados em um sistema Ubuntu padrão. (A única incompatibilidade é gawk , que é /usr/bin/gawk no Ubuntu, mas /bin/gawk na saída de dependência; você pode fazer link simbólico para estar no lado seguro ou apenas ignorá-lo e esperar que o Os scripts do JRE não codificam o caminho para gawk .

  2. Use estrangeiro ( sudo apt-get install alien ) para converter o .rpm arquivo em um .deb one; isso também deve corrigir dependências ou deixar você os corrige.

por 01.10.2010 / 12:11

Tags