Same issue on 16.04.
Fixed with:
--- /usr/lib/python3/dist-packages/apt/progress/base.py 2016-09-01
17:34:43.0 +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)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1593869
Title:
do-release-upgrade crashed with ValueError in update_interface():
could not convert string to float: '0,'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1593869/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs