I am having trouble installing ROS packages through this tutorial https://nxp.gitbook.io/nxp-aim/installation-of-nxp-gazebo
$ ./foxy_install_aim.sh
is giving the following errors
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.81.0-1ubuntu1.2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:5 http://packages.ros.org/ros2/ubuntu jammy InRelease
Fetched 110 kB in 2s (52.0 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://packages.ros.org/ros2/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'xorg' instead of 'x-window-system'
E: Unable to locate package gazebo11
E: Unable to locate package libgazebo11-dev
E: Unable to locate package ros-foxy-ros-base
E: Unable to locate package ros-foxy-desktop
E: Unable to locate package ros-foxy-cv-bridge
E: Unable to locate package ros-foxy-image-tools
E: Unable to locate package ros-foxy-image-transport
E: Unable to locate package ros-foxy-image-transport-plugins
E: Unable to locate package ros-foxy-image-pipeline
E: Unable to locate package ros-foxy-camera-calibration-parsers
E: Unable to locate package ros-foxy-camera-info-manager
E: Unable to locate package ros-foxy-launch-testing-ament-cmake
E: Unable to locate package ros-foxy-cv-bridge
E: Unable to locate package ros-foxy-vision-opencv
E: Unable to locate package ros-foxy-gazebo-dev
E: Unable to locate package ros-foxy-gazebo-msgs
E: Unable to locate package ros-foxy-gazebo-msgs-dbgsym
E: Unable to locate package ros-foxy-gazebo-plugins
E: Unable to locate package ros-foxy-gazebo-plugins-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros
E: Unable to locate package ros-foxy-gazebo-ros2-control
E: Unable to locate package ros-foxy-gazebo-ros2-control-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros2-control-demos
E: Unable to locate package ros-foxy-gazebo-ros2-control-demos-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros-dbgsym
E: Unable to locate package ros-foxy-gazebo-ros-pkgs
E: Unable to locate package ros-foxy-vision-msgs
E: Unable to locate package ros-foxy-vision-msgs-dbgsym
sudo: geographiclib-get-geoids: command not found
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
./foxy_install_aim.sh: line 41: /opt/ros/foxy/setup.bash: No such file or directory
The parts with "E:" seem like errors but I’m not sure how I’m supposed to fix these.
2
Answers
Maybe you are missing some sources in your apt configuration.
Setup Sources
You will need to add the ROS 2 apt repositories to your system.
First, make sure that the Ubuntu Universe repository is enabled by
checking the output of this command.
This should output a line like the one below:
If you don’t see an output line like the one above, then enable the Universe repository with these instructions:
Now add the ROS 2 apt repository to your system.
Then add the repository to your sources list.
Update your apt repository caches after setting up the repositories.
Which version of ubuntu are you using? I had the same issue with 22.04 which was not supported. I installed 20.04 and then it worked.