[Bug 1071388] Re: UnicodeDecodeError in askYesNoQuestion of DistUpgradeViewText.py

Steve Langasek steve.langasek at canonical.com
Fri Dec 14 21:28:26 UTC 2012


Hello Brian, 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.5 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!

** Changed in: ubuntu-release-upgrader (Ubuntu Quantal)
       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 ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1071388

Title:
  UnicodeDecodeError in askYesNoQuestion of DistUpgradeViewText.py

Status in “ubuntu-release-upgrader” package in Ubuntu:
  Fix Released
Status in “ubuntu-release-upgrader” source package in Quantal:
  Fix Committed

Bug description:
  [Impact]
  People use languages where yes / no characters are unicode will not be able to upgrade in their language to Quantal.

  [Test Case]
  0) In /etc/update-manager/release-upgrades set Prompt=normal
  1) On a precise system install Russian language
  2) In a terminal run:
  LANG=ru_RU.UTF-8 do-release-upgrade
  3) When prompted with:
  Продолжить [дН]
  4) Respond with either character

  With the original version of ubuntu-release-upgrader it will crash.  With the version from quantal-proposed it will not crash.  Remember to use the proposed version, as in step 2, of ubuntu-release-upgrader you will need to use:
  do-release-upgrade -p

  Original report:

  In bug 1068389 a user thought they were experiencing the same bug as
  that one but it was in fact different.  Their comment follows:

  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)

  The same thing would likely happen if the responded No.

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




More information about the foundations-bugs mailing list