[Bug 1309447] Re: Unicode decode error during upgrade to 14.04 if sources.list contains non-ascii characters and locale is non-US
Brian Murray
brian at ubuntu.com
Tue Apr 29 18:34:11 UTC 2014
Hello Mekk, or anyone else affected,
Accepted ubuntu-release-upgrader into trusty-proposed. The package will
build now and be available at http://launchpad.net/ubuntu/+source
/ubuntu-release-upgrader/1:0.220.3 in a few hours, and then in the
-proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Your feedback will aid us getting this update
out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed. In either case, details of your testing will help
us make a better decision.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!
** Also affects: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided
Status: New
** Changed in: ubuntu-release-upgrader (Ubuntu Trusty)
Milestone: None => trusty-updates
** Changed in: ubuntu-release-upgrader (Ubuntu Trusty)
Importance: Undecided => High
** Changed in: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided => High
** Changed in: ubuntu-release-upgrader (Ubuntu Trusty)
Status: New => Triaged
** Changed in: ubuntu-release-upgrader (Ubuntu)
Status: New => Triaged
** Changed in: ubuntu-release-upgrader (Ubuntu Trusty)
Status: Triaged => Fix Committed
** Tags added: verification-needed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt-clone in Ubuntu.
https://bugs.launchpad.net/bugs/1309447
Title:
Unicode decode error during upgrade to 14.04 if sources.list contains
non-ascii characters and locale is non-US
Status in “apt-clone” package in Ubuntu:
In Progress
Status in “ubuntu-release-upgrader” package in Ubuntu:
Triaged
Status in “apt-clone” source package in Trusty:
In Progress
Status in “ubuntu-release-upgrader” source package in Trusty:
Fix Committed
Bug description:
TEST CASE:
1. On Saucy or Precise add non-ascii characters to the file /etc/apt/sources.list like:
# Français accentué
deb http://archive.ubuntu.com/ubuntu saucy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu saucy-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu saucy-security main restricted universe multiverse
2. Upgrade with a non-us locale
LANG=fr_FR.utf8 do-release-upgrade
ACTUAL RESULT
This crash:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-ui8dvi/trusty", line 10, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-ui8dvi/DistUpgrade/DistUpgradeMain.py", line 240, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-ui8dvi/DistUpgrade/DistUpgradeMain.py", line 133, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-ui8dvi/DistUpgrade/apt_clone.py", line 150, in save_state
self._write_state_sources_list(tar, scrub_sources)
File "/tmp/ubuntu-release-upgrader-ui8dvi/DistUpgrade/apt_clone.py", line 231, in _write_state_sources_list
"./etc/apt/sources.list")
File "/tmp/ubuntu-release-upgrader-ui8dvi/DistUpgrade/apt_clone.py", line 251, in _add_file_to_tar_with_password_check
for line in f.readlines():
File "/usr/lib/python2.7/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
== Original report ==
do-release-upgrade fails as below. I am using Polish utf-8 locale, so I suspect something called reports error in Polish with non-ascii characters...
File "/tmp/ubuntu-release-upgrader-j2xvu5/trusty", line 10, in
<module>
sys.exit(main())
File
"/tmp/ubuntu-release-upgrader-j2xvu5/DistUpgrade/DistUpgradeMain.py",
line 240, in main
save_system_state(logdir)
File
"/tmp/ubuntu-release-upgrader-j2xvu5/DistUpgrade/DistUpgradeMain.py",
line 133, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-j2xvu5/DistUpgrade/apt_clone.py",
line 150, in save_state
self._write_state_sources_list(tar, scrub_sources)
File "/tmp/ubuntu-release-upgrader-j2xvu5/DistUpgrade/apt_clone.py",
line 231, in _write_state_sources_list
"./etc/apt/sources.list")
File "/tmp/ubuntu-release-upgrader-j2xvu5/DistUpgrade/apt_clone.py",
line 251, in _add_file_to_tar_with_password_check
for line in f.readlines():
File "/usr/lib/python2.7/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position
2604: ordinal not in range(128)
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ubuntu-release-upgrader-core 1:0.205.5
ProcVersionSignature: Ubuntu 3.11.0-19.33~ppa1-generic-tuxonice 3.11.10.5
Uname: Linux 3.11.0-19-generic-tuxonice x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
CrashDB: ubuntu
Date: Fri Apr 18 11:54:23 2014
DistributionChannelDescriptor:
# This is a distribution channel descriptor
# For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
canonical-oem-somerville-oneiric-amd64-20111116-1
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-05-07 (711 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric" - Build amd64 LIVE Binary 20111116-18:24
MarkForUpload: True
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to saucy on 2014-04-18 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-clone/+bug/1309447/+subscriptions
More information about the foundations-bugs
mailing list