After reading carefully, I was able to recreate this by installing shim-signed.
etting up shim-signed (1.18~16.04.1+0.8-0ubuntu2) ...
find: Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 15, in <module>
import xml.dom, xml.dom.minidom
ImportError: No module named 'xml.dom'
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-op_78f0n/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeMain.py", line 242, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeController.py", line 1876, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeController.py", line 1841, in fullUpgrade
if not self.doDistUpgrade():
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeController.py", line 1182, in doDistUpgrade
res = self.cache.commit(fprogress,iprogress)
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeCache.py", line 267, in commit
apt.Cache.commit(self, fprogress, iprogress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 501, in commit
# which is less than optimal!
File "/usr/lib/python3/dist-packages/apt/cache.py", line 465, in install_archives
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeView.py", line 234, in run
res = os.WEXITSTATUS(self.wait_child())
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeView.py", line 200, in wait_child
self.update_interface()
File "/tmp/ubuntu-release-upgrader-op_78f0n/DistUpgrade/DistUpgradeViewNonInteractive.py", line 229, in update_interface
sys.stdout.write("%s" % s.decode(locale.getpreferredencoding()))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 0: unexpected end of data
After reading carefully, I was able to recreate this by installing shim-signed.
etting up shim-signed (1.18~16. 04.1+0. 8-0ubuntu2) ... python3/ dist-packages/ apport_ python_ hook.py" , line 63, in apport_excepthook python3/ dist-packages/ apport/ __init_ _.py", line 5, in <module> python3/ dist-packages/ apport/ report. py", line 15, in <module>
find: Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
import xml.dom, xml.dom.minidom
ImportError: No module named 'xml.dom'
Original exception was: release- upgrader- op_78f0n/ xenial" , line 8, in <module> exit(main( )) release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeMain .py", line 242, in main release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeCont roller. py", line 1876, in run release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeCont roller. py", line 1841, in fullUpgrade ade(): release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeCont roller. py", line 1182, in doDistUpgrade commit( fprogress, iprogress) release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeCach e.py", line 267, in commit Cache.commit( self, fprogress, iprogress) python3/ dist-packages/ apt/cache. py", line 501, in commit python3/ dist-packages/ apt/cache. py", line 465, in install_archives
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.doDistUpgr
File "/tmp/ubuntu-
res = self.cache.
File "/tmp/ubuntu-
apt.
File "/usr/lib/
# which is less than optimal!
File "/usr/lib/
File "/tmp/ubuntu- release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeView .py", line 234, in run self.wait_ child() ) release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeView .py", line 200, in wait_child update_ interface( ) release- upgrader- op_78f0n/ DistUpgrade/ DistUpgradeView NonInteractive. py", line 229, in update_interface stdout. write(" %s" % s.decode( locale. getpreferredenc oding() ))
res = os.WEXITSTATUS(
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
sys.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 0: unexpected end of data