anewbie
January 8th, 2021, 06:49 PM
When I execute do-release upgrade it fails with invalid character 0xe2:
Is there an easy fix for this issue ?
root@pc1:~> do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1554 B]
Get:2 Upgrade tool [1340 kB]
Fetched 1342 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit http://ppa.launchpad.net/alex-p/qcad/ubuntu bionic InRelease
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Checking for installed snaps
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6o56cw_s/focal", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 2089, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 1926, in fullUpgrade
if not self.doPostInitialUpdate():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 924, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate")
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
func()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 135, in focalPostInitialUpdate
self._calculateSnapSizeRequirements()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 566, in _calculateSnapSizeRequirements
self._prepare_snap_replacement_data()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 1016, in _prepare_snap_replacement_data
stdout=subprocess.PIPE).communicate()
File "/usr/lib/python3.6/subprocess.py", line 850, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1072: ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 497, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 450, in write
block = f.read(1048576)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6o56cw_s/focal", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 2089, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 1926, in fullUpgrade
if not self.doPostInitialUpdate():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 924, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate")
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
func()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 135, in focalPostInitialUpdate
self._calculateSnapSizeRequirements()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 566, in _calculateSnapSizeRequirements
self._prepare_snap_replacement_data()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 1016, in _prepare_snap_replacement_data
stdout=subprocess.PIPE).communicate()
File "/usr/lib/python3.6/subprocess.py", line 850, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1072: ordinal not in range(128)
root@pc1:~>
Is there an easy fix for this issue ?
root@pc1:~> do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1554 B]
Get:2 Upgrade tool [1340 kB]
Fetched 1342 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit http://ppa.launchpad.net/alex-p/qcad/ubuntu bionic InRelease
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Checking for installed snaps
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6o56cw_s/focal", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 2089, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 1926, in fullUpgrade
if not self.doPostInitialUpdate():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 924, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate")
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
func()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 135, in focalPostInitialUpdate
self._calculateSnapSizeRequirements()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 566, in _calculateSnapSizeRequirements
self._prepare_snap_replacement_data()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 1016, in _prepare_snap_replacement_data
stdout=subprocess.PIPE).communicate()
File "/usr/lib/python3.6/subprocess.py", line 850, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1072: ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 497, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 450, in write
block = f.read(1048576)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6o56cw_s/focal", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 2089, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 1926, in fullUpgrade
if not self.doPostInitialUpdate():
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeController.py", line 924, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate")
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
func()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 135, in focalPostInitialUpdate
self._calculateSnapSizeRequirements()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 566, in _calculateSnapSizeRequirements
self._prepare_snap_replacement_data()
File "/tmp/ubuntu-release-upgrader-6o56cw_s/DistUpgrade/DistUpgradeQuirks.py", line 1016, in _prepare_snap_replacement_data
stdout=subprocess.PIPE).communicate()
File "/usr/lib/python3.6/subprocess.py", line 850, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1072: ordinal not in range(128)
root@pc1:~>