Bug 33944 - Updater generates broken sources.list?
Updater generates broken sources.list?
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-17 11:55 CET by Dirk Wiesenthal
Modified: 2018-04-14 13:51 CEST (History)
2 users (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): 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 Dirk Wiesenthal univentionstaff 2014-01-17 11:55:47 CET
Reported by traceback feedback:

 Die Ausführung des Kommandos appcenter/packages/sections ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 204, in execute
    func( request )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py",
line 305, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py",
line 432, in _response
    for res in function(self, iterator, *nones):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py",
line 271, in _fake_func
    yield function(self, *args)
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/__init__.py",
line 313, in packages_sections
    cache = apt.Cache()
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 88, in __init__
    self.open(progress)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 130, in open
    self._list.read_main_list()
SystemError: E:Typ >>t<< in Zeile 22 der Quellliste
/etc/apt/sources.list.d/20_ucs-online-component.list ist unbekannt

Seems like there in line 22 of /etc/apt/sources.list.d/20_ucs-online-component.list a "t" is the first word (normally: "deb"). As this file is generated by UCR, this is either an error of UniventionUpdater.print_component_repositories() or someone manually changed the file.

One possible cause for this may be a "\r" in a component name? Sounds unreasonable.

apt-get update does also show this error. Only fix here is to repair the broken file.
Comment 1 Florian Best univentionstaff 2014-03-04 08:52:08 CET
Again reported with the string "eb":

SystemError: E:Typ »eb« in Zeile 14 der Quellliste
/etc/apt/sources.list.d/20_ucs-online-component.list ist unbekannt

Ticket #2014021321004475
Comment 2 Florian Best univentionstaff 2014-03-04 08:54:04 CET
(In reply to comment #1)
The system was 3.2-0 errata61 (Borgfeld)
Comment 3 Florian Best univentionstaff 2015-08-11 10:19:31 CEST
Reported again, 4.0-2 errata193 (Walle):

Die Ausführung des Kommandos setup/apps/query wizard ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/__init__.py", line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 316, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 460, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 282, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 710, in apps_query
    return util.get_apps(True)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 701, in get_apps
    always_noninteractive=True,
  File "%PY2.7%/univention/lib/package_manager.py", line 264, in __init__
    self.cache = apt.Cache()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 149, in open
    self._list.read_main_list()
SystemError: E:Typ »/dev/mapper/vg_ucs-lv_root« in Zeile 1 der Quellliste /etc/apt/sources.list.d/15_ucs-online-version.list ist unbekannt.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-08-17 10:18:14 CEST
(In reply to Florian Best from comment #3)
> Reported again, 4.0-2 errata193 (Walle):
[…]
> SystemError: E:Typ »/dev/mapper/vg_ucs-lv_root« in Zeile 1 der Quellliste
> /etc/apt/sources.list.d/15_ucs-online-version.list ist unbekannt.

Sounds like the /etc/fstab has been copied to /etc/apt/sources.list.d/ accidently.
Comment 5 Stefan Gohmann univentionstaff 2017-06-16 20:37:42 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 6 Stefan Gohmann univentionstaff 2017-08-08 07:10:50 CEST
This issue has been filed against UCS 3.2.

UCS 3.2 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.