/usr/share/unattended-upgrades/unattended-upgrade-shutdown:apt_pkg.Error:/usr/share/unattended-upgrades/unattended-upgrade-shutdown@399:main
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-
* The fix would not warrant an SRU itself but it is part of the full backport SRU tracked in LP: #1702793.
[Test Case]
* Buggy version:
root@x2:~# echo extra-junk >> /etc/apt/
root@x2:~# /usr/share/
Traceback (most recent call last):
File "/usr/share/
apt_
SystemError: E:Syntax error /etc/apt/
root@x2:~#
* Fixed version:
# /usr/share/
1
root@bb-
2018-11-30 18:05:56,515 ERROR - Apt returned an error, exiting
2018-11-30 18:05:56,515 ERROR - error message: 'E:Syntax error /etc/apt/
[Regression Potential]
* U-u-s used to exit crashing, now it exits with an error code, just logging the error. There is little chance for regressing here, but users may have harder time to figure out why u-u-s exited, they need to check the log file.
* There is also an enhancement request tracked to start u-u-s with a default config when parsing the config fails to be able to act on shutdown:
https:/
[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://
The crash was first found and fixed in LP: #1737717 but the fix LP: #1778219 introduced it in a slightly different way.
With the fix for LP: #1737717 u-u.service can gracefully stop u-u when the APT configuration became broken _after_ starting the u-u.service but the service still throws an unhandled exception when it starts with an already broken APT configuration.
This bug was fixed in the package unattended-upgrades - 1.10ubuntu1
---------------
unattended-upgrades (1.10ubuntu1) disco; urgency=medium
* Use defaults in unattended- upgrades. service when the APT configuration is blacklisted_ wrong_origin. py: Fix and enable test
broken. (LP: #1815189)
* test/test_
* Clear cache when autoremoval fails (LP: #1779157)
* Find autoremovable kernel packages using the patterns in APT's way
(LP: #1815494)
* debian/rules: clean frontend locks left by tests before building source
-- Balint Reczey <email address hidden> Mon, 18 Feb 2019 17:26:05 +0100