Problem to update from Lubuntu 22.04.5 LTS to 24.04.2 LTS

Hi everyone

Firstly, I would like to say hello and how are you since this is the first time that I use this forum. Also, I must confess that I am a bit of a newbie when it comes to Linux and computers, but I like learning!

I would like to upgrade my current Lubuntu 22.04.5 LTS to 24.04.2 LTS in order to increase the security of my system. Firstly, I tried through the “Apply full upgrade”. It looks like it updated it, but when I use the command “lsb_release -a” it returned the following result:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

I tried different few commands (I have attached the whole session log from the terminal), but with no luck. Does anyone know why I cannot upgrade my system?

Session log:

(base) alejandrolf@alejandro-lifebooka357:~$ sudo do-release-upgrade -m desktop -f DistUpgradeViewKDE
[sudo] password for alejandrolf: 
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo do-release-upgrade -m desktop -f DistUpgradeViewKDE
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo apt-get update
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease                                                           
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                     
Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease                                          
Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:7 https://packages.mozilla.org/apt mozilla InRelease
Reading package lists... Done
W: https://dl.winehq.org/wine-builds/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  0ad-data 0ad-data-common assaultcube-data astrometry.net bodr chemical-mime-data corsix-th-data fonts-wine game-data-packager
  game-data-packager-runtime gir1.2-peas-1.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0 glib-networking:i386 gnumeric gnumeric-common
  gnumeric-doc grilo-plugins-0.3-base gstreamer1.0-plugins-good:i386 gstreamer1.0-pulseaudio gstreamer1.0-x:i386 icoutils indi-bin
  jq kstars-data libaa1:i386 libao-common libao4 libastrometry0 libavc1394-0:i386 libboost-dev libboost1.74-dev libcaca0:i386
  libcairo-gobject2:i386 libcfitsio-bin libcfitsio9 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386
  libdv4:i386 libdvbv5-0 libenet7 liberfa1 libfaudio0:i386 libflashrom1 libfmt8 libftdi1-2 libgcu0v5 libgdk-pixbuf-2.0-0:i386
  libgl1:i386 libgl1-mesa-dri:i386 libgloox18 libglx-mesa0:i386 libglx0:i386 libgoffice-0.10-10 libgoffice-0.10-10-common
  libgom-1.0-0 libgrilo-0.3-0 libgsf-1-114 libgsf-1-common libgsl27 libgslcblas0 libgstreamer-plugins-good1.0-0:i386
  libgudev-1.0-0:i386 libiec61883-0:i386 libindi-data libindi-plugins libindialignmentdriver1 libindidriver1 libjq1
  libjs-jquery-datatables libjs-jquery-hotkeys libjs-jquery-isonscreen libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-jquery-throttle-debounce libkf5plotting5 liblbfgsb0 libllvm13 liblua5.3-0 libmediaart-2.0-0 libmikmod3 libmodplug1
  libmp3lame0:i386 libmpg123-0:i386 libmpv1 libmujs1 libnova-0.16-0 libonig5 libopenal1:i386 libopenblas-dev libopenblas-pthread-dev
  libopenblas0 libopusfile0 libpcap0.8:i386 libpciaccess0:i386 libpeas-1.0-0 libpeas-common libproxy1v5:i386 libqt5keychain1
  libqt5websockets5 libraw1394-11:i386 libraw20 libsdl-gfx1.2-5 libsdl-mixer1.2 libsdl-ttf2.0-0 libsdl2-mixer-2.0-0 libshout3:i386
  libslang2:i386 libsndio7.0:i386 libsoup2.4-1:i386 libspeex1:i386 libstb0:i386 libstellarsolver1 libtag1v5:i386
  libtag1v5-vanilla:i386 libtagc0 libtotem-plparser-common libtotem-plparser18 libtotem0 libtracker-sparql-3.0-0 libtwolame0:i386
  libvkd3d-shader1:i386 libvkd3d1:i386 libvpx7:i386 libvulkan1:i386 libwavpack1:i386 libwcs7 libwine:i386 libwpe-1.0-1
  libwpebackend-fdo-1.0-1 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
  libxcb-xfixes0:i386 libxdamage1:i386 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-3 libxshmfence1:i386 libxsimd-dev libxv1:i386 libyelp0 libz-mingw-w64 lincity-ng-data lua-filesystem lua-lpeg
  mesa-vulkan-drivers:i386 micropolis-data pxlib1 python3-astrometry python3-astropy python3-beniget python3-cov-core
  python3-coverage python3-dateutil python3-decorator python3-erfa python3-exif python3-exifread python3-gast python3-hypothesis
  python3-natsort python3-nose2 python3-ply python3-pycryptodome python3-pytest-arraydiff python3-pytest-astropy
  python3-pytest-astropy-header python3-pytest-cov python3-pytest-doctestplus python3-pytest-filter-subpackage python3-pytest-mock
  python3-pytest-openfiles python3-pytest-remotedata python3-pythran python3-pyxattr python3-scipy python3-sortedcontainers
  python3-wxgtk4.0 rtmpdump source-extractor timidity totem-common vkd3d-compiler:i386 wine32:i386 xfconf xplanet xplanet-images
  yelp yelp-xsl youtube-dl
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  r-base r-recommended
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  0ad-data 0ad-data-common assaultcube-data astrometry.net bodr chemical-mime-data corsix-th-data fonts-wine game-data-packager
  game-data-packager-runtime gir1.2-peas-1.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0 glib-networking:i386 gnumeric gnumeric-common
  gnumeric-doc grilo-plugins-0.3-base gstreamer1.0-plugins-good:i386 gstreamer1.0-pulseaudio gstreamer1.0-x:i386 icoutils indi-bin
  jq kstars-data libaa1:i386 libao-common libao4 libastrometry0 libavc1394-0:i386 libboost-dev libboost1.74-dev libcaca0:i386
  libcairo-gobject2:i386 libcfitsio-bin libcfitsio9 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386
  libdv4:i386 libdvbv5-0 libenet7 liberfa1 libfaudio0:i386 libflashrom1 libfmt8 libftdi1-2 libgcu0v5 libgdk-pixbuf-2.0-0:i386
  libgl1:i386 libgl1-mesa-dri:i386 libgloox18 libglx-mesa0:i386 libglx0:i386 libgoffice-0.10-10 libgoffice-0.10-10-common
  libgom-1.0-0 libgrilo-0.3-0 libgsf-1-114 libgsf-1-common libgsl27 libgslcblas0 libgstreamer-plugins-good1.0-0:i386
  libgudev-1.0-0:i386 libiec61883-0:i386 libindi-data libindi-plugins libindialignmentdriver1 libindidriver1 libjq1
  libjs-jquery-datatables libjs-jquery-hotkeys libjs-jquery-isonscreen libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-jquery-throttle-debounce libkf5plotting5 liblbfgsb0 libllvm13 liblua5.3-0 libmediaart-2.0-0 libmikmod3 libmodplug1
  libmp3lame0:i386 libmpg123-0:i386 libmpv1 libmujs1 libnova-0.16-0 libonig5 libopenal1:i386 libopenblas-dev libopenblas-pthread-dev
  libopenblas0 libopusfile0 libpcap0.8:i386 libpciaccess0:i386 libpeas-1.0-0 libpeas-common libproxy1v5:i386 libqt5keychain1
  libqt5websockets5 libraw1394-11:i386 libraw20 libsdl-gfx1.2-5 libsdl-mixer1.2 libsdl-ttf2.0-0 libsdl2-mixer-2.0-0 libshout3:i386
  libslang2:i386 libsndio7.0:i386 libsoup2.4-1:i386 libspeex1:i386 libstb0:i386 libstellarsolver1 libtag1v5:i386
  libtag1v5-vanilla:i386 libtagc0 libtotem-plparser-common libtotem-plparser18 libtotem0 libtracker-sparql-3.0-0 libtwolame0:i386
  libvkd3d-shader1:i386 libvkd3d1:i386 libvpx7:i386 libvulkan1:i386 libwavpack1:i386 libwcs7 libwine:i386 libwpe-1.0-1
  libwpebackend-fdo-1.0-1 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
  libxcb-xfixes0:i386 libxdamage1:i386 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-3 libxshmfence1:i386 libxsimd-dev libxv1:i386 libyelp0 libz-mingw-w64 lincity-ng-data lua-filesystem lua-lpeg
  mesa-vulkan-drivers:i386 micropolis-data pxlib1 python3-astrometry python3-astropy python3-beniget python3-cov-core
  python3-coverage python3-dateutil python3-decorator python3-erfa python3-exif python3-exifread python3-gast python3-hypothesis
  python3-natsort python3-nose2 python3-ply python3-pycryptodome python3-pytest-arraydiff python3-pytest-astropy
  python3-pytest-astropy-header python3-pytest-cov python3-pytest-doctestplus python3-pytest-filter-subpackage python3-pytest-mock
  python3-pytest-openfiles python3-pytest-remotedata python3-pythran python3-pyxattr python3-scipy python3-sortedcontainers
  python3-wxgtk4.0 rtmpdump source-extractor timidity totem-common vkd3d-compiler:i386 wine32:i386 xfconf xplanet xplanet-images
  yelp yelp-xsl youtube-dl
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  r-base r-recommended
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease                          
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease                                            
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                     
Hit:5 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease                                                           
Hit:6 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                                     
Hit:7 https://packages.mozilla.org/apt mozilla InRelease                                           
Reading package lists... Done
W: https://dl.winehq.org/wine-builds/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
(base) alejandrolf@alejandro-lifebooka357:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  0ad-data 0ad-data-common assaultcube-data astrometry.net bodr chemical-mime-data corsix-th-data fonts-wine game-data-packager
  game-data-packager-runtime gir1.2-peas-1.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0 glib-networking:i386 gnumeric gnumeric-common
  gnumeric-doc grilo-plugins-0.3-base gstreamer1.0-plugins-good:i386 gstreamer1.0-pulseaudio gstreamer1.0-x:i386 icoutils indi-bin
  jq kstars-data libaa1:i386 libao-common libao4 libastrometry0 libavc1394-0:i386 libboost-dev libboost1.74-dev libcaca0:i386
  libcairo-gobject2:i386 libcfitsio-bin libcfitsio9 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386
  libdv4:i386 libdvbv5-0 libenet7 liberfa1 libfaudio0:i386 libflashrom1 libfmt8 libftdi1-2 libgcu0v5 libgdk-pixbuf-2.0-0:i386
  libgl1:i386 libgl1-mesa-dri:i386 libgloox18 libglx-mesa0:i386 libglx0:i386 libgoffice-0.10-10 libgoffice-0.10-10-common
  libgom-1.0-0 libgrilo-0.3-0 libgsf-1-114 libgsf-1-common libgsl27 libgslcblas0 libgstreamer-plugins-good1.0-0:i386
  libgudev-1.0-0:i386 libiec61883-0:i386 libindi-data libindi-plugins libindialignmentdriver1 libindidriver1 libjq1
  libjs-jquery-datatables libjs-jquery-hotkeys libjs-jquery-isonscreen libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-jquery-throttle-debounce libkf5plotting5 liblbfgsb0 libllvm13 liblua5.3-0 libmediaart-2.0-0 libmikmod3 libmodplug1
  libmp3lame0:i386 libmpg123-0:i386 libmpv1 libmujs1 libnova-0.16-0 libonig5 libopenal1:i386 libopenblas-dev libopenblas-pthread-dev
  libopenblas0 libopusfile0 libpcap0.8:i386 libpciaccess0:i386 libpeas-1.0-0 libpeas-common libproxy1v5:i386 libqt5keychain1
  libqt5websockets5 libraw1394-11:i386 libraw20 libsdl-gfx1.2-5 libsdl-mixer1.2 libsdl-ttf2.0-0 libsdl2-mixer-2.0-0 libshout3:i386
  libslang2:i386 libsndio7.0:i386 libsoup2.4-1:i386 libspeex1:i386 libstb0:i386 libstellarsolver1 libtag1v5:i386
  libtag1v5-vanilla:i386 libtagc0 libtotem-plparser-common libtotem-plparser18 libtotem0 libtracker-sparql-3.0-0 libtwolame0:i386
  libvkd3d-shader1:i386 libvkd3d1:i386 libvpx7:i386 libvulkan1:i386 libwavpack1:i386 libwcs7 libwine:i386 libwpe-1.0-1
  libwpebackend-fdo-1.0-1 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
  libxcb-xfixes0:i386 libxdamage1:i386 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-3 libxshmfence1:i386 libxsimd-dev libxv1:i386 libyelp0 libz-mingw-w64 lincity-ng-data lua-filesystem lua-lpeg
  mesa-vulkan-drivers:i386 micropolis-data pxlib1 python3-astrometry python3-astropy python3-beniget python3-cov-core
  python3-coverage python3-dateutil python3-decorator python3-erfa python3-exif python3-exifread python3-gast python3-hypothesis
  python3-natsort python3-nose2 python3-ply python3-pycryptodome python3-pytest-arraydiff python3-pytest-astropy
  python3-pytest-astropy-header python3-pytest-cov python3-pytest-doctestplus python3-pytest-filter-subpackage python3-pytest-mock
  python3-pytest-openfiles python3-pytest-remotedata python3-pythran python3-pyxattr python3-scipy python3-sortedcontainers
  python3-wxgtk4.0 rtmpdump source-extractor timidity totem-common vkd3d-compiler:i386 wine32:i386 xfconf xplanet xplanet-images
  yelp yelp-xsl youtube-dl
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  r-base r-recommended
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
(base) alejandrolf@alejandro-lifebooka357:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy
(base) alejandrolf@alejandro-lifebooka357:~$ sudo do-release-upgrade -m desktop -f DistUpgradeViewKDE
[sudo] password for alejandrolf: 
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

Welcome to Ubuntu Discourse :slight_smile:

Let’s break this down into a logical process that is the recommended path.

  • backup any important data
  • upgrade using the recommended upgrade path

So, for the best way to upgrade, read this please.

Ignore the fact that it says for server, it applies also to desktop installs.

Very important: do NOT use the -d flag as this will upgrade to a development release which is not what you want.

Next, if not already installed then please add this program and run the command to show us the output:
sudo apt install inxi && inxi -r

When posting output, especially lenghty bits as you have, it makes life easier for us to read and interpret when you use code tags.

For long bits use the backticks on your keyboard ``` and paste the output between the backticks at the start and end.

For shorter bits you can use Ctrl+E to wrap with preformatted text as I did in the command above.

2 Likes

Everything you need is right there in your output.


1. Fix your orphans

The following packages were automatically installed and are no longer required:
…followed by a very long list.

Review that list.
Do you want to keep any of those packages?
If not, uninstall them using the instructions in your output.


2. Fix your sources

Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
...
Hit:7 https://packages.mozilla.org/apt mozilla InRelease
Reading package lists… Done
W: https://dl.winehq.org/wine-builds/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

You have non-Ubuntu apt sources, one of which is deprecated.
Non-Ubuntu sources are the #1 cause of broken release-upgrades.
Fix or remove your non-Ubuntu Wine source.


3. Fix your kept-back packages

The following packages have been kept back:
r-base r-recommended
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Find out why those two packages are being kept back…or uninstall them.
Those two kept-back packages are the actual blocker to the release-upgrade. Everything else is merely catching up on your basic maintenance. Those two packages are the reason you are getting…

 Please install all available updates for your release before upgrading.
3 Likes

Hi Rubi1200!

Thank you so much for your answer and for your welcoming!! I am just following the guide you posted and it is working so far! Thank you so much!. However, on the final step I decided to stop since I would like to ask you if it would install Lubuntu or Ubuntu, since I would be interested in Lubuntu only (my laptop is a bit old! hahaha)

Hi Ian-weisser

Thank you so much for your answer! My main concern is that if I start to remove those packages, probably everything will start to fail! For instance, the wine package I use it for certain Chemistry software which is not available in Linux but it is in Windows. Also, some packages refers to R which is something I use quite a lot. So I do not know what to do. Any advice? Thank you!

Advice: Removing orphaned packages will not cause your system to fail. If anything you installed (like Wine) depends upon those packages, they would not be orphans.

  • If you are worried about a failure, then backup your data. Reinstalling everything else is usually very easy.

  • If you do (somehow) lose functionality in an application, then simply reinstall that application properly, which will automatically include all dependencies.

Advice: Do the maintenance BEFORE trying a release-upgrade. Release-upgrades rarely fix apt errors…but they can make those errors worse.

Advice: The choice of flavor is irrelevant. ALL flavors of Ubuntu will eventually fail if the non-Ubuntu add-ons are not maintained.

3 Likes

Unless something weird happened, it would upgrade to the next LTS of Lubuntu.

1 Like

Hi everyone!

I have just finished installing Lubuntu 24.04.2 LTS following your advice and thank you so so much. It helped a lot! And now I am enjoying the last version of Lubuntu. I can notice that it consumes more RAM, but there is much fluidity.

Thank you so much Rubi1200 and Ian-weisser!!

3 Likes

Great that you got it sorted out.

Please mark the relevant post as the solution so others can find it when searching for the same or similar issues.

2 Likes

Hi Rubi1200

Sorry for my late reply!. Yes, I have just done it. Thank you so much for everything. You helped me with my scientific progress by updating my system. Thank you so much again!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.