3

When trying to upgrade to 13.04 from 12.10, I get the following error:

Traceback (most recent call last):
  File "/usr/bin/do-release-upgrade", line 108, in <module>
    print(_("Checking for a new Ubuntu release"))
UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 32: ordinal not in range(128)
belacqua
  • 23,120
user2188463
  • 31
  • 1
  • 3
  • 1
    Does your username contains no-ascii characters? – Seçkin Savaşçı Apr 22 '13 at 12:00
  • No. It my user name is 'luis' – user2188463 Apr 24 '13 at 08:12
  • 2
    The problem was that the regional configuration was mis-configured. I do not know the reason, but it included a language Chinese-like language. I did not installed, and therefore it could not be uninstalled. What I did is to put it behind English. – user2188463 Apr 24 '13 at 22:03
  • 2
    @user2188463 If you think that your specifically problem was solved, please, create a new answer. That is more useful than be in a comment. Thanks! – Lucio Apr 24 '13 at 22:09

3 Answers3

3

Same problem here with upgrade from server Ubuntu 15.10 to 16.04. The solution which helped me was:

LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 do-release-upgrade

Original answer: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1278280/comments/9

Chronos
  • 929
1

To paraphrase the OP's comment, the problem was that the regional configuration was mis-configured. For some reason, the system was using a Chinese-like language. It wasn't installed manually, and couldn't be uninstalled either. To fix this error, the system locale was changed.

See: Some menus are in Chinese/Japanese!

belacqua
  • 23,120
0

I had the same problem when upgrading from Xubuntu 13.10 to 14.04. I changed the system-wide locale from Finnish to English/USA, and the upgrade succeeded.

akaihola
  • 580