![使用 alien 安装 JDK.rpm 文件](https://linux22.com/image/984789/%E4%BD%BF%E7%94%A8%20alien%20%E5%AE%89%E8%A3%85%20JDK.rpm%20%E6%96%87%E4%BB%B6.png)
答案1
首先阅读整个答案。第一部分显示你的错误和第二部分告诉你那alien
没有必要。
第一部分
用于-d
创建 DEB 文件
alien -d packagename.rpm
或者
alien packagename.rpm
来自外星人
-d, --to-deb
Make debian packages. This is the default.
-g, --generate
Generate a temporary directory suitable for building a package from,
but do not actually create the package. This is useful if you want to
move files around in the package before building it. The package can be
built from this temporary directory by running "debian/rules binary",
if you were creating a Debian package, or by running "rpmbuild -bb
<packagename>.spec" if you were creating a Red Hat package.
第二部分
要安装 Oracle Java,您不需要alien
RPM 文件。只需使用以下命令。
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer