Bug 42481 - Empty sources.list may result in unwanted package operations
Empty sources.list may result in unwanted package operations
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Philipp Hahn
Stefan Gohmann
: interim-1
Depends on: 42450
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-23 06:26 CEST by Stefan Gohmann
Modified: 2017-04-04 18:29 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016091921000326, 2016091921000317, 2016091821000131, 2016091721000179, 2016091521000182, 2016091321000579, 2016091321000524, 2016091321000257, 2016092021000172
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2016-09-23 06:26:44 CEST
The fix needs to be merged to UCS 4.2.

+++ This bug was initially created as a clone of Bug #42450 +++

We found in /etc/apt/sources.list.d/15_ucs-online-version.list

# An error occurred during the repository check. The error message:
#   Traceback (most recent call last):
#     File "<stdin>", line 13, in <module>
#     File "/usr/lib/pymodules/python2.7/univention/updater/tools.py", line 579, in __init__
#       self.ucr_reinit()
#     File "/usr/lib/pymodules/python2.7/univention/updater/tools.py", line 660, in ucr_reinit
#       assert self.server.access(None, '')
#     File "/usr/lib/pymodules/python2.7/univention/updater/tools.py", line 488, in access
#       raise ConfigurationError(uri, reason)
#   ConfigurationError: Configuration error: host is unresolvable


Only 4.1-3-errata was included in 20_ucs-online-component.list

This resulted in the following apt-get operation set:

Statusinformationen werden eingelesen....
Die folgenden Pakete werden ENTFERNT:
  univention-management-console univention-management-console-module-setup
  univention-server-master
Die folgenden NEUEN Pakete werden installiert:
  univention-nagios-samba
Die folgenden Pakete sind zurückgehalten worden:
  python-univention-appcenter
Die folgenden Pakete werden aktualisiert (Upgrade):
  libidn11 libpython2.7 libxslt1.1 python-univention-connector-s4
  [...]

The problem came from added dependencies in univention-management-console-module-setup and python-univention-appcenter in the latest 4.1-3 errata updates. These dependencies could not be found and thus the packages were not installed / had to be removed.

The updater should not operate under these conditions. Also, the sources.list should rewrite itself. We got feedback that later on, the error messages disappeared.
Comment 1 Philipp Hahn univentionstaff 2016-09-23 09:13:59 CEST
r72769 | Bug #42450 up: Assert valid /etc/apt/sources.list.d/15_ucs-online-version.list
Comment 2 Stefan Gohmann univentionstaff 2017-01-17 08:36:45 CET
OK, looks good. Changelog entry is not required.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:27 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

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