[Bug 1651824] Re: Python script crash during upgrade process

Martin Wimpress 1651824 at bugs.launchpad.net
Wed Jan 18 22:43:33 UTC 2017


** Also affects: ubuntu-release-upgrader (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: ubuntu-mate

-- 
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/1651824

Title:
  Python script crash during upgrade process

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

Bug description:
  This is what I copied (with some editing for readability purposes)
  from my terminal during upgrade (sorry, no more lines above the
  topmost one):

  
  Extracting templates from packages: 98%N: Ignoring file '20auto-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
  Extracting templates from packages: 100%
  Preconfiguring packages ...

  Traceback (most recent call last):
                                      
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/yakkety", line 8, in <module>
      sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeMain.py", line 242, in main
      if app.run():
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeController.py", line 1880, in run
      return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade
      if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeController.py", line 1183, in doDistUpgrade
      res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeCache.py", line 267, in commit
      apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 515, in commit
      res = self.install_archives(pm, install_progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 479, in install_archives
      res = install_progress.run(pm)
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeView.py", line 234, in run
      res = os.WEXITSTATUS(self.wait_child())
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeView.py", line 200, in wait_child
      self.update_interface()
  File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 255, in update_interface
      if float(percent) != self.percent or status_str != self.status:
  ValueError: could not convert string to float: '0,0000'

  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.5/codecs.py", line 321, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  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-release-upgrader-5qxwiyfs/yakkety", line 8, in <module>
      sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeMain.py", line 242, in main
      if app.run():
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeController.py", line 1880, in run
      return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade
      if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeController.py", line 1183, in doDistUpgrade
      res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeCache.py", line 267, in commit
      apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 515, in commit
      res = self.install_archives(pm, install_progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 479, in install_archives
      res = install_progress.run(pm)
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeView.py", line 234, in run
      res = os.WEXITSTATUS(self.wait_child())
  File "/tmp/ubuntu-release-upgrader-5qxwiyfs/DistUpgrade/DistUpgradeView.py", line 200, in wait_child
      self.update_interface()
  File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 255, in update_interface
      if float(percent) != self.percent or status_str != self.status:
  ValueError: could not convert string to float: '0,0000'
  (Reading database ... 253578 files and directories currently installed.)

  [normal install continues]

  
  It looks like somebody wrote '0,0000' instead of '0.0000' somewhere. ;)

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



More information about the foundations-bugs mailing list