Oracle Dependencies being a pain

Sorry about the quotes, but
I recently installed the atunes deb package, works fine. But I can’t install other stuff because i keep getting errors about sun-java stuff not installed.
Running apt-get update produces this error:

E: The method driver /usr/lib/apt/methods/https// could not be found.
W: http://archive.canonical.com/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: GPG error: http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_16.04  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E3757B8E0D988D6E
E: The repository 'http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_16.04  Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

When I try to install any java stuff, I get this:

 sudo apt install openjdk-8-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-8-jdk is already the newest version (8u131-b11-2ubuntu1.16.04.3).
openjdk-8-jdk set to manually installed.
The following packages were automatically installed and are no longer required:
  kde-l10n-engb linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
  linux-headers-4.10.0-33 linux-headers-4.10.0-33-generic
  linux-image-4.10.0-28-generic linux-image-4.10.0-33-generic
  linux-image-extra-4.10.0-28-generic linux-image-extra-4.10.0-33-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java6-installer (6u45-0~webupd8~8) ...
Downloading Oracle Java 6...
--2017-10-16 16:50:58--  http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving download.oracle.com (download.oracle.com)... 209.148.205.26, 209.148.205.27
Connecting to download.oracle.com (download.oracle.com)|209.148.205.26|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin [following]
--2017-10-16 16:50:58--  https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2600:140a:0:382::2d3e, 2600:140a:0:38c::2d3e, 104.93.179.190
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2600:140a:0:382::2d3e|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1508187179_d33e489dbbb0a5414cd46605dfabd601 [following]
--2017-10-16 16:50:59--  http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1508187179_d33e489dbbb0a5414cd46605dfabd601
Connecting to download.oracle.com (download.oracle.com)|209.148.205.26|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-10-16 16:51:00 ERROR 404: Not Found.

download failed
Oracle JDK 6 is NOT installed.
dpkg: error processing package oracle-java6-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of atunes:
 atunes depends on sun-java6-jre | sun-java6-jdk | openjdk-6-jre | openjdk-6-jdk; however:
  Package sun-java6-jre is not installed.
  Package sun-java6-jdk is not installed.
  Package openjdk-6-jre is not installed.
  Package oracle-java6-installer which provides openjdk-6-jre is not configured yet.
  Package openjdk-6-jdk is not installed.

dpkg: error processing package atunes (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 oracle-java6-installer
 atunes
E: Sub-process /usr/bin/dpkg returned an error code (1)

So the question is where do I find this “java-6” stuff?
And this error:

Package openjdk-6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However, the following packages replace it:
 Package openjdk-6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However, the following packages replace it:
  apt:i386 apt

Can someone explain this to me? This java stuff has suddenly come up and is interfering with all installs.

@dustpuppy Good luck on getting an explanation. In the meantime try the following command in terminal -

sudo update-alternatives --config java

For an explanation, see - https://stackoverflow.com/questions/44076790/ubuntu-16-04-oracle-jdk-9-is-not-installed Perhaps that’ll help.

Thanks.
This is what I got from that:

There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Nothing to configure.

Oh, well.

Perhaps you need to install Oracle’s present version ofJava. See -

Hi @dustpuppy, I’m guessing something had you install an openSUSE repository but the security key is lost or never done.

Based on the message I found this: https://software.opensuse.org/download.html?project=home:colomboem&package=dukto

Where it says “You can add the repository key…” may help with the instructions. This repository key may straighten things out - I’ll keep my fingers crossed.

I hope this page looks familiar and maybe you simply never added their key? I can’t vouch for the site at all.

I’m using version javac 1.8.0_131

So how do I completely remove all Oracle and Java stuff from this computer? The troubles started with the atunes deb package and I’m at the point of blowing the whoe thing away and trying another install.

But that doesn’t tell me what’s going on or why.

As suggested, I installed Oracle 8 apparently successfully, and then it said this:

"Connecting to download.oracle.com (download.oracle.com)|209.148.200.26|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-10-17 11:30:43 ERROR 404: Not Found.

download failed
Oracle JDK 6 is NOT installed.
dpkg: error processing package oracle-java6-installer (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up oracle-java8-set-default (8u144-1~webupd8~0) …
Errors were encountered while processing:
oracle-java6-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)"

So I think that puts me back to square 1 - I need Java6 for this.

Not worth the continued effort, so I shall no longer try to install “Atunes”

Thanks all for your help. :slight_smile:

Had a brainwave after some more searching - it was suggested elsewhere this was a “Sources” issue, and once I cleared that out by editing /etc/apt/sources.list I was able to see what was up.

I ran the auto-remove command, which gave me the exact name of the broken java6 package, which agreed to leave gracefully when I used purge.

No more software with dependency issues, no matter how good it looks. :innocent: