Upgrade to yakkety fails due to non-us locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Upgrade to yakkety failed during updates installation. The do-release-upgrade window froze and there was a stacktrace in the terminal:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.doDistUpgr
File "/tmp/ubuntu-
res = self.cache.
File "/tmp/ubuntu-
apt.
File "/usr/lib/
res = self.install_
File "/usr/lib/
res = install_
File "/tmp/ubuntu-
res = os.WEXITSTATUS(
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
InstallProg
File "/usr/lib/
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/
self.write(f)
File "/usr/lib/
block = f.read(1048576)
File "/usr/lib/
(result, consumed) = self._buffer_
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-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.doDistUpgr
File "/tmp/ubuntu-
res = self.cache.
File "/tmp/ubuntu-
apt.
File "/usr/lib/
res = self.install_
File "/usr/lib/
res = install_
File "/tmp/ubuntu-
res = os.WEXITSTATUS(
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
InstallProg
File "/usr/lib/
if float(percent) != self.percent or status_str != self.status:
ValueError: could not convert string to float: '0,0000'
It seems, that it's because release-upgrader incorrectly works with locale: Russian locale uses "," as a floating point separator, rather than ".", so it generates the "0,0000" somewhere and cannot parse it afterwards.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.4.0-43-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Thu Oct 13 23:54:25 2016
PackageArchitec
SourcePackage: ubuntu-
Symptom: release-upgrade
UpgradeStatus: Upgraded to yakkety on 2016-10-13 (0 days ago)
VarLogDistupgra
modified.
mtime.conffile.
tags: | added: xenial2yakkety |
I'm not convinced that this is specific to ubuntu- release- upgrader if we look at bug 1592817 we can see the same crash occurring in python-apt with gdebi.