Ubuntu – Upgrade from 13.04 to 14.04

13.0414.04kubuntusoftware-sourcesupgrade

I have Kubuntu 13.04 (unsupported release), and want to upgrade it to 14.04.
When I'm trying to run do-release-upgrade I got this error:

Traceback (most recent call last): File
"/usr/bin/do-release-upgrade", line 123, in
"%(url)s\n") % { 'url' : url }) ValueError: unsupported format character '?' (0xa) at index 55

I know that I should upgrade to 13.10 first. I read the documentation, but when I tried to add old-releases repository to my sources list, something like deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse I get 404 error while updating my sources.

Is this documentation too old to help me? Where can I find newer docs? Or can you show me other way to upgrade my OS?

Best Answer

Edit /usr/bin/do-release-upgrade and comment out lines 123 - 127


# make sure to inform the user if his distro is no longer supported
# this will make it appear in motd (that calls do-release-upgrade in
#  check-new-release mode)
#  if m.no_longer_supported is not None:
#    url = "http://www.ubuntu.com/releaseendoflife"
#    print(_("Your Ubuntu release is not supported anymore."))
#    print(_("For upgrade information, please visit:\n"
#            "%(url)s\n") % { 'url' : url })

Make sure to remove comments after upgrade!

Related Question