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パスに移動する必要がある場合は、2つのオプションがあります。
リストされているすべてのプログラムはすでに標準のUbuntuシステムにインストールされているため、これらの依存
rpm
関係()を無視するように指示します。rpm --nodeps -i ...
(一致しない唯一のことはUbuntuにありますが、依存関係出力にあるgawk
ことです。安全のためにシンボリックリンクを作成するか、単に無視してJREスクリプトがそのパスをハードコードしないことを願っています。)/usr/bin/gawk
/bin/gawk
gawk
使用エイリアン(
sudo apt-get install alien
)は.rpm
ファイルを.deb
ファイルに変換します。これにより、依存関係を変更または変更することもできます。