[Bug 1310053] Re: 13.10 to 14.04 upgrade: UnicodeEncodeError: 'ascii' codec can't encode character u'\xab' in position 13: ordinal not in range(128) Logged from file DistUpgradeCache.py, line 661 in apt.log

Sebastian "Nait" Kacprzak naicik at gmail.com
Sat May 3 07:21:31 UTC 2014


Ok I tested it on pl locale. Looks like in newer version it looks
better, because I got

DEBUG The package 'update-manager-kde' is marked for removal but it's in
the removal blacklist

line in main.log (which previoulsy was not there), but unfortunetlly my proposed fix for DistUpgradeCache was invalid
since error was still shown in apt.log :
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0119' in position 51: ordinal not in range(128)
Logged from file DistUpgradeCache.py, line 661

(\u0119 i ę character which probably appeared in polish version of blacklist line:  
Dist-upgrade failed: 'Pakiet "update-manager-kde" jest oznaczony do usunięcia, lecz znajduje się na liście pakietów, których nie należy usuwać.' 
I do not know why it try to encode this line when it shown english version in main.log)

I attach patch that fixes apt.log issue for me.

** Patch added: "patchDistUpgradeCache.patch"
   https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1310053/+attachment/4103880/+files/patchDistUpgradeCache.patch

** Tags removed: verification-needed
** Tags added: verification-failed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1310053

Title:
  13.10 to 14.04 upgrade: UnicodeEncodeError: 'ascii' codec can't encode
  character u'\xab' in position 13: ordinal not in range(128) Logged
  from file DistUpgradeCache.py, line 661 in apt.log

Status in “ubuntu-release-upgrader” package in Ubuntu:
  Triaged
Status in “ubuntu-release-upgrader” source package in Trusty:
  Fix Committed

Bug description:
  TEST CASE:
  - install raring and ubuntu-release-upgrader-qt
  - use a language like de, it or fr
  - run do-release-upgrader --frontend DistUpgradeViewText
  - verify that you see a error message in apt.log as described in the bug (unfortunately not everyone can reproduce this issue, I reproduced it by editing DistUpgradeCache.py to always throw a blacklisted package expection)
  - if the error does not show up, canncel the upgrade, run "vi /tmp/*/removal_blacklist.cfg" and add a package from the removal list that was displayed during the upgrade and run /tmp/*/trusty

  - run the upgrade using "do-release-upgrade --proposed --frontend DistUpgradeViewText"
  - verify that there is no exception in apt.log

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ubuntu-release-upgrader-core 1:0.205.4
  ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
  Uname: Linux 3.11.0-15-generic i686
  ApportVersion: 2.12.5-0ubuntu2.2
  Architecture: i386
  CrashDB: ubuntu
  Date: Sat Apr 19 19:50:56 2014
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to saucy on 2014-04-19 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1310053/+subscriptions



More information about the foundations-bugs mailing list