Univention Bugzilla – Bug 34060
Broken dists/Package file for net-installer: arch-all-packages not found
Last modified: 2015-05-05 15:39:25 CEST
univention-net-installer on UCS-3.2 with a local repository updated through univention-updater-net with repository/mirror/recreate_packages=no fails during debootstrap: # grep ^E /tmp/progress.log E: Couldn't download libpam-runtime # find -name libpam-runtime\* ./3.0/maintained/3.0-0/all/libpam-runtime_1.1.1-6.1.38.201110271214_all.deb ./3.1/maintained/component/3.1-0-errata/all/libpam-runtime_1.1.1-6.1.41.201301171014_all.deb ./3.1/maintained/3.1-1/all/libpam-runtime_1.1.1-6.1.41.201301171014_all.deb ./3.2/maintained/3.2-0/all/libpam-runtime_1.1.1-6.1.41.201301171014_all.deb # grep -o ' .*/libpam-runtime.*' 3.?/maintained/3.?-?/{dists/univention/main/binary-amd64,all,amd64}/Packages 3.0/maintained/3.0-0/dists/univention/main/binary-amd64/Packages: all/libpam-runtime_1.1.1-6.1.38.201110271214_all.deb 3.1/maintained/3.1-0/dists/univention/main/binary-amd64/Packages: all/libpam-runtime_1.1.1-6.1.38.201110271214_all.deb 3.2/maintained/3.2-0/dists/univention/main/binary-amd64/Packages: all/libpam-runtime_1.1.1-6.1.38.201110271214_all.deb 3.0/maintained/3.0-0/all/Packages: 3.0-0/all/libpam-runtime_1.1.1-6.1.38.201110271214_all.deb 3.1/maintained/3.1-1/all/Packages: 3.1-1/all/libpam-runtime_1.1.1-6.1.41.201301171014_all.deb Notice that the updater is only part of a patchlevel-release and not contained in 3.2. > ./modules/univention/updater/mirror.py#update_dists_files() > 189 »···if version.patchlevel == 0: Since the dists/*.Packages files are only generated for patchlevel=0 releases, the updated version from 3.1-1 / 3.2 is not includes in the dists-Packages files used by the net-installer. Then a second bug strikes, where only arch=(i386,amd64) paths are fixed, but not the all/ path: 213 »···subprocess.call('sed -re "s|^Filename: %s/|Filename: %s/%s/|" ... % ( 214 »···»···arch, prefix, arch, ...), shell=True)
Created attachment 5778 [details] Fix dists/Packages generation 1. Create dists/Packages file even for patchlevel releases, so updates therein are picked up for later releases. (FYI: the net-installer only used patchlevel=0 releases, but this simplifies doing the aggregation; otherwise we aggregate the packages by hand for each minor release. So it costs only space on the local repository server) 2. Always prefix filename with correct relative path to previous releases.
The generation of the dists/Packages files has been rewritten for Bug #35537. It now is generated correctly to work with debootstrap: # debootstrap --verbose ucs401 debootstrap file:///var/lib/univention-repository/mirror/4.0/maintained/4.0-1/ *** This bug has been marked as a duplicate of bug 35537 ***
(In reply to Philipp Hahn from comment #2) > The generation of the dists/Packages files has been rewritten for Bug #35537. > It now is generated correctly to work with debootstrap: > # debootstrap --verbose ucs401 debootstrap > file:///var/lib/univention-repository/mirror/4.0/maintained/4.0-1/ > > *** This bug has been marked as a duplicate of bug 35537 *** Yes it works now.
Nothing to release.