[Bug 1031882] Re: precise->quantal upgrade fails, with a UnicodeDecodeError
Stefano Rivera
launchpad at rivera.za.net
Mon Sep 24 11:48:35 UTC 2012
I've tried to reproduce it unsuccessfully. Haven't tried to understand
the code path, and what could be causing it, though.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1031882
Title:
precise->quantal upgrade fails, with a UnicodeDecodeError
Status in “update-manager” package in Ubuntu:
Confirmed
Bug description:
The first time I tried to upgrade this machine to quantal:
$ update-manager -d
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
extracting 'quantal.tar.gz'
WARNING: Failed to read mirror file
WARNING: Failed to read mirror file
Traceback (most recent call last):
File "/tmp/update-manager-sjmjAI/quantal", line 10, in <module>
sys.exit(main())
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeMain.py", line 235, in main
if app.run():
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 1736, in run
return self.fullUpgrade()
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 1693, in fullUpgrade
if not self.askDistUpgrade():
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 927, in askDistUpgrade
if not self._checkFreeSpace():
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 904, in _checkFreeSpace
required.dir))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeViewGtk3.py", line 475, in _handleException
apport_crash(type, value, tb)
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeApport.py", line 47, in apport_crash
_apport_append_logfiles(report)
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeApport.py", line 28, in _apport_append_logfiles
report[f.replace(".","").replace("-","")] = (open(f), )
File "/usr/lib/python2.7/dist-packages/problem_report.py", line 509, in __setitem__
assert k.replace('.', '').replace('-', '').replace('_', '').isalnum()
AssertionError
Original exception was:
Traceback (most recent call last):
File "/tmp/update-manager-sjmjAI/quantal", line 10, in <module>
sys.exit(main())
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeMain.py", line 235, in main
if app.run():
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 1736, in run
return self.fullUpgrade()
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 1693, in fullUpgrade
if not self.askDistUpgrade():
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 927, in askDistUpgrade
if not self._checkFreeSpace():
File "/tmp/update-manager-sjmjAI/DistUpgrade/DistUpgradeController.py", line 904, in _checkFreeSpace
required.dir))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)
Then I freed some space and ran into a another variant:
$ update-manager -d
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
extracting 'quantal.tar.gz'
WARNING: Failed to read mirror file
WARNING: Failed to read mirror file
Traceback (most recent call last):
File "/tmp/update-manager-K3_3vM/quantal", line 10, in <module>
sys.exit(main())
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeMain.py", line 235, in main
if app.run():
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeController.py", line 1736, in run
return self.fullUpgrade()
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeController.py", line 1693, in fullUpgrade
if not self.askDistUpgrade():
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeController.py", line 945, in askDistUpgrade
self.cache.required_download)
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeViewGtk3.py", line 625, in confirmChanges
demotions, downloadSize):
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeView.py", line 374, in confirmChanges
apt_pkg.size_to_str(downloadSize)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeViewGtk3.py", line 475, in _handleException
apport_crash(type, value, tb)
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeApport.py", line 47, in apport_crash
_apport_append_logfiles(report)
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeApport.py", line 28, in _apport_append_logfiles
report[f.replace(".","").replace("-","")] = (open(f), )
File "/usr/lib/python2.7/dist-packages/problem_report.py", line 509, in __setitem__
assert k.replace('.', '').replace('-', '').replace('_', '').isalnum()
AssertionError
Original exception was:
Traceback (most recent call last):
File "/tmp/update-manager-K3_3vM/quantal", line 10, in <module>
sys.exit(main())
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeMain.py", line 235, in main
if app.run():
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeController.py", line 1736, in run
return self.fullUpgrade()
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeController.py", line 1693, in fullUpgrade
if not self.askDistUpgrade():
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeController.py", line 945, in askDistUpgrade
self.cache.required_download)
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeViewGtk3.py", line 625, in confirmChanges
demotions, downloadSize):
File "/tmp/update-manager-K3_3vM/DistUpgrade/DistUpgradeView.py", line 374, in confirmChanges
apt_pkg.size_to_str(downloadSize)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)
It gets passed this with LC_ALL=C.UTF-8 in the environment
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: update-manager 1:0.156.14
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Wed Aug 1 20:50:53 2012
GsettingsChanges:
com.ubuntu.update-manager first-run false
com.ubuntu.update-manager launch-time 1343846955
com.ubuntu.update-manager show-details true
com.ubuntu.update-manager window-height 500
com.ubuntu.update-manager window-width 600
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_ZA:en
TERM=xterm
PATH=(custom, user)
LANG=en_ZA.UTF-8
SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: Upgraded to precise on 2012-08-01 (0 days ago)
VarLogDistupgradeTermlog:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1031882/+subscriptions
More information about the foundations-bugs
mailing list