Unable to locate package ros-melodic-desktop-full

Hello,

I was trying to install the ros-melodic-joy with rosdep, but this gave me the following error:

E: Unable to locate package ros-melodic-joy

Eventually this made me think that ros was not installed properly. So, I decided to reinstall ROS Melodic on the ROSbot 2 PRO, which has ubuntu 18.04 bionic installed. I followed the steps from http://wiki.ros.org/melodic/Installation/Ubuntu. Each step ran properly until I tried the next commands:
sudo apt install ros-melodic-desktop
sudo apt install ros-melodic-ros-base
sudo apt install ros-melodic-desktop-full.
This gave me the gave error:

E: Unable to locate package ros-melodic-desktop-full

After doing some research I suspect that this might be caused by the fact that ROS Melodic has reached its end-of-life since April 2023. However, I’m not 100% sure about this. Can someone please confirm if this is indeed true. And if so, what is the best way to install the newer versions of ROS? Should I follow the steps on https://husarion.com/manuals/rosbot/operating-system-reinstallation/? Also, I have some directories on the ROSbot that I can not loose. How can I make a back up of these files? Thank you in advance!

Regards

Hello @TomvE and welcome to the Husarion Community!

Yes, as you can see on the Operating System Reinstallation page you linked yourself, there is not even an OS Image available with ROS Melodic - as it is no longer supported.
I strongly recommend reloading OS Image on your ROSbot 2 PRO, which will actually result in file loss. I suggest simply using a pen drive or uploading files via sftp.

Best regards
Jan Brzyk