Cannot install apps after attempted java install (SOLVED)
Posted: Wed Oct 05, 2016 2:15 am
Hi,
There is an app i want to try that requires Oracle's Java. I went to Oracle's site and saw they no longer have a .deb version. I downloaded the .rpm version and used alien --scripts to convert it to a .deb. After that, i used GDebi to install it.
The install failed. I did not take notes as to why because i just assumed the package did not install and that was that.
There is an old VirtualBox Windows XP image on my HD. I decided to just try the java app in a virtual machine.
However, Synaptic will not let me install VirtualBox because of errors from the attempted java install. It attempts to remove java, but returns error messages. So, the installation of any other software also fails.
I tried Fix Broken Packages with no luck.
Edit: I tried Reinstall with GDebi and Gdebi complains that the package is already installed. But, GDebi cannot remove it.
When I try various commands like:
root@mx0:~# update-alternatives --display java
java - auto mode
link currently points to /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - priority 1071
slave java.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/java.1.gz
Current 'best' version is '/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'.
root@mx0:~# java -version
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
root@mx0:~# which javaws
/usr/bin/javaws
it doesn't seem to show Oracle's java is installed.
I tried apt-get update, the apt-get upgrade. After it prompted me to remove java, this is the output:
...
1 not fully installed or removed.
After this operation, 129 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 226522 files and directories currently installed.)
Removing jre1.8.0-102 (1.8.0102-1) ...
find: `/usr/java/*': No such file or directory
/var/lib/dpkg/info/jre1.8.0-102.postrm: line 586: /usr/sbin/alternatives: No such file or directory
dpkg: error processing package jre1.8.0-102 (--remove):
subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
jre1.8.0-102
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don't really care if a few little bits of Oracle's Java are floating around my OS. They're probably harmless.
Is there a way to get Synaptic and apt-get to just ignore them? Otherwise, I won't be able to update my system anymore. A total reinstall will be necessary.
Or at this point, is a clean reinstall and starting over from scratch the best option?
This is MX-15 Modified using TDE. 64-bit.
Thanks :)
Edit: After searching some more, I tried this:
root@mx0:~# rm /var/cache/debconf/* as suggested here: http://askubuntu.com/questions/214081/d ... -trying-to
There is an app i want to try that requires Oracle's Java. I went to Oracle's site and saw they no longer have a .deb version. I downloaded the .rpm version and used alien --scripts to convert it to a .deb. After that, i used GDebi to install it.
The install failed. I did not take notes as to why because i just assumed the package did not install and that was that.
There is an old VirtualBox Windows XP image on my HD. I decided to just try the java app in a virtual machine.
However, Synaptic will not let me install VirtualBox because of errors from the attempted java install. It attempts to remove java, but returns error messages. So, the installation of any other software also fails.
I tried Fix Broken Packages with no luck.
Edit: I tried Reinstall with GDebi and Gdebi complains that the package is already installed. But, GDebi cannot remove it.
When I try various commands like:
root@mx0:~# update-alternatives --display java
java - auto mode
link currently points to /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - priority 1071
slave java.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/java.1.gz
Current 'best' version is '/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'.
root@mx0:~# java -version
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
root@mx0:~# which javaws
/usr/bin/javaws
it doesn't seem to show Oracle's java is installed.
I tried apt-get update, the apt-get upgrade. After it prompted me to remove java, this is the output:
...
1 not fully installed or removed.
After this operation, 129 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 226522 files and directories currently installed.)
Removing jre1.8.0-102 (1.8.0102-1) ...
find: `/usr/java/*': No such file or directory
/var/lib/dpkg/info/jre1.8.0-102.postrm: line 586: /usr/sbin/alternatives: No such file or directory
dpkg: error processing package jre1.8.0-102 (--remove):
subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
jre1.8.0-102
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don't really care if a few little bits of Oracle's Java are floating around my OS. They're probably harmless.
Is there a way to get Synaptic and apt-get to just ignore them? Otherwise, I won't be able to update my system anymore. A total reinstall will be necessary.
Or at this point, is a clean reinstall and starting over from scratch the best option?
This is MX-15 Modified using TDE. 64-bit.
Thanks :)
Edit: After searching some more, I tried this:
root@mx0:~# rm /var/cache/debconf/* as suggested here: http://askubuntu.com/questions/214081/d ... -trying-to