P->Q - do-release-upgrade crashed with UnicodeEncodeError: 'ascii' codec can't encode character u'\xbb' in position 1: ordinal not in range(128) in DistUpgrade/DistUpgradeViewText.py", line 143, in showInPager

Bug #1068389 reported by Florian Diesch
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Michael Vogt
Quantal
Fix Released
High
Michael Vogt

Bug Description

= Test Case =
1. install precise
2. edit /etc/update-manager/release-updates, and set 'Prompt=normal'
3. use a language like german or french
4. run sudo do-release-upgrade --frontend=DistUpgradeViewText
5. You will be asked if you want to update your system (still on Precise). Answer 'oui' or 'ja', as the language may be. The process will now advance to grab the Quantal repositories
6. on the "Forsetzen" (or "_Continuer" (continue) prompt press "d"
7. verify FAIL with a UnicodeEncodeError as seen below
8. Verify /etc/apt/sources.list and correct the entries to point to Precise (instead of Quantal) if needed
9. run sudo do-release-upgrade --proposed --frontend=DistUpgradeViewText
10. repeat 4-6 above
11. verify not FAIL

I started
  sudo do-release-upgrade
in 12.04. After downloading new packages list and generating changes it asked me if I want to proceed or see details.:

   Fortsetzen [j/N] Details [d]

I pressed 'd' and do-release-upgrade crashed with stack trace, see the attached /var/log/dist-upgrade/main.log

ProblemType: BugDistroRelease: Ubuntu 12.04
Package: update-manager-core 1:0.156.14.11
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic-pae 3.2.30
Uname: Linux 3.2.0-32-generic-pae i686
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Fri Oct 19 01:51:57 2012
GsettingsChanges:
 com.ubuntu.update-manager first-run false
 com.ubuntu.update-manager launch-time 1350454575
 com.ubuntu.update-manager show-details true
 com.ubuntu.update-manager window-height 574
 com.ubuntu.update-manager window-width 600
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/zshSourcePackage: update-manager
UpgradeStatus: Upgraded to precise on 2012-10-18 (0 days ago)
VarLogDistupgradeAptclonesystemstate.tar.gz: Error: [Errno 13] Keine Berechtigung: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
mtime.conffile..etc.update.manager.release.upgrades: 2012-10-19T01:47:24.264454

Revision history for this message
Florian Diesch (diesch) wrote :
Revision history for this message
Florian Diesch (diesch) wrote :
Revision history for this message
Florian Diesch (diesch) wrote :

The problem doesn't occur if I use C locales:
  sudo LANG=C do-release-upgrade

affects: update-manager (Ubuntu) → ubuntu-release-upgrader (Ubuntu)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. Confirmed with French instead of German.

summary: - do-release-upgrade crashes when I want to see details
+ P->Q - do-release-upgrade crashed with UnicodeEncodeError: 'ascii' codec
+ can't encode character u'\xbb' in position 1: ordinal not in range(128)
+ in DistUpgrade/DistUpgradeViewText.py", line 143, in showInPager
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Critical
assignee: nobody → Canonical Foundations Team (canonical-foundations)
status: New → Triaged
assignee: Canonical Foundations Team (canonical-foundations) → nobody
Michael Vogt (mvo)
Changed in ubuntu-release-upgrader (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Michael Vogt (mvo)
Michael Vogt (mvo)
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Florian, or anyone else affected,

Accepted ubuntu-release-upgrader into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/ubuntu-release-upgrader/1:0.190.2 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 change the bug tag from verification-needed to verification-done. If it does not, 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!

description: updated
tags: added: verification-needed
Changed in ubuntu-release-upgrader (Ubuntu Quantal):
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → Michael Vogt (mvo)
Revision history for this message
Brian Murray (brian-murray) wrote :

I tested this using the test case provided and received a crash when using the not proposed version of the dist-upgrader. After switching to the the -proposed version I no longer receive the crash and was able to view the details of the distribution upgrade.

Changed in ubuntu-release-upgrader (Ubuntu):
importance: Critical → High
Changed in ubuntu-release-upgrader (Ubuntu Quantal):
importance: Critical → High
C de-Avillez (hggdh2)
description: updated
C de-Avillez (hggdh2)
description: updated
C de-Avillez (hggdh2)
description: updated
Revision history for this message
C de-Avillez (hggdh2) wrote :

Confirmed crash on non-proposed, and correct behaviour with the -proposed package. Tagging verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.190.2

---------------
ubuntu-release-upgrader (1:0.190.2) quantal-proposed; urgency=low

  * fix unicode releated crash in non-english locales (LP: #1068389)
 -- Michael Vogt <email address hidden> Fri, 19 Oct 2012 09:30:36 +0200

Changed in ubuntu-release-upgrader (Ubuntu Quantal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

I've updated the meta-release file for quantal to point at quantal-updates now.

Revision history for this message
Коскин Илья (kasak-9) wrote :

i confirm bug with LANG=ru_RU.UTF-8

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you elaborate about how you encountered the bug? Also including your main.log file from /var/log/dist-upgrade/ would help us determine if this is not fixed or something else is wrong. Thanks in advance.

Revision history for this message
Коскин Илья (kasak-9) wrote :

I jist run "do-release-upgrade" and wait until i see

Чтение временных файлов

Проверка менеджера пакетов

Продолжить работу через SSH?

Этот сеанс запущен через ssh. Не рекомендуется выполнять обновление
через ssh, так как в случае неудачи восстановление будет очень
сложным.

Если вы продолжите, дополнительная служба ssh будет запущена на порту
«1022».
Хотите ли вы продолжить?

Продолжить [дН]

and after that I enter letter "д" and it give me error:

Произошла критическая ошибка

Пожалуйста, сообщите об этой ошибке и включите файлы
/var/log/dist-upgrade/main.log и /var/log/dist-upgrade/apt.log в ваш
отчёт. Обновление было отменено.
Ваш оригинальный файл sources.list был сохранён в
/etc/apt/sources.list.distUpgrade.

Traceback (most recent call last):

File "/tmp/update-manager-sw_elb/quantal", line 10, in <module>
sys.exit(main())

File "/tmp/update-manager-sw_elb/DistUpgrade/DistUpgradeMain.py",
line 240, in main
if app.run():

File
"/tmp/update-manager-sw_elb/DistUpgrade/DistUpgradeController.py",
line 1764, in run
return self.fullUpgrade()

File
"/tmp/update-manager-sw_elb/DistUpgrade/DistUpgradeController.py",
line 1616, in fullUpgrade
if not self.prepare():

File
"/tmp/update-manager-sw_elb/DistUpgrade/DistUpgradeController.py",
line 429, in prepare
self._sshMagic()

File
"/tmp/update-manager-sw_elb/DistUpgrade/DistUpgradeController.py",
line 299, in _sshMagic
"Do you want to continue?") % port)

File "/tmp/update-manager-sw_elb/DistUpgrade/DistUpgradeViewText.py",
line 210, in askYesNoQuestion
if res.strip().lower().startswith(_("y")):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position
0: ordinal not in range(128)
=== Command detached from window (Thu Oct 25 13:07:58 2012) ===
=== Command terminated with exit status 1 (Thu Oct 25 13:07:58 2012) ===

i have attached my main.log

Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for your response this is actually a different bug and I've opened bug 1071388 regarding it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.191

---------------
ubuntu-release-upgrader (1:0.191) raring; urgency=low

  * support quantal->raring release upgrades
 -- Michael Vogt <email address hidden> Tue, 30 Oct 2012 09:33:50 +0100

Changed in ubuntu-release-upgrader (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Vaulter (vaulter) wrote :

$ do-release-upgrade -V
do-release-upgrade: version 0.156.14.9
$ cat /etc/issue
Ubuntu 12.04.3 LTS \n \l

$ sudo do-release-upgrade -d
...
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

still gives error when pressing details on russian locale

Revision history for this message
Brian Murray (brian-murray) wrote :

@Vaulter - this is because you are using a version of the release upgrader without out the fix.

2013-09-15 11:49:29,977 INFO release-upgrader version '0.190.1' started

You should have version 0.190.5. Try removing '~/.cache/update-manager-core/meta-release-development' and running the upgrade again. If it fails again please provide your main.log file like you did before. Thanks!

Revision history for this message
Brian Murray (brian-murray) wrote :

Actually, the fix is in version 0.190.4.

Revision history for this message
Thomas Schweikle (tps) wrote :

This bug is there again with upgrading cosmic -> disco

Revision history for this message
Thomas Schweikle (tps) wrote :

$ do-release-upgrade --version
do-release-upgrade: version 18.10.11.6

Revision history for this message
Brian Murray (brian-murray) wrote :

@Thomas - please open a new bug report using 'ubuntu-bug ubuntu-release-upgrader'. Thanks in advance.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.