Can't install ros 2 on ubuntu 22.04
E: Unable to locate package ros-humble-desktop
get a similar message for ros-humble-ros-base
I followed the install code exactly (copy and paste) from the ros.org install docs
Hi, ROS2 Humble is targeted for Ubuntu Jammy(22.04) and not 20.04, so you may either choose to upgrade to jammy via
dist-upgrade
or use containers as mentioned here.I went back and checked. I am using ubuntu 22.04.1 LTS jammy
sorry for the mistake in my original post. still have the same problem
Do you have
multiverse
enabled in the "Software & Updates"?Well, can't do "Software & Updates" on server version(no gui) but I did the following a CL $ sudo add-apt-repository universe $ sudo add-apt-repository multiverse $ sudo add-apt-repository restricted
I then went back to Humble install instruction and tried again (all copy and paste). Still get the same error pi@raspberrypi:~$ sudo apt install ros-humble-ros-base Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package ros-humble-ros-base pi@raspberrypi:~$
Can you tell us the output of the following command from the command line?
5 second pause like it's searching and then just the terminal prompt. No results.
Maybe a small thing, but can you verify that you can access the internet from your RPi? Usually when I get the
unable to locate package
error, it's because I am not connected to the internet. A good sign of the internet working fine would be when you runsudo apt update && sudo apt upgrade
, and you would be able to install/upgrade the packages.Exactly, @sampreets3 thought that same thing. @Johnboy: it looks like a problem with your system (OS) and/or internet connection and not a ROS issue. Try what @sampreets suggested and if you get some errors trying pinging external websites: