do-release-update crashes on lines 126-127

Bug #1499391 reported by Andreev Alexandr
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I tried to upgrade my Xubuntu 14.10 to Xubuntu 15.04, I got a message:

-------------------------------------------------------------------------------------------------
Проверка наличия нового релиза Ubuntu
Ваша версия Ubuntu больше не поддерживается.
Traceback (most recent call last):
  File "/usr/bin/do-release-upgrade", line 127, in <module>
    "%(url)s\n") % { 'url' : url })
ValueError: unsupported format character '?' (0xa) at index 55
-------------------------------------------------------------------------------------------------

Then I searched through the internet and solved this problem. The solution for me was to edit with "gedit" file "/usr/bin/do-release-upgrade" and change lines 126 and 127:

From
----------------------------------------------------------------------------
print(_("For upgrade information, please visit:\n"
 "%(url)s\n") % { 'url' : url })
----------------------------------------------------------------------------

To
------------------------------------------------------------------------------------------------------------------
print(_("For upgrade information, please visit:\n %(url)s\n") % { 'url' : url })
------------------------------------------------------------------------------------------------------------------

And after that, do-release-upgrade successfully started upgrading Xubuntu.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Boris Malkov (hikari968) wrote :

I've tried to upgrade from 16.10 to 17.04 and got the same error.

Changed /usr/sbin/do-release-upgrade from

    print(_("For upgrade information, please visit:\n"
            "%(url)s\n") % { 'url' : url })

to

    print(_("For upgrade information, please visit:\n %(url)s\n") % { 'url' : url })

and upgrade have started.

Ubuntu - ignoring bugs over centuries! ))

Revision history for this message
Igor Starikov (idlesign) wrote :

The same on trying to upgrade from 17.10 to 18.04.1

#2 helped

The issue may somehow be related to gettext with certain locales.

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

Other bug subscribers

Remote bug watches

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