Unicode decode error during upgrade to 14.04 if sources.list contains non-ascii characters and locale is non-US
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-clone (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Trusty |
Fix Released
|
High
|
Michael Vogt | ||
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Triaged
|
High
|
Unassigned |
Bug Description
TEST CASE:
1. On Saucy or Precise add non-ascii characters to the file /etc/apt/
# Français accentué
deb http://
deb http://
deb http://
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-
sys.
File "/tmp/ubuntu-
save_
File "/tmp/ubuntu-
scrub_
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
"./
File "/tmp/ubuntu-
for line in f.readlines():
File "/usr/lib/
return codecs.
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-
<module>
sys.exit(main())
File
"/tmp/ubuntu-
line 240, in main
save_system_
File
"/tmp/ubuntu-
line 133, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-
line 150, in save_state
self._write_
File "/tmp/ubuntu-
line 231, in _write_
"./etc/
File "/tmp/ubuntu-
line 251, in _add_file_
for line in f.readlines():
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position
2604: ordinal not in range(128)
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 3.11.0-
NonfreeKernelMo
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
CrashDB: ubuntu
Date: Fri Apr 18 11:54:23 2014
DistributionCha
# This is a distribution channel descriptor
# For more information see http://
canonical-
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
PackageArchitec
SourcePackage: ubuntu-
Symptom: release-upgrade
UpgradeStatus: Upgraded to saucy on 2014-04-18 (0 days ago)
Related branches
- Ubuntu branches: Pending requested
-
Diff: 81663 lines (+14939/-14920)130 files modifiedDistUpgrade/DistUpgradeApport.py (+8/-10)
DistUpgrade/DistUpgradeCache.py (+18/-4)
DistUpgrade/DistUpgradeMain.py (+1/-0)
DistUpgrade/DistUpgradeVersion.py (+1/-1)
DistUpgrade/DistUpgradeView.py (+6/-0)
DistUpgrade/DistUpgradeViewGtk3.py (+18/-9)
DistUpgrade/DistUpgradeViewText.py (+13/-4)
DistUpgrade/build-tarball.sh (+3/-3)
data/mirrors.cfg (+152/-0)
data/removal_blacklist.cfg (+1/-1)
debian/changelog (+64/-0)
po/af.po (+124/-126)
po/am.po (+125/-127)
po/an.po (+126/-128)
po/ar.po (+122/-124)
po/ast.po (+119/-121)
po/az.po (+124/-126)
po/be.po (+125/-127)
po/bg.po (+122/-124)
po/bn.po (+119/-121)
po/bo.po (+122/-124)
po/br.po (+124/-126)
po/bs.po (+119/-121)
po/ca.po (+122/-124)
po/ca@valencia.po (+135/-131)
po/ceb.po (+129/-131)
po/ckb.po (+126/-128)
po/crh.po (+122/-124)
po/cs.po (+122/-124)
po/csb.po (+124/-126)
po/cv.po (+129/-131)
po/cy.po (+127/-129)
po/da.po (+119/-121)
po/de.po (+119/-121)
po/dv.po (+126/-128)
po/el.po (+122/-124)
po/en_AU.po (+153/-155)
po/en_CA.po (+153/-155)
po/en_GB.po (+139/-141)
po/eo.po (+120/-122)
po/es.po (+122/-124)
po/et.po (+125/-127)
po/eu.po (+122/-124)
po/fa.po (+129/-131)
po/fi.po (+121/-123)
po/fil.po (+127/-129)
po/fo.po (+126/-128)
po/fr.po (+122/-124)
po/fr_CA.po (+122/-124)
po/fur.po (+127/-129)
po/fy.po (+126/-128)
po/ga.po (+129/-131)
po/gd.po (+119/-121)
po/gl.po (+122/-124)
po/gu.po (+129/-131)
po/gv.po (+129/-131)
po/he.po (+119/-121)
po/hi.po (+122/-124)
po/hr.po (+119/-121)
po/hu.po (+122/-124)
po/hy.po (+129/-131)
po/id.po (+123/-125)
po/is.po (+127/-129)
po/it.po (+123/-125)
po/ja.po (+119/-121)
po/jv.po (+129/-131)
po/ka.po (+124/-126)
po/kk.po (+125/-127)
po/km.po (+122/-124)
po/kn.po (+126/-128)
po/ko.po (+119/-121)
po/ku.po (+124/-126)
po/ky.po (+129/-131)
po/lb.po (+129/-131)
po/lo.po (+129/-131)
po/lt.po (+119/-121)
po/lv.po (+119/-121)
po/mhr.po (+129/-131)
po/mk.po (+124/-126)
po/ml.po (+126/-128)
po/mn.po (+126/-128)
po/mr.po (+126/-128)
po/ms.po (+122/-124)
po/mus.po (+129/-131)
po/my.po (+126/-128)
po/nb.po (+119/-121)
po/nds.po (+126/-128)
po/ne.po (+126/-128)
po/nl.po (+119/-121)
po/nn.po (+122/-124)
po/oc.po (+122/-124)
po/pa.po (+124/-126)
po/pl.po (+119/-121)
po/ps.po (+129/-131)
po/pt.po (+126/-128)
po/pt_BR.po (+119/-121)
po/qu.po (+129/-131)
po/ro.po (+124/-126)
po/ru.po (+122/-124)
po/rw.po (+129/-131)
po/sc.po (+129/-131)
po/sco.po (+127/-129)
po/sd.po (+126/-128)
po/se.po (+129/-131)
po/shn.po (+129/-131)
po/si.po (+127/-129)
po/sk.po (+119/-121)
po/sl.po (+119/-121)
po/sq.po (+119/-121)
po/sr.po (+125/-127)
po/sv.po (+177/-179)
po/ta.po (+126/-128)
po/ta_LK.po (+126/-128)
po/te.po (+122/-124)
po/tg.po (+129/-131)
po/th.po (+122/-124)
po/tl.po (+124/-126)
po/tr.po (+119/-121)
po/ug.po (+120/-122)
po/uk.po (+119/-121)
po/ur.po (+129/-131)
po/uz.po (+126/-128)
po/vi.po (+122/-124)
po/xh.po (+129/-131)
po/zh_CN.po (+119/-121)
po/zh_HK.po (+119/-121)
po/zh_TW.po (+119/-121)
po/zu.po (+129/-131)
utils/demoted.cfg (+9/-2)
utils/demoted.cfg.precise (+5/-18)
- Iain Lane (community): Approve
- Barry Warsaw: Pending requested
-
Diff: 113 lines (+59/-5)4 files modifiedapt-clone (+1/-0)
apt_clone.py (+5/-4)
tests/test_clone.py (+2/-1)
tests/test_lp1309447.py (+51/-0)
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu): | |
milestone: | none → trusty-updates |
assignee: | nobody → Michael Vogt (mvo) |
summary: |
- Unicode decode error during upgrade to 14.04 + Unicode decode error during upgrade to 14.04 if sources.list contains + non-ascii characters and locale is non-US |
description: | updated |
tags: | added: patch |
tags: | added: trusty |
Changed in ubuntu-release-upgrader (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-release-upgrader (Ubuntu Trusty): | |
status: | Fix Released → Fix Committed |
Changed in ubuntu-release-upgrader (Ubuntu Trusty): | |
status: | Fix Committed → In Progress |
Changed in apt-clone (Ubuntu): | |
assignee: | Michael Vogt (mvo) → Brian Murray (brian-murray) |
Changed in ubuntu-release-upgrader (Ubuntu Trusty): | |
status: | In Progress → Confirmed |
Changed in apt-clone (Ubuntu): | |
milestone: | trusty-updates → none |
Changed in ubuntu-release-upgrader (Ubuntu Trusty): | |
status: | Confirmed → Triaged |
Thanks for your report.
Could you open a terminal and run the command:
find /etc/apt
and paste the output in this bug report? Thanks.