Python script crash during upgrade process

Bug #1651824 reported by OldDeath on 2016-12-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Undecided
Unassigned

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. ;)

no longer affects: ubuntu-mate
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers