Invalid UTF-8 characters in dpkg's log crash unattended-upgrade.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-upgrades crashes at the end of its run before sending out upgrade report email when dpkg's log contains invalid UTF-8 characters.
[Test Case]
* Observe https:/
[Regression Potential]
* The fix is minimal, only replacing invalid characters with �. Regressions in u-u are unlikely but tools may break consuming unattended-upgrades output in case they can't handle the replacement marker.
[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://
Traceback (most recent call last):
File "/usr/bin/
main(options)
File "/usr/bin/
log_content = get_dpkg_
File "/usr/bin/
for line in fp.readlines():
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 7912-7913: invalid continuation byte
summary: |
- /usr/bin/unattended-upgrade:UnicodeDecodeError:/usr/bin/unattended- - upgrade@1706:main:get_dpkg_log_content:decode + Invalid UTF-8 characters in dpkg's log crash unattended-upgrade. |
Changed in unattended-upgrades (Ubuntu): | |
status: | New → In Progress |
description: | updated |
description: | updated |
This bug was fixed in the package unattended-upgrades - 0.99ubuntu2
---------------
unattended-upgrades (0.99ubuntu2) bionic; urgency=medium
* Run upgrade- between- snapshots only on amd64. upgrade' s Python code and uses
The test exercises only unattented-
dependencies from the frozen Debian snapshot archive thus running
it on all architectures would provide little benefit.
-- Balint Reczey <email address hidden> Tue, 13 Feb 2018 11:41:20 +0700