Bug 34060 - Broken dists/Package file for net-installer: arch-all-packages not found
Broken dists/Package file for net-installer: arch-all-packages not found
Status: CLOSED DUPLICATE of bug 35537
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-1-errata
Assigned To: Philipp Hahn
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-05 15:30 CET by Philipp Hahn
Modified: 2015-05-05 15:39 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Fix dists/Packages generation (2.44 KB, patch)
2014-02-05 20:15 CET, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-02-05 15:30:00 CET
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)
Comment 1 Philipp Hahn univentionstaff 2014-02-05 20:15:21 CET
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.
Comment 2 Philipp Hahn univentionstaff 2015-04-23 14:56:44 CEST
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 ***
Comment 3 Stefan Gohmann univentionstaff 2015-05-05 15:39:04 CEST
(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.
Comment 4 Stefan Gohmann univentionstaff 2015-05-05 15:39:25 CEST
Nothing to release.