Bug 45896

Summary: Error: The repository 'cdrom://[UCS 4.3] ucs430 Release' does not have a Release file.
Product: UCS Reporter: Florian Best <best>
Component: UCS Installer - DVDAssignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Jürn Brodersen <brodersen>
Severity: normal    
Priority: P5 CC: gohmann, keiser
Version: UCS 4.3Keywords: interim-1
Target Milestone: UCS 4.3   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=33029
What kind of report is it?: Development Internal 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: 2017121921000229 Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 45950    

Description Florian Best univentionstaff 2017-12-19 13:14:09 CET
When installing from the latest UCS 4.3 DVD a regular configuration of a DC Master system fails:

Einrichten der Systemrolle: Fetching failed
Einrichten der Systemrolle: 
Einrichten der Systemrolle: Further information regarding this error:
Einrichten der Systemrolle: Error: The repository 'cdrom://[UCS Linux 4.3 GNU/Linux 4.3-0 _Ucs430_ - Official amd64 DVD Binary-1 20171218-21:22] ucs430 Release' does not have a Release file.
Comment 1 Stefan Gohmann univentionstaff 2017-12-19 19:59:06 CET
I've added a simple hack which should make the DVD trusted:
 https://git.knut.univention.de/univention/ucs/commit/fc53cd1617994dbfb4cbdc367b2ce3eebd5f89c2

Please remove the hack once the issue is fixed.
Comment 2 Stefan Gohmann univentionstaff 2017-12-19 21:59:16 CET
With my latest DVD build the name of the DVD changed. I guess, the DVD was build differently. Anyway, I changed the sed statement and it should work in both cases now:

https://git.knut.univention.de/univention/ucs/commit/d1d9b61cdff7df53dcb3fcd393535b3046e2ed6b
Comment 3 Philipp Hahn univentionstaff 2017-12-20 16:18:25 CET
9b9c208c6e Bug #45896 USS: Remove deprecated urandom handling 2
3b1c707be4 Bug #45896 USS: Remove deprecated urandom handling

Package: univention-system-setup
Version: 11.0.1-2A~4.3.0.201712191450
Version: 11.0.1-2A~4.3.0.201712191456
Branch: ucs_4.3-0

The bug is in python-apt:
$ python
>>> from apt import Cache
>>> cache = Cache()
>>> cache.update()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 464, in update
    raise FetchFailedException(e)
apt.cache.FetchFailedException: E:The repository 'cdrom://[UCS Linux 4.3 GNU/Linux 4.3-0 _Ucs430_ -
Official amd64 DVD Binary-1 20171219-16:32] ucs430 Release' does not have a Release file.
>>> from apt import apt_pkg
>>> print(apt_pkg.config.dump())
...
APT::Authentication::TrustCDROM "true";
Comment 4 Philipp Hahn univentionstaff 2017-12-22 15:11:26 CET
DVD builds with the hack, but the underlying in python-apt remains.
Comment 5 Jürn Brodersen univentionstaff 2018-02-13 12:12:24 CET
(In reply to Philipp Hahn from comment #4)
> DVD builds with the hack, but the underlying in python-apt remains.

DVD works with the hack -> OK
Bug for the hack -> bug 45950 -> OK

-> Verified
Comment 6 Stefan Gohmann univentionstaff 2018-03-14 14:38:36 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".