Probleme mit eigenem Debian-Repository (Jessie vs. Stretch)

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
owl102

Probleme mit eigenem Debian-Repository (Jessie vs. Stretch)

Beitrag von owl102 » 26.01.2018 16:20:33

Ich habe gemäß https://wiki.debianforum.de/Lokales_Repository ein einfaches Repository der Struktur

Code: Alles auswählen

dists/jessie/xxx/binary-all
dists/jessie/xxx/binary-i386
dists/stretch/xxx/binary-all
dists/stretch/xxx/binary-i386
auf dem Server (CentOS 7) im LAN/Intranet angelegt, mit jeweils einer "Packages.gz", aber ohne "Release".

Ich kann es mit folgender Zeile in /etc/apt/sources.list verwenden:

Code: Alles auswählen

deb [ trusted=yes ] http://servername/ jessie xxx
bzw.

Code: Alles auswählen

deb [ trusted=yes ] http://servername/ stretch xxx
ABER:
Während bei Stretch (i386) alles wunderbar funktioniert, ignoriert Jessie (i386) die Dateien im Zweig "binary-all". Nur, wenn ich die Pakete von dort in die Generierung von "binary-i386/Packages.gz" mit einbeziehe, findet er die Pakete.

Hat jemand eine Idee warum?
Zuletzt geändert von owl102 am 29.01.2018 18:32:49, insgesamt 1-mal geändert.

Benutzeravatar
Blackbox
Beiträge: 4289
Registriert: 17.09.2008 17:01:20
Lizenz eigener Beiträge: GNU Free Documentation License

Re: Probleme mit eigenem Debian-Repository (Jessie vs. Stretch)

Beitrag von Blackbox » 27.01.2018 09:00:07

Beginnen wir einmal mit der wahrscheinlichsten Fehlerquelle den Berechtigungen.
Sind die Berechtigungen im Zweig "binary-all" gleich zu den anderen Repo-Pfaden?

Gibt es ein Logfile, wenn ja, was sagt dieses?
Eigenbau PC: Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Desktop PC: Dell Inspiron 530 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Notebook: TUXEDO BU1406 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Alles Minimalinstallationen und ohne sudo/PA/PW.
Rootserver: Rocky Linux 9.3 - Kernel: 5.14

Freie Software unterstützen, Grundrechte stärken!

owl102

Re: Probleme mit eigenem Debian-Repository (Jessie vs. Stretch)

Beitrag von owl102 » 27.01.2018 14:15:37

Blackbox hat geschrieben: ↑ zum Beitrag ↑
27.01.2018 09:00:07
Sind die Berechtigungen im Zweig "binary-all" gleich zu den anderen Repo-Pfaden?
Ja.

Da die Pakete im "jessie" und "stretch"-Zweig (zur Zeit noch) identisch sind, habe ich auch schon "jessie" unter Stretch und "stretch" unter Jessie probiert, um solche Probleme auszuschließen. Stretch kommt mit "binary-all" in "jessie" und "stretch" prima klar, nur Jessie mit beiden nicht. Es scheint den Zweig "binary-all" grundsätzlich einfach zu ignorieren, deswegen hatte ich gehofft, ich hätte einen dummen und offensichtlichen Fehler gemacht. (Dieses ist mein allererstes Debian-Repository, was ich aufsetze.)
Gibt es ein Logfile, wenn ja, was sagt dieses?
Mit dem Loggen/Debuggen von apt bzw. apt-get habe ich mich noch gar nicht beschäftigt. Ich werde das dieses Wochenende nachholen und am Montag berichten.

owl102

Re: Probleme mit eigenem Debian-Repository (Jessie vs. Stretch)

Beitrag von owl102 » 29.01.2018 18:28:13

Code: Alles auswählen

root@debian8:# apt-get --print-uris update
'http://server/dists/jessie/xxx/binary-i386/Packages.bz2' abm26_dists_jessie_custom_binary-i386_Packages 0 :
'http://server/dists/jessie/xxx/i18n/Translation-de_DE.bz2' abm26_dists_jessie_custom_i18n_Translation-de%5fDE 0 :
'http://server/dists/jessie/xxx/i18n/Translation-de.bz2' abm26_dists_jessie_custom_i18n_Translation-de 0 :
'http://server/dists/jessie/xxx/i18n/Translation-en.bz2' abm26_dists_jessie_custom_i18n_Translation-en 0 :
'http://server/dists/jessie/InRelease' abm26_dists_jessie_InRelease 0 
'http://security.debian.org/dists/jessie/updates/main/source/Sources.bz2' security.debian.org_dists_jessie_updates_main_source_Sources 0 :
'http://security.debian.org/dists/jessie/updates/main/binary-i386/Packages.bz2' security.debian.org_dists_jessie_updates_main_binary-i386_Packages 0 :
'http://security.debian.org/dists/jessie/updates/main/i18n/Translation-de_DE.bz2' security.debian.org_dists_jessie_updates_main_i18n_Translation-de%5fDE 0 :
'http://security.debian.org/dists/jessie/updates/main/i18n/Translation-de.bz2' security.debian.org_dists_jessie_updates_main_i18n_Translation-de 0 :
'http://security.debian.org/dists/jessie/updates/main/i18n/Translation-en.bz2' security.debian.org_dists_jessie_updates_main_i18n_Translation-en 0 :
'http://security.debian.org/dists/jessie/updates/InRelease' security.debian.org_dists_jessie_updates_InRelease 0 
'http://debian.tu-bs.de/debian/dists/jessie/main/source/Sources.bz2' debian.tu-bs.de_debian_dists_jessie_main_source_Sources 0 :
'http://debian.tu-bs.de/debian/dists/jessie/main/binary-i386/Packages.bz2' debian.tu-bs.de_debian_dists_jessie_main_binary-i386_Packages 0 :
'http://debian.tu-bs.de/debian/dists/jessie/main/i18n/Translation-de_DE.bz2' debian.tu-bs.de_debian_dists_jessie_main_i18n_Translation-de%5fDE 0 :
'http://debian.tu-bs.de/debian/dists/jessie/main/i18n/Translation-de.bz2' debian.tu-bs.de_debian_dists_jessie_main_i18n_Translation-de 0 :
'http://debian.tu-bs.de/debian/dists/jessie/main/i18n/Translation-en.bz2' debian.tu-bs.de_debian_dists_jessie_main_i18n_Translation-en 0 :
'http://debian.tu-bs.de/debian/dists/jessie/InRelease' debian.tu-bs.de_debian_dists_jessie_InRelease 0 
'http://debian.tu-bs.de/debian/dists/jessie-updates/main/source/Sources.bz2' debian.tu-bs.de_debian_dists_jessie-updates_main_source_Sources 0 :
'http://debian.tu-bs.de/debian/dists/jessie-updates/main/binary-i386/Packages.bz2' debian.tu-bs.de_debian_dists_jessie-updates_main_binary-i386_Packages 0 :
'http://debian.tu-bs.de/debian/dists/jessie-updates/main/i18n/Translation-de_DE.bz2' debian.tu-bs.de_debian_dists_jessie-updates_main_i18n_Translation-de%5fDE 0 :
'http://debian.tu-bs.de/debian/dists/jessie-updates/main/i18n/Translation-de.bz2' debian.tu-bs.de_debian_dists_jessie-updates_main_i18n_Translation-de 0 :
'http://debian.tu-bs.de/debian/dists/jessie-updates/main/i18n/Translation-en.bz2' debian.tu-bs.de_debian_dists_jessie-updates_main_i18n_Translation-en 0 :
'http://debian.tu-bs.de/debian/dists/jessie-updates/InRelease' debian.tu-bs.de_debian_dists_jessie-updates_InRelease 0 
Wie man sieht, versucht Jessie nicht einmal, auf binary-all zuzugreifen. Die Apache-Logs auf dem Server bestätigen das.

owl102

Re: Probleme mit eigenem Debian-Repository (Jessie vs. Stretch)

Beitrag von owl102 » 30.01.2018 13:13:51

Hier mal Debian Stretch im Vergleich, mit exakt demselben Repository auf dem lokalen Server:

Code: Alles auswählen

root@debian9:# apt-get --print-uris update
'http://server/dists/jessie/InRelease' server_dists_stretch_InRelease 0 
'http://server/dists/jessie/xxx/binary-i386/Packages.xz' server_dists_stretch_xxx_binary-i386_Packages 0 
'http://server/dists/jessie/xxx/binary-all/Packages.xz' server_dists_stretch_xxx_binary-all_Packages 0 
'http://server/dists/jessie/xxx/i18n/Translation-de_DE.xz' server_dists_stretch_xxx_i18n_Translation-de%5fDE 0 
'http://server/dists/jessie/xxx/i18n/Translation-de.xz' server_dists_stretch_xxx_i18n_Translation-de 0 
'http://server/dists/jessie/xxx/i18n/Translation-en.xz' server_dists_stretch_xxx_i18n_Translation-en 0 
'http://security.debian.org/debian-security/dists/stretch/updates/InRelease' security.debian.org_debian-security_dists_stretch_updates_InRelease 0 
'http://security.debian.org/debian-security/dists/stretch/updates/main/source/Sources.xz' security.debian.org_debian-security_dists_stretch_updates_main_source_Sources 0 
'http://security.debian.org/debian-security/dists/stretch/updates/main/binary-i386/Packages.xz' security.debian.org_debian-security_dists_stretch_updates_main_binary-i386_Packages 0 
'http://security.debian.org/debian-security/dists/stretch/updates/main/binary-all/Packages.xz' security.debian.org_debian-security_dists_stretch_updates_main_binary-all_Packages 0 
'http://security.debian.org/debian-security/dists/stretch/updates/main/i18n/Translation-de_DE.xz' security.debian.org_debian-security_dists_stretch_updates_main_i18n_Translation-de%5fDE 0 
'http://security.debian.org/debian-security/dists/stretch/updates/main/i18n/Translation-de.xz' security.debian.org_debian-security_dists_stretch_updates_main_i18n_Translation-de 0 
'http://security.debian.org/debian-security/dists/stretch/updates/main/i18n/Translation-en.xz' security.debian.org_debian-security_dists_stretch_updates_main_i18n_Translation-en 0 
'http://debian.tu-bs.de/debian/dists/stretch/InRelease' debian.tu-bs.de_debian_dists_stretch_InRelease 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/InRelease' debian.tu-bs.de_debian_dists_stretch-updates_InRelease 0 
'http://debian.tu-bs.de/debian/dists/stretch/main/source/Sources.xz' debian.tu-bs.de_debian_dists_stretch_main_source_Sources 0 
'http://debian.tu-bs.de/debian/dists/stretch/main/binary-i386/Packages.xz' debian.tu-bs.de_debian_dists_stretch_main_binary-i386_Packages 0 
'http://debian.tu-bs.de/debian/dists/stretch/main/binary-all/Packages.xz' debian.tu-bs.de_debian_dists_stretch_main_binary-all_Packages 0 
'http://debian.tu-bs.de/debian/dists/stretch/main/i18n/Translation-de_DE.xz' debian.tu-bs.de_debian_dists_stretch_main_i18n_Translation-de%5fDE 0 
'http://debian.tu-bs.de/debian/dists/stretch/main/i18n/Translation-de.xz' debian.tu-bs.de_debian_dists_stretch_main_i18n_Translation-de 0 
'http://debian.tu-bs.de/debian/dists/stretch/main/i18n/Translation-en.xz' debian.tu-bs.de_debian_dists_stretch_main_i18n_Translation-en 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/main/source/Sources.xz' debian.tu-bs.de_debian_dists_stretch-updates_main_source_Sources 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/main/binary-i386/Packages.xz' debian.tu-bs.de_debian_dists_stretch-updates_main_binary-i386_Packages 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/main/binary-all/Packages.xz' debian.tu-bs.de_debian_dists_stretch-updates_main_binary-all_Packages 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/main/i18n/Translation-de_DE.xz' debian.tu-bs.de_debian_dists_stretch-updates_main_i18n_Translation-de%5fDE 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/main/i18n/Translation-de.xz' debian.tu-bs.de_debian_dists_stretch-updates_main_i18n_Translation-de 0 
'http://debian.tu-bs.de/debian/dists/stretch-updates/main/i18n/Translation-en.xz' debian.tu-bs.de_debian_dists_stretch-updates_main_i18n_Translation-en 0 

Antworten