LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Dependencies (https://www.linuxquestions.org/questions/linux-software-2/dependencies-4175615778/)

PatD 10-16-2017 04:34 PM

Dependencies
 
A bit fed up and discouraged here with Linux these days. Sorry about all the quotes, but I'm sinking here. The Interweb has been absolutely no help with this stuff.

I'm running Ubuntu mate 16.04 and really like it. But as with every distro, I'm having trouble installing software cuz "dependencies" and something wrong with dpkg.

Here are some errors:

From $ sudo apt update

Quote:

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/reposit.../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.
From $ sudo apt install openjdk-8-jdk

it ends with this error

Quote:

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)
And when I enter $ sudo aptitude update && sudo aptitude full-upgrade

I get this error at the end:

Quote:

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/reposit.../xUbuntu_16.04 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E3757B8E0D988D6E
W: The repository 'http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_16.04 Release' is not signed.
W: Failed to fetch https//://deb.opera.com/opera-stable/dists/stable/InRelease:
E: Some index files failed to download. They have been ignored, or old ones used instead.
and $ sudo apt-get install -f ends like this:

Quote:

Connecting to download.oracle.com (download.oracle.com)|209.148.200.26|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub...-linux-x64.bin [following]
--2017-10-16 17:17:55-- https://edelivery.oracle.com/otn-pub...-linux-x64.bin
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2600:1407:9:380::2d3e, 2600:1407:9:393::2d3e, 104.93.179.190
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2600:1407:9:380::2d3e|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/j...d034f821997450 [following]
--2017-10-16 17:17:56-- http://download.oracle.com/otn-pub/j...d034f821997450
Connecting to download.oracle.com (download.oracle.com)|209.148.200.26|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-10-16 17:17:57 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)
devlin@MainBox:~$ sudo apt-get build-dep build-essentials
Reading package lists... Done
Can somebody tell me what is wrong here? Have I done something stupid?

Is there any way to load all these dependencies up so as to avoid these nonsensical issues?

Later:
I just tried to reinstall "dpkg" and got this error:

Quote:

E: oracle-java6-installer: subprocess installed post-installation script returned error exit status 1
E: atunes: dependency problems - leaving unconfigured
So if all these issues are about that damn Oracle stuff, what can I do about it? Anyone, please?

wpeckham 10-16-2017 08:33 PM

If I had to guess, I would say that it looks as if someone has corrupted your sources. Editing the sources.list and either using the wrong editor (one that adds characters or 'signals' that are not proper text), or manually editing and entering a typo are common causes of these messages.

The information provided is not adequate to be certain, but that is what it looks like.

Have you manually edited or added any source files to add or change any repos?

Have you made non-standard modifications to python or apt?

PatD 10-17-2017 11:46 AM

No editing of any kind on my part.
I had some weird problems with trying to install atunes with a deb, it was missing Oracle Java6 dependencies.
After I tried installing with gdebi it worked (I've lost the post that suggested that) but everything else is screwed.
Removing/purging atunes did nothing for this.

A bit lost here.

ondoho 10-17-2017 12:38 PM

Quote:

Originally Posted by PatD (Post 5770972)
No editing of any kind on my part.

hmmm...
:confused:

anyhow, we need to see those sources:
Code:

cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*


PatD 10-17-2017 05:15 PM

When I looked into the Software "Other Sources" I saw that everything was checked, including all the sources; I don't think I did that, not intentionally, anyway.
Would that be part of the problem?

Quote:

$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu-MATE 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main multiverse restricted universe
# deb cdrom:[Ubuntu-MATE 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ precise partner
deb-src http://archive.canonical.com/ precise partner
Quote:

$ cat /etc/apt/sources.list.d/*
deb http://ppa.launchpad.net/costales/anoise/ubuntu xenial main
deb-src http://ppa.launchpad.net/costales/anoise/ubuntu xenial main
deb http://ppa.launchpad.net/costales/anoise/ubuntu xenial main
deb-src http://ppa.launchpad.net/costales/anoise/ubuntu xenial main
deb http://repo.sinew.in/ stable main
deb http://repo.sinew.in/ stable main
deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main
deb-src http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main
deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main
deb-src http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main
deb-src http://ppa.launchpad.net/jtaylor/keepass/ubuntu xenial main
deb http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main
deb-src http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main
deb-src http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main
deb http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main
deb-src http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main
deb-src http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main
deb [arch=i386,amd64] http://apt.nylas.com/ubuntu vivid main
deb [arch=i386,amd64] http://apt.nylas.com/ubuntu vivid main
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb https//:deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb https//:deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/stellarium/...eleases/ubuntu xenial main
deb-src http://ppa.launchpad.net/stellarium/...eleases/ubuntu xenial main
deb http://ppa.launchpad.net/stellarium/...eleases/ubuntu xenial main
deb-src http://ppa.launchpad.net/stellarium/...eleases/ubuntu xenial main
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/ubuntu-desk...tu-make/ubuntu xenial main
deb-src http://ppa.launchpad.net/ubuntu-desk...tu-make/ubuntu xenial main
deb http://ppa.launchpad.net/ubuntu-desk...tu-make/ubuntu xenial main
deb-src http://ppa.launchpad.net/ubuntu-desk...tu-make/ubuntu xenial main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://repo.vivaldi.com/stable/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://repo.vivaldi.com/stable/deb/ stable main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main

snowday 10-17-2017 06:24 PM

Your biggest problem is Java 6, totally unsupported in Ubuntu Xenial! Why??

Another error is caused by the repository http://download.opensuse.org/reposit.../xUbuntu_16.04 which, from what I can tell, provides the dukto package. Unless this software is mission-critical, I recommend to disable this repository and try the upgrade again.

There is, however, another potential big problem: I see that you have software sources for at least three different Ubuntu releases: xenial, vivid, and precise. This is like trying to fix a 2016 car with spare parts from a 2012 car--it might work (but it probably won't, and might make the car undrivable). A common way this situation happens is when a user follows random out-of-date tutorials without fully realizing the consequences to their system.

Therefore I recommend carefully trimming your software sources back to only the official Ubuntu Xenial repositories. Disable all third party repositories, as well as all repositories for the wrong Ubuntu release (vivid, precise, etc., anything except xenial). Abandon the thought of running Java 6. Then try your upgrade again. It is possible (but not guaranteed) that your Ubuntu OS will be able to recover from this mess.

PatD 10-17-2017 09:14 PM

Wonderful! :hattip:

It seems you hit it. I went into sources.list and sources.list.d and edited out all the lines that showed as repeats in one of the error messages. I also, as you suggested, trimmed the sources right back, including removing the Opera one, as it would never update anyway.

All seems to be good there, but if I run the fix in the software boutique for interrupted packages, it throws up that java6 stuff again. (I figure that's a good way to find problems, right?)

Why is it doing that? And how do I get of it if it's an interrupted package?

Oh, my. I just figured it out - although I tried it a while ago and it didn't work. First I ran auto-remove to see what the package name was, then I ran "sudo apt purge oracle-java6-installer" and then "autoremove" worked, and everything is copacetic!

Huge Thanks! (and how to mark SOLVED?)

ondoho 10-18-2017 01:30 AM

Quote:

Originally Posted by PatD (Post 5771114)
(and how to mark SOLVED?)

http://dt.iki.fi/stuff/solved-lq.png


All times are GMT -5. The time now is 09:17 PM.