TypeError from do-release-upgrade when LANG=C

Bug #1106081 reported by Martin Packman
10
This bug affects 1 person
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 getpreferredencoding

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-release-upgrader-core 1:0.190.5
Uname: Linux 3.4.0 armv7l
ApportVersion: 2.6.1-0ubuntu9
Architecture: armhf
Date: Sat Jan 26 14:22:04 2013
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to quantal on 2013-01-26 (0 days ago)
VarLogDistupgradeAptclonesystemstate.tar.gz: Error: [Errno 2] No such file or directory: 'pkexec'
VarLogDistupgradeAptlog:
 Log time: 2013-01-26 13:56:32.409482
 Log time: 2013-01-26 13:56:36.353624

Revision history for this message
Martin Packman (gz) wrote :
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

Hi Martin,

In VarLogDistupgradeMainlog.txt

you have a woanderfull stacktrace:

Traceback (most recent call last):

  File "/tmp/ubuntu-release-upgrader-406zz2/raring", line 10, in <module>
    sys.exit(main())

  File "/tmp/ubuntu-release-upgrader-406zz2/DistUpgrade/DistUpgradeMain.py", line 240, in main
    if app.run():

  File "/tmp/ubuntu-release-upgrader-406zz2/DistUpgrade/DistUpgradeController.py", line 1769, in run
    return self.fullUpgrade()

  File "/tmp/ubuntu-release-upgrader-406zz2/DistUpgrade/DistUpgradeController.py", line 1668, in fullUpgrade
    if not self.updateSourcesList():

  File "/tmp/ubuntu-release-upgrader-406zz2/DistUpgrade/DistUpgradeController.py", line 818, in updateSourcesList
    _("Some third party entries in your sources.list "

  File "/tmp/ubuntu-release-upgrader-406zz2/DistUpgrade/DistUpgradeViewText.py", line 138, in information
    sys.stdin.readline().decode(ENCODING, "backslashreplace")

TypeError: decode() argument 1 must be string, not None

tags: added: quantal2raring
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

This is properly caused by

_("Some third party entries in your sources.list "

and with this it imay be

http://ppa.launchpad.net/hrw/my-own-packages/ubuntu

your own ppa that makes trouble.

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

We are glad over every hint what could be improved.

Can you provide a good algorithmic description, that is complete and can guide a beginner to the point where the problem happends.

(step1,
 step2,
.
.
.
finished)

After that set the status of this report back to new.

Thanks

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

Could you elaborate as to what you mean by 'quantal Ubuntu core'? What type of system did you install and what meta-packages are installed? Thanks in advance.

Changed in ubuntu-release-upgrader (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Robie Basak (racb) wrote :

Is this the same as bug 1166346?

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.