First read the whole answer. The first part shows you your errors and the second part shows you that alien is not necessary.

First Part

Use -d to create a DEB file

alien -d packagename.rpm

or

alien packagename.rpm

from man alien

-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.

Second Part

To install Oracle Java you don't need alien and a RPM file. Simply use the following commands.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Answer from A.B. on askubuntu.com
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ linux_x64rpm_install.html
Linux 64-bit RPM Java installation instructions
Note: For downloading Java other flavors of Linux see Java for Ubuntu Java for Fedora ยท Follow these steps to download and install Java for Linux. ... This procedure installs the Java Runtime Environment (JRE) for 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location.
๐ŸŒ
The Geek Stuff
thegeekstuff.com โ€บ 2017 โ€บ 06 โ€บ java-8-jre-jdk-install
How to Install Java 8 JRE and JDK from RPM file on Linux
June 21, 2017 - Click on the radio-button that says: โ€œAccept License Agreementโ€. The radio button will disappear and youโ€™ll see this message: Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software. For 64-bit linux, download the jdk-8u131-linux-x64.rpm file, which is under โ€œLinux x64โ€ ยท for 32-bit linux, download the jdk-8u131-linux-i586.rpm file, which is under โ€œLinux x86โ€ ยท Install the Java 8 JDK on your system as shown below.
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ linux_rpm.html
What are the options for Java installed through RPM?
Type: rpm -Uvh <package-file> For example: for upgrade to Java 1.7.0, type: rpm -Uvh jre1.7.0 The vh options are used to provide the user with feedback during the installation process.
Find elsewhere
Top answer
1 of 2
6

RPM is Redhat, Fedore, CentOS so unusable.

You need, preferably, a DEB version or otherwise the tar.gz version.

I would advicw to use a personal archive as explained here:http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html

Install method for java 7:

su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer
exit

You can then install this...

sudo apt-get install oracle-java7-set-default

"To automatically set up the Java 7 environment variables"

2 of 2
1

Use the Java for Linux Platforms. Here are the download instructions There is a similar question on how to install JDK 7

Install the JRE

Download the 32bit or 64bit Linux "compressed binary file" - it has a ".tar.gz" file extension and uncompress it

tar -xvf jre-7-linux-i586.tar.gz

JRE 7 package is extracted into ./jre1.7.0 directory. Now move the JRE 7 directory to /usr/lib

sudo mv ./jre1.7.0* /usr/lib/jvm/jre1.7.0

Afterwards run the following to get a list of currently installed java alternatives

sudo update-alternatives --config java

You will get output as:

There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

Press enter to keep the current choice[*], or type selection number:

Remember the last number and press enter to exit this utility i.e. in this example remember the number 2.

If only one alternative is shown then remember the number 0

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 3

This will add your new JRE 7 installation into alternatives list i.e. use the remembered number + 1 i.e. 3 in the example above. Now configure java to use the Oracle Java JRE

sudo update-alternatives --config java

You will see output similar one below - choose the number of jre1.7.0 i.e. 3:

There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3 /usr/lib/jvm/jre1.7.0/jre/bin/java 3 manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/jre1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.

N.B. if there was no previous java installation then the new JRE will be the default and you will not see the above.

Check the version of you new JRE 7 installation:

java -version

Should produce

java version โ€œ1.7.0โ€
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode) 

Install the Firefox/Chrome plugin

In a terminal:

mkdir ~/.mozilla/plugins

Remove the IcedTea plugin, if it has been installed.

sudo apt-get remove icedtea6-plugin

Remove a former version of the Java plugin (may or may not be present)

rm ~/.mozilla/plugins/libnpjp2.so

Now you can install the plugin, by creating a symbolic link (you tell Firefox, where the plugin is located). For 32bit java use

ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so ~/.mozilla/plugins/

For 64bit java use

ln -s /usr/lib/jvm/jre1.7.0/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Confirm that the JRE has been successful by using the official oracle website.

SOURCE: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

๐ŸŒ
Oracle
oracle.com โ€บ java โ€บ technologies โ€บ javase-install-linux-rpm-32.html
JDK RPM Installation for Linux (32-bit)
This procedure installs the Java SE Runtime Environment for 32-bit Linux, using an RPM binary bundle. Some Linux distributions, such as Ubuntu, are not RPM-based.
๐ŸŒ
Oracle
docs.oracle.com โ€บ javase โ€บ โ€บ 9 โ€บ install โ€บ installation-jdk-and-jre-linux-platforms.htm
5 Installation of the JDK and JRE on Linux Platforms
To install the 64-bit JDK on an RPM-based Linux platform: Download the file, jdk-9.minor.security.patch_linux-x64_bin.rpm. Before you download a file, you must accept the license agreement. Ensure that you have root user access by running the command su and entering the superuser password.
๐ŸŒ
Oracle
oracle.com โ€บ java โ€บ technologies โ€บ java se
JDK RPM Installation for Linux (64-bit)
This procedure installs the Java Development Kit (JDK) for 64-bit Linux, using an RPM binary bundle. Some Linux distributions, such as Ubuntu, are not RPM-based.
๐ŸŒ
Oracle
oracle.com โ€บ java โ€บ technologies โ€บ javase-install-linux-rpm.html
JRE RPM Installation for Linux (32-bit)
jre-6u <version>-linux-i586-rpm.bin ... and check the file size. You can download to any directory that you can write to. Become root by running the su command and entering the root password. Extract and install the contents of the downloaded file....
๐ŸŒ
thecrystalclouds
thecrystalclouds.wordpress.com โ€บ 2012 โ€บ 05 โ€บ 18 โ€บ install-java-on-linux-using-rpm-files
Install JAVA on Linux using rpm files | thecrystalclouds
May 25, 2012 - Steps for installing JAVA (JDK 6) on linux using rpm files: 1. Log into the linux shell and become root user by running the command su โ€“i 2. Change directory. cd /opt 3. Please search at for newer โ€ฆ
๐ŸŒ
Adoptium
adoptium.net โ€บ installation โ€บ linux
Linux (RPM/DEB/APK) installer packages | Adoptium
This excludes GUI-related libraries such as AWT and reduces the overall installation footprint. ... Import the RPM repo as follows. RPMโ€™s are also available for SLES 12 and 15. To check the full list of versions supported take a look at ...
๐ŸŒ
IBM
ibm.com โ€บ docs โ€บ en โ€บ sdk-java-technology โ€บ 8
Installing from an RPM package (Linux only)
The RPM Package Manager installer packages are available as standard .rpm files, which can be installed interactively from the command line.
๐ŸŒ
Opensource.com
opensource.com โ€บ article โ€บ 19 โ€บ 11 โ€บ install-java-linux
How to install Java on Linux | Opensource.com
Java is now installed. If you download an RPM or DEB file from Azul.com, then you can use your package manager to install it. For Fedora, CentOS, RHEL, and similar, download the RPM and install it using DNF: ... For Debian, Ubuntu, Pop_OS, and similar distributions, download the DEB package and install it using Apt: