Dependency problems after live install


#1

After doing a fresh install from live, certain packages have unmet dependencies in the repos and give 404 errors. Examples are:

  • Emacs, chromium, openjdk, plantuml etc

The sources.list contents are:
deb https://repo.pureos.net/pureos/ amber main
deb https://repo.pureos.net/pureos/ amber-security main
deb https://repo.pureos.net/pureos/ amber-updates main

…and there are no files in the sources.list.d/ directory.

Emacs could get installed by not installing exim dependencies, but this “trick” does not work for other clients. Example for “plantuml”:

Err:1 https://repo.pureos.net/pureos amber-security/main amd64 openjdk-11-jre-headless amd64 11.0.4+11-1~deb10u1
404 Not Found [IP: 138.201.228.45 443]
Err:2 https://repo.pureos.net/pureos amber-security/main amd64 openjdk-11-jre amd64 11.0.4+11-1~deb10u1
404 Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/o/openjdk-11/openjdk-11-jre-headless_11.0.4+11-1~deb10u1_amd64.deb 404 Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/o/openjdk-11/openjdk-11-jre_11.0.4+11-1~deb10u1_amd64.deb 404 Not Found [IP: 138.201.228.45 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This is related to another post about emacs and exim, but that poster ended up installing debian instead so there was no resolution.


#2

Looking at the actual dependencies, plantuml is asking for openjdk 11.0.4, whereas the repo has 11.0.6.


#3

Not to insult your intelligence, but are you sure you’re connected to the internet?


#4

:slight_smile: Yes. Other deps are found.


#5

I’d try again later in the day then. If you’re connected and getting 404 errors then it looks like their server is down for some reason.


#6

Thing is, the server is there, it is not a “host not found”. It is the specific file version which is not found. There is a newer version there. So it is not network connectivity, it is not server down. It is a dependency version problem.


#7

At this moment only available options, from repository, are:
openjdk-11-jre_11.0.3+7-5_amd64.deb, 25-Jun-2019
openjdk-11-jre_11.0.6+10-1~deb10u1_amd64.deb, 20-Jan-2020 <-> Debian 10 (Buster)
openjdk-11-jre_11.0.6+10-2_amd64.deb, 17-Feb-2020 <-> Debian Sid

You noticed this already and to draw conclusion, move forward (with apt remove, apt update), will be easy for you. Reference: https://pkgs.org/download/openjdk-11-jre
IMO, current dependencies will not change but your source file (if not using: apt update, apt install plantuml), you might pick somewhere else (or change Linux distro).


#8

This can happen if you don’t do a “sudo apt update” before trying to install software.


#9

Apt update doesn’t help. The problem is not applications that are already installed (which I could remove and update) - these are applications that are not installed, and for some reason have dependencies to missing (old) versions. openjdk 11.0.6 is in the repo, but plantuml (not installed) is asking for 11.0.4.


#10

This: https://tracker.pureos.net/T881 is the issue which looks very similar, but was closed for some reason. Also, https://tracker.pureos.net/T785 is almost the same. Except running “sudo apt update” or “upgrade” or “full-upgrade” or “dist-upgrade” does not resolve it, nor does “–fix-missing”.


#11

My Debian 10.3. shows:

$ apt show plantuml
Package: plantuml
Version: 1:1.2018.13+ds-1

Latest PureOS-9.0-Gnome-Live Amber image is from 2020-03-04. I’d recommend to use it for the new install (and not the one older than the one from 2020-01-26) with hope this might help with issue you have, as you described it.


#12

Thanks, but I really still don’t understand. Why should the version of live image used to install PureOS matter in terms of what dependencies are used after one has installed and done a “sudo apt update”? This suggestion basically says to reinstall PureOS using a newer live image? BTW, my PureOS says the exact same version as your debian 10.3 for “apt show plantuml”.

Is there no easier way to get the dependencies updated?

I can see today that there are over 100 upgrades so I’ll check if today’s “sudo apt upgrade” fixes anything.

UPDATE: Yes, todays upgrade fixed this.