TypeError from do-release-upgrade when LANG=C
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
When running `do-release-upgrade -d` to upgrade a machine that had quantal Ubuntu core installed, it failed at several stages. Much of this is likely fallout from lacking packages that the desktop environment includes by default, or other configuration that is normally done during the initial installation.
* python-apt is required but not given as a dependency
* code for determining ENCODING uses getdefaultlocale (and gets None with C) rather than getpreferredenc
Using `LANG=C.UTF-8` works around the issue that locales have not been set up in the normal fashion.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: ubuntu-
Uname: Linux 3.4.0 armv7l
ApportVersion: 2.6.1-0ubuntu9
Architecture: armhf
Date: Sat Jan 26 14:22:04 2013
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=linux
PATH=(custom, no user)
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to quantal on 2013-01-26 (0 days ago)
VarLogDistupgra
VarLogDistupgra
Log time: 2013-01-26 13:56:32.409482
Log time: 2013-01-26 13:56:36.353624
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | Undecided → Medium |
status: | Incomplete → Confirmed |
Hi Martin,
In VarLogDistupgra deMainlog. txt
you have a woanderfull stacktrace:
Traceback (most recent call last):
File "/tmp/ubuntu- release- upgrader- 406zz2/ raring" , line 10, in <module> exit(main( ))
sys.
File "/tmp/ubuntu- release- upgrader- 406zz2/ DistUpgrade/ DistUpgradeMain .py", line 240, in main
if app.run():
File "/tmp/ubuntu- release- upgrader- 406zz2/ DistUpgrade/ DistUpgradeCont roller. py", line 1769, in run
return self.fullUpgrade()
File "/tmp/ubuntu- release- upgrader- 406zz2/ DistUpgrade/ DistUpgradeCont roller. py", line 1668, in fullUpgrade cesList( ):
if not self.updateSour
File "/tmp/ubuntu- release- upgrader- 406zz2/ DistUpgrade/ DistUpgradeCont roller. py", line 818, in updateSourcesList
_("Some third party entries in your sources.list "
File "/tmp/ubuntu- release- upgrader- 406zz2/ DistUpgrade/ DistUpgradeView Text.py" , line 138, in information stdin.readline( ).decode( ENCODING, "backslashreplace")
sys.
TypeError: decode() argument 1 must be string, not None