[Bug 1604160] Re: Unicode decode error in noninteractive frontend on t->x

Max Brustkern 1604160 at bugs.launchpad.net
Tue Aug 2 19:01:12 UTC 2016


Here's an apport report from a system where an interactive upgrade
stalled. I can work on getting a noninteractive one there as well.

** Attachment added: "apport.ubuntu-release-upgrader-core.dtze1ksv.apport"
   https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1604160/+attachment/4712550/+files/apport.ubuntu-release-upgrader-core.dtze1ksv.apport

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1604160

Title:
  Unicode decode error in noninteractive frontend on t->x

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  I've got a number of automatic upgrade tests running daily, which all
  use the noninteractive frontend. As of a few days ago, the
  trusty->xenial amd64 desktop qemu uefi upgrade testing is having
  problems:

  Setting up sane-utils (1.0.25+git20150528-1ubuntu2) ...
  Installing new version of config file /etc/default/saned ...
  Installing new version of config file /etc/init.d/saned ...
  Test for running scanbd
  Move homedir from /home/saned to /var/lib/saned
   * saned disabled; edit /etc/default/saned
  Setting up shim-signed (1.17~16.04.1+0.8-0ubuntu2) ...
  Installing for x86_64-efi platform.
  Installation finished. No error reported.
  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-xv9kbqfl/xenial", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/DistUpgrade/DistUpgradeMain.py", line 242, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/DistUpgrade/DistUpgradeController.py", line 1876, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/DistUpgrade/DistUpgradeController.py", line 1841, in fullUpgrade
      if not self.doDistUpgrade():
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/DistUpgrade/DistUpgradeController.py", line 1182, in doDistUpgrade
      res = self.cache.commit(fprogress,iprogress)
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/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-xv9kbqfl/DistUpgrade/DistUpgradeView.py", line 234, in run
      res = os.WEXITSTATUS(self.wait_child())
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/DistUpgrade/DistUpgradeView.py", line 200, in wait_child
      self.update_interface()
    File "/tmp/ubuntu-release-upgrader-xv9kbqfl/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
  auto-upgrade [16:53:31]: ERROR: ERROR: Something went wrong with the upgrade.

  I can get more output if necessary. This problem doesn't appear to
  occur on other trusty->xenial amd64 desktop qemu installs, so I'm
  uncertain if it's related to a package installed to support the UEFI
  boot or some other difference between that and the other images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1604160/+subscriptions



More information about the foundations-bugs mailing list