Announcement

Collapse
No announcement yet.

Upgrading from Kubuntu 20.04 LTS to 22.04 LTS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Upgrading from Kubuntu 20.04 LTS to 22.04 LTS

    I tried upgrading my Kubuntu 20.04 using: sudo do-release-upgrade and got the following failure


    ​sudo do-release-upgrade
    [sudo] password for vgharris:
    Checking for a new Ubuntu release
    Traceback (most recent call last):
    File "/usr/bin/lsb_release", line 95, in <module>
    main()
    File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 398, in get_distro_informat
    ion
    distinfo = guess_debian_release()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 288, in guess_debian_releas
    e
    get_distro_info(distinfo['ID'])
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    ValueError: could not convert string to float: '6.06 LTS'
    Traceback (most recent call last):
    File "/usr/bin/lsb_release", line 95, in <module>
    main()
    File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 398, in get_distro_informat
    ion
    distinfo = guess_debian_release()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 288, in guess_debian_releas
    e
    get_distro_info(distinfo['ID'])
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    ValueError: could not convert string to float: '6.06 LTS'
    Traceback (most recent call last):
    File "/usr/bin/lsb_release", line 95, in <module>
    main()
    File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 398, in get_distro_informat
    ion
    distinfo = guess_debian_release()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 288, in guess_debian_releas
    e
    get_distro_info(distinfo['ID'])
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    ValueError: could not convert string to float: '6.06 LTS'
    lsb_release returned exitcode: 1
    Traceback (most recent call last):
    File "/usr/bin/lsb_release", line 95, in <module>
    main()
    File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 398, in get_distro_informat
    ion
    distinfo = guess_debian_release()
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 288, in guess_debian_releas
    e
    get_distro_info(distinfo['ID'])
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
    ValueError: could not convert string to float: '6.06 LTS'
    lsb_release returned exitcode: 1
    There is no development version of an LTS available.
    To upgrade to the latest non-LTS development release
    set Prompt=normal in /etc/update-manager/release-upgrades.
    vgharris@ST2000DM001-1ER164:~$

    ​I don't really want a non-LTS version. Do you have any recommendations?

    #2
    Make sure you are fully up to date with apt, and have no errors or anything there, and try the official instructions, to see if there is any difference.
    https://help.ubuntu.com/community/JammyUpgrades/Kubuntu

    The instruction given is the same for 20.04-22.04 upgrades, and the commands provided are a little different that what you used.

    Provide the outputs of cat /etc/lsb-release and cat /usr/lib/os-release, I wonder if there is an issue with your lsb_release info.

    20.04 is still alive and supported by Ubuntu, (except for Kubuntu-related updates to Plasma). You won't be able to upgrade to a non-LTS release, nor to an End -of-Life release, so the only path is to 22.04.

    Comment


      #3
      Thanks for your help! Here are the results you asked for. I don't see anything about Kubuntu.

      vgharris@ST2000DM001-1ER164:~$ cat /etc/lsb-release and cat /usr/lib/os-release
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=20.04
      DISTRIB_CODENAME=focal
      DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
      cat: and: No such file or directory
      cat: cat: No such file or directory
      PRETTY_NAME="Deepin 15"
      NAME="Deepin"
      VERSION_ID="15.11"
      VERSION="15.11"
      ID=deepin
      HOME_URL="https://www.deepin.org/"
      BUG_REPORT_URL="http://feedback.deepin.org/feedback/"

      ​Respectfully,
      vgharris

      Comment


        #4
        That should be two separate commands:
        cat /etc/lsb-release
        and
        cat /usr/lib/os-release​
        Though I think you are showing the content of both files, as requested

        Originally posted by vgharris View Post
        I don't see anything about Kubuntu.
        You won't , since Kubuntu is Ubuntu. They are not separate distros.


        Originally posted by vgharris View Post
        Code:
        PRETTY_NAME="Deepin 15"
        NAME="Deepin"
        VERSION_ID="15.11"
        VERSION="15.11"
        ID=deepin
        HOME_URL="https://www.deepin.org/"
        BUG_REPORT_URL="http://feedback.deepin.org/feedback/"

        But I have no idea why you have Deepin stuff in there. that isn't even Ubuntu, but based on Debian.
        I am sure that if this is a mixed system somehow, this would easily break things like this, due to mixed components, and likely missing items.

        Comment


          #5
          Originally posted by claydoh View Post
          […]
          But I have no idea why you have Deepin stuff in there. […]
          I am sure that if this is a mixed system somehow, this would easily break things like this, due to mixed components, and likely missing items.
          vgharris: the output of sudo apt update in Konsole could also give us some clues (if you post it here, please use CODE tags).
          Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
          Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

          get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
          install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

          Comment

          Working...
          X