PickNikRobotics / generate_parameter_library

Declarative ROS 2 Parameters
BSD 3-Clause "New" or "Revised" License
230 stars 43 forks source link

Building: Rosdep can't locate packages #168

Closed edwardribbit closed 8 months ago

edwardribbit commented 8 months ago

I'm trying to build the package for the first time in my ros workspace and I'm trying to get the dependencies using rosdep.

The command I'm using is: rosdep install -r --from-paths src --ignore-src --rosdistro humble -y

I've already ran rosdep init and rosdep update.

/etc/ros/rosdep/sources.list.d/20-default.list :

# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

The error I'm seeing from the rosdep install command is

rosdep install -r --from-paths src --ignore-src --rosdistro humble -y
executing command [sudo -H apt-get install -y python3-jinja2]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-jinja2
executing command [sudo -H apt-get install -y python3-typeguard]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-typeguard
executing command [sudo -H apt-get install -y ros-humble-rsl]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ros-humble-rsl
executing command [sudo -H apt-get install -y ros-humble-tcb-span]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ros-humble-tcb-span
executing command [sudo -H apt-get install -y ros-humble-tl-expected]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ros-humble-tl-expected
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y python3-jinja2] failed
  apt: command [sudo -H apt-get install -y python3-typeguard] failed
  apt: command [sudo -H apt-get install -y ros-humble-rsl] failed
  apt: command [sudo -H apt-get install -y ros-humble-tcb-span] failed
  apt: command [sudo -H apt-get install -y ros-humble-tl-expected] failed
  apt: Failed to detect successful installation of [python3-jinja2]
  apt: Failed to detect successful installation of [python3-typeguard]
  apt: Failed to detect successful installation of [ros-humble-rsl]
  apt: Failed to detect successful installation of [ros-humble-tcb-span]
  apt: Failed to detect successful installation of [ros-humble-tl-expected]

What should I do so that the packages can be located by rosdep?

edwardribbit commented 8 months ago

It's working after adding the ros2 gpg key with apt following the ros2 install instructions