I'm using 14.04 on a VirtualBox 32 bit server. I am logged in as the sudo user.
I am trying to install Java 8. I downloaded the file jre-8u101-linux-i582.rpm and used FTP to put it in the directory /jre. I try using the command rpm -ivh jre-8u101-linux-i582.rpm to extract and install it. When I do I get the error "failed dependencies" and then a long list of files that it apparently cannot find even though when I check in the specified directories the files are indeed there. When I researched the problem most people just said to use apt install.
So I tried to do that. I did "apt-get update" then "apt-get install oracle-java8-installer". Then I got an error saying "unable to locate package oracle-java8-installer". So I tried "add-apt-repository ppa:webupd8team/java". This gives me the error "Cannot add PPA ... Please check that the PPA name or format is correct." So I tried "apt-get install --reinstall ca-certificates". According to most of the asks on here that should have worked. The actual process of the reinstall worked but it did not fix my problem. I also tried "-E add-apt-repository ppa:webupd8team/java" but that did not work and that shouldn't have applied anyway because I was not behind a proxy.
So I need a solution to either the first problem or the second. Any help would be appreciated.