Upgrade von 4.2-3 zu 4.2-4 schlägt fehl

Hallo Freunde,

das Upgrade von 4.2-3 zu 4.2-4 schlägt wiederholt fehl.
Da ich das Upgrade vor einigen Tagen auf einer Nicht-Produktivmaschine testete und es keinerlei Schwierigkeiten gab wollte ich nun gestern das Ganze auf der Produktivmaschine ausführen.

Leider bricht das Upgrade als fehlgeschlagen ab.

Verdächtig finde ich folgendes im Log.

22.05.18 22:39:59.972  DEBUG_INIT
**** Starting univention-updater with parameter=['/usr/share/univention-updater/univention-updater', 'net', '--updateto', '4.2-4', '--ignoressh', '--ignoreterm']
Version=4.2
Patchlevel=3
starting net mode
--->DBG:update_available(mode=net, cdrom_mount_point=/media/cdrom, iso=None)
Checking network repository
Update to = 4.2-4
**** Downloading scripts at Tue May 22 22:40:05 2018
**** Starting actual update at Tue May 22 22:40:10 2018
Running preup.sh script
Di 22. Mai 22:40:10 CEST 2018

HINT:
Please check the release notes carefully BEFORE updating to UCS 4.2-4:
 English version: https://docs.software-univention.de/release-notes-4.2-4-en.html
 German version:  https://docs.software-univention.de/release-notes-4.2-4-de.html

Please also consider documents of following release updates and
3rd party components.

Do you want to continue [Y/n]?
Custom preupdate script /var/lib/local-preup.sh not found
WARNING: skipped disk-usage-test as requested
Checking for package status: OK
Checking LDAP schema: 5b04802b OVER: Loading Translog Overlay
5b04802b OVER: db_init
5b04802b OVER: Configuring Translog Overlay
5b04802b OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener"
5b04802b OVER: db_close
5b04802b OVER: db_destroy
OK
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
W: Duplicate sources.list entry https://updates.software-univention.de/4.2/maintained/component/ 4.2-3-errata/all/ Packages (/var/lib/apt/lists/updates.software-univention.de_4.2_maintained_component_4.2-3-errata_all_Packages)
W: Duplicate sources.list entry https://updates.software-univention.de/4.2/maintained/component/ 4.2-3-errata/amd64/ Packages (/var/lib/apt/lists/updates.software-univention.de_4.2_maintained_component_4.2-3-errata_amd64_Packages)
W: Duplicate sources.list entry https://updates.software-univention.de/4.2/unmaintained/component/ 4.2-3-errata/all/ Packages (/var/lib/apt/lists/updates.software-univention.de_4.2_unmaintained_component_4.2-3-errata_all_Packages)
W: Duplicate sources.list entry https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ bareos_20180116114559/all/ Packages (/var/lib/apt/lists/appcenter.software-univention.de_univention-repository_4.2_maintained_component_bareos%5f20180116114559_all_Packages)
W: Duplicate sources.list entry https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ bareos_20180116114559/amd64/ Packages (/var/lib/apt/lists/appcenter.software-univention.de_univention-repository_4.2_maintained_component_bareos%5f20180116114559_amd64_Packages)
W: Probieren Sie »apt-get update«, um diese Probleme zu korrigieren.
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Fehl file: ./ Packages

Fehl file: ./ Packages

Fehl file: ./ Packages

Fehl file: ./ Packages

Fehl file: ./ Packages
  Datei nicht gefunden

aber auch weiter unten.

W: Fehlschlag beim Holen von file:/var/cache/univention-system-setup/packages/./Packages  Datei nicht gefunden

E: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
** Starting: apt-get -s -o Debug::pkgProblemResolver=yes dist-upgrade
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
W: Duplicate sources.list entry https://updates.software-univention.de/4.2/maintained/component/ 4.2-3-errata/all/ Packages (/var/lib/apt/lists/updates.software-univention.de_4.2_maintained_component_4.2-3-errata_all_Packages)
W: Duplicate sources.list entry https://updates.software-univention.de/4.2/maintained/component/ 4.2-3-errata/amd64/ Packages (/var/lib/apt/lists/updates.software-univention.de_4.2_maintained_component_4.2-3-errata_amd64_Packages)
W: Duplicate sources.list entry https://updates.software-univention.de/4.2/unmaintained/component/ 4.2-3-errata/all/ Packages (/var/lib/apt/lists/updates.software-univention.de_4.2_unmaintained_component_4.2-3-errata_all_Packages)
W: Duplicate sources.list entry https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ bareos_20180116114559/all/ Packages (/var/lib/apt/lists/appcenter.software-univention.de_univention-repository_4.2_maintained_component_bareos%5f20180116114559_all_Packages)
W: Duplicate sources.list entry https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/ bareos_20180116114559/amd64/ Packages (/var/lib/apt/lists/appcenter.software-univention.de_univention-repository_4.2_maintained_component_bareos%5f20180116114559_amd64_Packages)
W: Probieren Sie »apt-get update«, um diese Probleme zu korrigieren.

Starting update process, this may take a while.
Check /var/log/univention/updater.log for more information.
Di 22. Mai 22:40:30 CEST 2018
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Fehl file: ./ Packages

Fehl file: ./ Packages

Fehl file: ./ Packages

Fehl file: ./ Packages

Fehl file: ./ Packages
  Datei nicht gefunden

Hat da jemand einen Reim drauf?

P.S. Die Datei “Packages” ist wirklich nicht vorhanden.
P.P.S. …und auch ein Ausführen von “apt-get update” ändert nichts am Verhalten.

Mfg,
Michael

Moin,

können Sie bitte mal den Inhalt all Ihrer Dateien aus /etc/apt/sources.list.d posten? Es sieht so aus, als gäbe es dort eine Quelle, die auf das lokale Verzeichnis /var/cache/univention-system-setup/packages zeigt.

Gruß
mosu

N’Abend,

dem ist auch ganz genau so, denn in /etc/apt/sources.list.d/05univention-system-setup.list steht folgendes drin:

deb [trusted=yes] file:/var/cache/univention-system-setup/packages/ ./

Warum ist diese Datei überhaupt in diesem Ordner? Auf dem Testsystem gibt es diese Quelle gar nicht.

Testsystem:

-rw-r--r-- 1 root root 5,2K Mai 19 13:02 15_ucs-online-version.list
-rw-r--r-- 1 root root 1,3K Mai 23 22:10 20_ucs-online-component.list
-rw-r--r-- 1 root root  661 Mai 19 13:01 60_bareos.list

Produktivsystem:

-rw------- 1 root root  795 Mai 22 22:40 00_ucs_temporary_installation.list
-rw-r--r-- 1 root root   71 Apr 24  2015 05univention-system-setup.list
-rw-r--r-- 1 root root 4,9K Mai 20 22:19 15_ucs-online-version.list
-rw-r--r-- 1 root root 2,0K Mai 23 22:11 20_ucs-online-component.list
-rw-r--r-- 1 root root  661 Mär 14 22:19 60_bareos.list

Danke für die Mithilfe.

Mfg,
Michael

Huhu,

gute Frage. Mein Google-Fu lässt mich vermuten, dass die Datei nur während der Installation temporär existieren soll und am Ende der Installation gelöscht wird. In produktiven Systemen sollte sie nicht existieren.

Also: einfach löschen, Problem verschwunden.

Gruß
mosu

N’Abend,

habe ich auch genau so gemacht.
Danke für die Unterstützung.

Mfg,
Michael

Mastodon