do-release-upgrade crashed with ValueError in update_interface(): could not convert string to float: '0,0000'

Bug #1593869 reported by Jimmy Frydkær Jensen
162
This bug affects 34 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

The upgrader froze then closed after a while

ProblemType: Crash
DistroRelease: Ubuntu 16.10
Package: ubuntu-release-upgrader-core 1:16.10.1
ProcVersionSignature: Ubuntu 4.4.0-25.44-generic 4.4.13
Uname: Linux 4.4.0-25-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu4
Architecture: amd64
CrashDB: ubuntu
Date: Fri Jun 17 21:52:44 2016
ExecutablePath: /usr/bin/do-release-upgrade
InstallationDate: Installed on 2016-06-17 (0 days ago)
InstallationMedia: Ubuntu-MATE 16.10 "Yakkety Yak" - Alpha amd64 (20160617)
InterpreterPath: /usr/bin/python3.5
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/do-partial-upgrade --frontend=DistUpgradeViewGtk3
ProcEnviron:
 SHELL=/bin/bash
 LANG=da_DK.UTF-8
 LANGUAGE=da
 PATH=(custom, no user)
PythonArgs: ['/usr/bin/do-release-upgrade', '--frontend=DistUpgradeViewGtk3']
SourcePackage: ubuntu-release-upgrader
Title: do-release-upgrade crashed with ValueError in update_interface(): could not convert string to float: '0,0000'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

VarLogDistupgradeTermlog:

Revision history for this message
Jimmy Frydkær Jensen (jimmyfj) wrote :
tags: removed: need-duplicate-check
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
information type: Private → Public
Revision history for this message
dinamic (dinamic6661) wrote :

same here

tags: added: bugpattern-needed
Revision history for this message
laurent (laurent-pompon) wrote :

Same bug with Ubuntu 16.04

Revision history for this message
Brian Murray (brian-murray) wrote :

The traceback here ends with the same lines as https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1592817.

Revision history for this message
Andreas (andreas-rabus) wrote :
Download full text (5.5 KiB)

My output after starting the update from shell was:

 update-manager
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
Neue Veröffentlichungen von Ubuntu werden gesucht
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit2 as WebKit
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
»yakkety.tar.gz« wird gegenüber »yakkety.tar.gz.gpg« legitimiert
»yakkety.tar.gz« wird entpackt

Inhibiting until Ctrl+C is pressed...
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/yakkety", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/DistUpgrade/DistUpgradeMain.py", line 242, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/DistUpgrade/DistUpgradeController.py", line 1880, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/DistUpgrade/DistUpgradeController.py", line 1183, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/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-q6lhlwwi/DistUpgrade/DistUpgradeView.py", line 234, in run
    res = os.WEXITSTATUS(self.wait_child())
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/DistUpgrade/DistUpgradeViewGtk3.py", line 339, in wait_child
    self.update_interface()
  File "/tmp/ubuntu-release-upgrader-q6lhlwwi/DistUpgrade/DistUpgradeViewGtk3.py", line 346, in update_interface
    InstallProgress.update_interface(self)
  File "/u...

Read more...

Revision history for this message
Ophir LOJKINE (pere-jobs) wrote :

I am affected by this bug too. How can it be marked as "medium", when it freezes the whole install process ?

Revision history for this message
Matthias Metzger (macellarius) wrote :

Have you tried to run do-release-upgrade in terminal?
The error message shows up anyway, but - in my case - the installation process continued without failing.

Revision history for this message
Hannu Tikka (hannu-tikka) wrote :

One more affected. Ubuntustdio upgrdes ok, but ubuntu server 16.04 on commandline upgrade stops to this bug.

Revision history for this message
disasterpiece (vmf11) wrote :

Same issue on 16.04.

Fixed with:

--- /usr/lib/python3/dist-packages/apt/progress/base.py 2016-09-01 17:34:43.000000000 +0300
+++ /usr/lib/python3/dist-packages/apt/progress/base.py.bak 2016-11-23 05:57:04.766896902 +0300
@@ -212,6 +212,12 @@
         """Fork."""
         return os.fork()

+ def __float(self, str):
+ try:
+ return float(str)
+ except:
+ return float(re.sub(',', '.', str))
+
     def update_interface(self):
         """Update the interface."""
         try:
@@ -252,9 +258,9 @@
                 self.conffile(match.group(1), match.group(2))
         elif status == "pmstatus":
             # FIXME: Float comparison
- if float(percent) != self.percent or status_str != self.status:
- self.status_change(pkgname, float(percent), status_str.strip())
- self.percent = float(percent)
+ if self.__float(percent) != self.percent or status_str != self.status:
+ self.status_change(pkgname, self.__float(percent), status_str.strip())
+ self.percent = self.__float(percent)
                 self.status = status_str.strip()
         elif base == "status":
             self.dpkg_status_change(pkgname, status)

Revision history for this message
disasterpiece (vmf11) wrote :

Sorry, see attachment for patch.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "bug #1593869 float() issue WAR" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
ROUCHY JMarc (jm-rouchy) wrote :

Hello,

Same here, with do-release-upgrade and graphic interface.
Impossible to upgrade from 16.04 to 16.10.
The process goes on some minutes after le crash message but never goes to the end.

Both on virtual installation (VirtualBox) and hard plateform. (AMD64)

Easy to reproduce on VM if needed for debug.

Regards

Revision history for this message
ROUCHY JMarc (jm-rouchy) wrote :

Hello,

disasterpiece (vmf11)'s patch CORRECTS the bug.

Upgrade to 16.10 teminated !

Thank's.

Revision history for this message
Juancho (juan-baptiste-0) wrote :

I confirm it too, trying to update from kubuntu 16.04 to 16.10 I get that error at different points in installation, now I have a broken install because of this.

Revision history for this message
Christophe Romain (cromain) wrote :

I faced this issue as well.
it was solved with python3-distupgrade 16.04.19
and reapeared with python3-distupgrade 16.04.20

temporary solution "that works for me" is to force installation of python3-distupgrade 16.04.19

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.