do-release-upgrade fails: TypeError: decode() argument 1 must be string, not None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Trying to upgrade from 12.04 to the next version, I get the following error:
$ LC_ALL=C do-release-upgrade
....
WARNING: Failed to read mirror file
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-
or your package manager.
To continue please press [ENTER]
A fatal error occurred
Please report this as a bug and include the files
/var/log/
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/
Traceback (most recent call last):
File "/tmp/update-
sys.exit(main())
File "/tmp/update-
line 240, in main
if app.run():
File
"/tmp/update-
line 1764, in run
return self.fullUpgrade()
File
"/tmp/update-
line 1663, in fullUpgrade
if not self.updateSour
File
"/tmp/update-
line 803, in updateSourcesList
_("Some third party entries in your sources.list "
File "/tmp/update-
line 138, in information
sys.stdin.
TypeError: decode() argument 1 must be string, not None
affects: | apt (Ubuntu) → ubuntu-release-upgrader (Ubuntu) |
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: precise |
The error does not happen if I remove LC_ALL=C and did pack-en- base
$ apt-get install language-
$ dpkg-reconfigure locales
I nevertheless think that the bug should be fixed, since LC_ALL=C is the standard way to get english messages on an non-english system.