UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Nick Rosbrook |
Bug Description
[Impact]
Crashes in ubuntu-
[Test plan]
Seeing this issue requires causing another exception to be raised first. I do this like so:
* Start an upgrade, but say no when prompted to start the upgrade, after the tarball has been downloaded.
* Navigate to the tempdir where the tarball was unpacked, e.g. /tmp/ubuntu-
* Edit DistUpgradeView
* Observe that instead of an apport crash report being generated, there is an exception trying to do so:
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self.write(f)
File "/usr/lib/
block = f.read(1048576)
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
[Where problems could occur]
The patch makes it so that u-r-u passes filenames, instead of open files, to apport to generate the report. Regressions would be seen in the generation of reports, or the format of the resulting report.
[Original Description]
While attempting to do-release-upgrade from 20.04 to 22.04, the upgrader crashed, and then the problem report script also crashed, leaving behind a corrupted crash report in /var/crash. This bug is about the problem report crash. I will report the upgrader crash separately.
Here are the last few lines of output:
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
This may take some time... done.
Processing triggers for dbus (1.12.20-2ubuntu4) ...
Processing triggers for libvlc-bin:amd64 (3.0.16-1build7) ...
Processing triggers for libgdk-
Processing triggers for libgdk-
Processing triggers for rygel (0.40.3-1ubuntu2) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.calcDistUp
File "/tmp/ubuntu-
if not self.cache.
AttributeError: 'DistUpgradeCon
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self.write(f)
File "/usr/lib/
block = f.read(1048576)
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.calcDistUp
File "/tmp/ubuntu-
if not self.cache.
AttributeError: 'DistUpgradeCon
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: apport 2.20.11-
ProcVersionSign
Uname: Linux 5.4.0-124-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashReports:
644:0:
640:0:
600:112:
640:1000:
CurrentDesktop: XFCE
Date: Fri Aug 12 11:37:21 2022
InstallationDate: Installed on 2018-05-07 (1557 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitec
SourcePackage: apport
UpgradeStatus: Upgraded to focal on 2022-08-12 (0 days ago)
Related branches
- Brian Murray: Approve
-
Diff: 1865 lines (+159/-160)132 files modifiedDistUpgrade/DistUpgradeApport.py (+1/-1)
DistUpgrade/DistUpgradeVersion.py (+1/-1)
DistUpgrade/deb2snap.json (+0/-5)
data/mirrors.cfg (+23/-18)
debian/changelog (+8/-0)
po/af.po (+1/-1)
po/am.po (+1/-1)
po/an.po (+1/-1)
po/ar.po (+1/-1)
po/ast.po (+1/-1)
po/az.po (+1/-1)
po/be.po (+1/-1)
po/bg.po (+1/-1)
po/bn.po (+1/-1)
po/bo.po (+1/-1)
po/br.po (+1/-1)
po/bs.po (+1/-1)
po/ca.po (+1/-1)
po/ca@valencia.po (+1/-1)
po/ce.po (+1/-1)
po/ceb.po (+1/-1)
po/ckb.po (+1/-1)
po/crh.po (+1/-1)
po/cs.po (+1/-1)
po/csb.po (+1/-1)
po/cv.po (+1/-1)
po/cy.po (+1/-1)
po/da.po (+1/-1)
po/de.po (+1/-1)
po/dv.po (+1/-1)
po/el.po (+1/-1)
po/en_AU.po (+1/-1)
po/en_CA.po (+1/-1)
po/en_GB.po (+1/-1)
po/eo.po (+1/-1)
po/es.po (+1/-1)
po/et.po (+1/-1)
po/eu.po (+1/-1)
po/fa.po (+1/-1)
po/fi.po (+1/-1)
po/fil.po (+1/-1)
po/fo.po (+1/-1)
po/fr.po (+1/-1)
po/fr_CA.po (+1/-1)
po/fur.po (+1/-1)
po/fy.po (+1/-1)
po/ga.po (+1/-1)
po/gd.po (+1/-1)
po/gl.po (+1/-1)
po/gu.po (+1/-1)
po/gv.po (+1/-1)
po/he.po (+1/-1)
po/hi.po (+1/-1)
po/hr.po (+1/-1)
po/hu.po (+1/-1)
po/hy.po (+1/-1)
po/ia.po (+1/-1)
po/id.po (+1/-1)
po/is.po (+1/-1)
po/it.po (+1/-1)
po/ja.po (+1/-1)
po/jv.po (+1/-1)
po/ka.po (+1/-1)
po/kk.po (+1/-1)
po/km.po (+1/-1)
po/kn.po (+1/-1)
po/ko.po (+1/-1)
po/ku.po (+1/-1)
po/ky.po (+1/-1)
po/lb.po (+1/-1)
po/ln.po (+1/-1)
po/lo.po (+1/-1)
po/lt.po (+1/-1)
po/lv.po (+1/-1)
po/mhr.po (+1/-1)
po/mjw.po (+1/-1)
po/mk.po (+1/-1)
po/ml.po (+1/-1)
po/mn.po (+1/-1)
po/mnw.po (+1/-1)
po/mr.po (+1/-1)
po/ms.po (+1/-1)
po/mus.po (+1/-1)
po/my.po (+1/-1)
po/nb.po (+1/-1)
po/nds.po (+1/-1)
po/ne.po (+1/-1)
po/nl.po (+1/-1)
po/nn.po (+1/-1)
po/oc.po (+1/-1)
po/om.po (+1/-1)
po/pa.po (+1/-1)
po/pam.po (+1/-1)
po/pl.po (+1/-1)
po/ps.po (+1/-1)
po/pt.po (+1/-1)
po/pt_BR.po (+1/-1)
po/qu.po (+1/-1)
po/ro.po (+1/-1)
po/ru.po (+1/-1)
po/rw.po (+1/-1)
po/sc.po (+1/-1)
po/sco.po (+1/-1)
po/sd.po (+1/-1)
po/se.po (+1/-1)
po/shn.po (+1/-1)
po/si.po (+1/-1)
po/sk.po (+1/-1)
po/sl.po (+1/-1)
po/sq.po (+1/-1)
po/sr.po (+1/-1)
po/sv.po (+1/-1)
po/szl.po (+1/-1)
po/ta.po (+1/-1)
po/ta_LK.po (+1/-1)
po/te.po (+1/-1)
po/tg.po (+1/-1)
po/th.po (+1/-1)
po/tl.po (+1/-1)
po/tr.po (+1/-1)
po/ubuntu-release-upgrader.pot (+1/-1)
po/ug.po (+1/-1)
po/uk.po (+1/-1)
po/ur.po (+1/-1)
po/uz.po (+1/-1)
po/vi.po (+1/-1)
po/xh.po (+1/-1)
po/zh_CN.po (+1/-1)
po/zh_HK.po (+1/-1)
po/zh_TW.po (+1/-1)
po/zu.po (+1/-1)
tests/test_quirks.py (+0/-9)
- Brian Murray: Approve
- Nick Rosbrook: Needs Fixing
-
Diff: 2035 lines (+249/-162)136 files modifiedDistUpgrade/DistUpgradeApport.py (+1/-1)
DistUpgrade/DistUpgradeFetcherKDE.py (+2/-2)
DistUpgrade/DistUpgradeVersion.py (+1/-1)
DistUpgrade/DistUpgradeViewKDE.py (+4/-4)
DistUpgrade/deb2snap.json (+0/-5)
DistUpgrade/imported/invoke-rc.d (+1/-1)
data/mirrors.cfg (+15/-13)
debian/changelog (+9/-0)
po/af.po (+1/-1)
po/am.po (+1/-1)
po/an.po (+1/-1)
po/ar.po (+1/-1)
po/ast.po (+1/-1)
po/az.po (+1/-1)
po/be.po (+1/-1)
po/bg.po (+1/-1)
po/bn.po (+1/-1)
po/bo.po (+1/-1)
po/br.po (+1/-1)
po/bs.po (+1/-1)
po/ca.po (+1/-1)
po/ca@valencia.po (+1/-1)
po/ce.po (+1/-1)
po/ceb.po (+1/-1)
po/ckb.po (+1/-1)
po/crh.po (+1/-1)
po/cs.po (+1/-1)
po/csb.po (+1/-1)
po/cv.po (+1/-1)
po/cy.po (+1/-1)
po/da.po (+1/-1)
po/de.po (+1/-1)
po/dv.po (+1/-1)
po/el.po (+1/-1)
po/en_AU.po (+1/-1)
po/en_CA.po (+1/-1)
po/en_GB.po (+1/-1)
po/eo.po (+1/-1)
po/es.po (+1/-1)
po/et.po (+1/-1)
po/eu.po (+1/-1)
po/fa.po (+1/-1)
po/fi.po (+1/-1)
po/fil.po (+1/-1)
po/fo.po (+1/-1)
po/fr.po (+1/-1)
po/fr_CA.po (+1/-1)
po/fur.po (+1/-1)
po/fy.po (+1/-1)
po/ga.po (+1/-1)
po/gd.po (+1/-1)
po/gl.po (+1/-1)
po/gu.po (+1/-1)
po/gv.po (+1/-1)
po/he.po (+1/-1)
po/hi.po (+1/-1)
po/hr.po (+1/-1)
po/hu.po (+1/-1)
po/hy.po (+1/-1)
po/ia.po (+1/-1)
po/id.po (+1/-1)
po/is.po (+1/-1)
po/it.po (+1/-1)
po/ja.po (+1/-1)
po/jv.po (+1/-1)
po/ka.po (+1/-1)
po/kk.po (+1/-1)
po/km.po (+1/-1)
po/kn.po (+1/-1)
po/ko.po (+1/-1)
po/ku.po (+1/-1)
po/ky.po (+1/-1)
po/lb.po (+1/-1)
po/ln.po (+1/-1)
po/lo.po (+1/-1)
po/lt.po (+1/-1)
po/lv.po (+1/-1)
po/mhr.po (+1/-1)
po/mjw.po (+1/-1)
po/mk.po (+1/-1)
po/ml.po (+1/-1)
po/mn.po (+1/-1)
po/mnw.po (+1/-1)
po/mr.po (+1/-1)
po/ms.po (+1/-1)
po/mus.po (+1/-1)
po/my.po (+1/-1)
po/nb.po (+1/-1)
po/nds.po (+1/-1)
po/ne.po (+1/-1)
po/nl.po (+1/-1)
po/nn.po (+1/-1)
po/oc.po (+1/-1)
po/om.po (+1/-1)
po/pa.po (+1/-1)
po/pam.po (+1/-1)
po/pl.po (+1/-1)
po/ps.po (+1/-1)
po/pt.po (+1/-1)
po/pt_BR.po (+1/-1)
po/qu.po (+1/-1)
po/ro.po (+1/-1)
po/ru.po (+1/-1)
po/rw.po (+1/-1)
po/sc.po (+1/-1)
po/sco.po (+1/-1)
po/sd.po (+1/-1)
po/se.po (+1/-1)
po/shn.po (+1/-1)
po/si.po (+1/-1)
po/sk.po (+1/-1)
po/sl.po (+1/-1)
po/sq.po (+1/-1)
po/sr.po (+1/-1)
po/sv.po (+1/-1)
po/szl.po (+1/-1)
po/ta.po (+1/-1)
po/ta_LK.po (+1/-1)
po/te.po (+1/-1)
po/tg.po (+1/-1)
po/th.po (+1/-1)
po/tl.po (+1/-1)
po/tr.po (+1/-1)
po/ubuntu-release-upgrader.pot (+1/-1)
po/ug.po (+1/-1)
po/uk.po (+1/-1)
po/ur.po (+1/-1)
po/uz.po (+1/-1)
po/vi.po (+1/-1)
po/xh.po (+1/-1)
po/zh_CN.po (+1/-1)
po/zh_HK.po (+1/-1)
po/zh_TW.po (+1/-1)
po/zu.po (+1/-1)
tests/test_quirks.py (+0/-9)
utils/demoted.cfg (+90/-0)
Changed in ubuntu-release-upgrader (Ubuntu Jammy): | |
importance: | Undecided → Medium |
status: | New → Triaged |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu Jammy): | |
status: | Triaged → In Progress |
assignee: | nobody → Nick Rosbrook (enr0n) |
The issue with ubuntu- release- upgrader is being tracked in bug 1969786.