Control: tags -1 moreinfo Hi Tomas,
Tomas Pospisek <tpo_...@sourcepole.ch> ezt írta (időpont: 2019. júl. 29., H, 10:54): > > Package: unattended-upgrades > Version: 1.11.2 > Severity: normal > > This is what I get from cron: > > /etc/cron.daily/apt-compat: > Traceback (most recent call last): > File "/usr/bin/unattended-upgrade", line 1538, in <module> > main(options) > File "/usr/bin/unattended-upgrade", line 1476, in main > log_content = get_dpkg_log_content(logfile_dpkg, install_start_time) > File "/usr/bin/unattended-upgrade", line 1116, in get_dpkg_log_content > for line in fp.readlines(): > File "/usr/lib/python3.5/codecs.py", line 321, in decode > (result, consumed) = self._buffer_decode(data, self.errors, final) > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 749: invalid start byte > > No idea what's up with that error message. > *t Could you please attach the part of /var/log/unattended-upgrades/unattended-upgrades-dpkg.log that triggers the error? In theory this is what unattended-upgrade does and this should crash on the bad log: #!/usr/bin/python3 # reproducer for Debian #933325 import io with io.open("test-data", encoding='utf-8', errors='replace') as f: for line in f.readlines(): pass Cheers, Balint