/usr/bin/unattended-upgrade:apt_pkg.Error:/usr/bin/unattended-upgrade@1706:main:__init__:__init__:open
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Balint Reczey | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-upgrades crashes when initializing the cache preventing security updates to be applied.
* The fix prints an error message then exits
[Test Case]
* Observe https:/
[Regression Potential]
* The fix is simply catching the error and exiting, there is little room for regressions. In the worst case u-u crashes differently when printing the error.
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
description: | updated |
Various temporary problems with package lists can make u-u crash (typically in --download-only mode), but those can be handled printing an error and exiting.
Traceback (most recent call last): unattended- upgrade" , line 1706, in <module> unattended- upgrade" , line 1394, in main origins= allowed_ origins) unattended- upgrade" , line 119, in __init__ Cache._ _init__ (self, rootdir=rootdir) python3/ dist-packages/ apt/cache. py", line 113, in __init__ open(progress) python3/ dist-packages/ apt/cache. py", line 164, in open Cache(progress) apt/lists/ cn.archive. ubuntu. com_ubuntu_ dists_artful_ universe_ i18n_Translatio n-en, E:The package lists or status file could not be parsed or opened.
File "/usr/bin/
main(options)
File "/usr/bin/
allowed_
File "/usr/bin/
apt.
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
apt_pkg.Error: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/