Well I can confirm that line 661 was the one that tried to log error, but changing logging.error("Dist-upgrade failed: '%s'", e) to logging.error("Dist-upgrade failed: '%s'", unicode(e))
only results in correctly printing 'Dist-upgrade' failed error to log file: 2014-04-22 20:06:46,539 DEBUG The package 'update-manager-kde' is marked for removal but it's in the removal blacklist 2014-04-22 20:06:49,343 ERROR 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ć.' 2014-04-22 20:06:49,345 DEBUG abort called and does NOT fix the root cause. (Meaning that this change only adds one line to logfile). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1310053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs