紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
如何安装apt-get找不到的依赖?
-
我在安装gazebo一个小插件时,在github上面找到一个相关的功能包,但是通过rosdepc发现在当前版本ubuntu22.04 缺少相关依赖,如果知道名字,有什么办法不通过apt-get instal来安装相关依赖吗?
rosdep check --from-path src --ignore-src -r -y All system dependencies have been satisfied ERROR[ign_ros2_control]: No definition of [ignition-gazebo3] for OS version [jammy] rosdep key : ignition-gazebo3 OS name : ubuntu OS version : jammy Data: debian: buster: - libignition-gazebo3-dev ubuntu: focal: - libignition-gazebo3-dev
上面代码显示在focal版本有相关依赖,我尝试将ubuntu的os版本换成20.04
rosdep install --from-path src --ignore-src -r -y --os=ubuntu:focal executing command [sudo -H apt-get install -y libignition-gazebo3-dev] 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 E: 无法定位软件包 libignition-gazebo3-dev ERROR: the following rosdeps failed to install apt: command [sudo -H apt-get install -y libignition-gazebo3-dev] failed apt: Failed to detect successful installation of [libignition-gazebo3-dev]
对此可以意识到其实rosdep 就是通过apt-get install来安装相关依赖,所以想问下大家如何安装apt在当前版本找不到的依赖?
-
@空白 rosdep其实就是调用的apt来安装,apt安装不了的,只能自己手动下载源码编译了,也就是常说的编译安装
-
@小鱼 那如果我想安装像是libignition-gazebo3-dev这种连名字都搜不到的依赖有啥办法找到它的源码吗?
-
@空白 可以先apt search 看看相关的,有时候可能是名字搞错了导致没有的,比如我在ubuntu 22.04上测试是有相关的包,只是版本更新些,初次之外,还可以到ros功能包专用的索引网站上搜索,具体请见:https://fishros.org.cn/forum/topic/111
fishros@DESKTOP-5RDMRLE:/opt/ros/humble$ apt search libignition-gazebo* Sorting... Done Full Text Search... Done libignition-gazebo-dev/jammy 6.4.0+ds-0ubuntu1 amd64 Ignition Gazebo classes and functions for robot apps - Development files libignition-gazebo-plugins/jammy 6.4.0+ds-0ubuntu1 amd64 Ignition Gazebo classes and functions for robot apps - Plugins libignition-gazebo6/jammy 6.11.0-2~jammy amd64 Gazebo Sim classes and functions for robot apps - Shared library libignition-gazebo6-6/jammy 6.4.0+ds-0ubuntu1 amd64 Ignition Gazebo classes and functions for robot apps - Shared library libignition-gazebo6-dbg/jammy 6.11.0-2~jammy amd64 Gazebo Sim classes and functions for robot apps - Debug symbols libignition-gazebo6-dev/jammy 6.11.0-2~jammy amd64 Gazebo Sim classes and functions for robot apps - Development files libignition-gazebo6-plugins/jammy 6.11.0-2~jammy amd64 Gazebo Sim classes and functions for robot apps - Plugins $ apt show libignition-gazebo6-dev Package: libignition-gazebo6-dev Version: 6.11.0-2~jammy Priority: optional Section: libdevel Source: ignition-gazebo6 Maintainer: Jose Luis Rivero <jrivero@osrfoundation.org> Installed-Size: 2464 kB Depends: libtinyxml2-dev, libignition-tools-dev, libignition-cmake2-dev (>= 2.12.0), libignition-common4-av-dev (>= 4.5.1), libignition-common4-profiler-dev (>= 4.5.1), libignition-common4-events-dev (>= 4.5.1), libignition-fuel-tools7-dev, libignition-gui6-dev (>= 6.5.0), libignition-math6-dev (>= 6.9.0), libignition-math6-eigen3-dev (>= 6.9.0), libignition-msgs8-dev (>= 8.6.0), libignition-plugin-dev, libignition-physics5-dev (>= 5.1.0), libignition-sensors6-dev (>= 6.6.0), libignition-rendering6-dev (>= 6.5.0), libignition-transport11-log-dev, libignition-utils1-cli-dev, libignition-utils1-dev, libsdformat12-dev (>= 12.3.0), libignition-gazebo6 (= 6.11.0-2~jammy), libignition-gazebo6-plugins (= 6.11.0-2~jammy) Homepage: http://gazebosim.org/ Download-Size: 125 kB APT-Sources: http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main amd64 Packages Description: Gazebo Sim classes and functions for robot apps - Development files Gazebo Sim is a component in the Gazebo framework, a set of libraries designed to rapidly develop robot applications. . Development files
另外关于你缺的这个包,是有被打包上传的,具体地址为:https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/pool/main/i/ignition-gazebo3/
应该是你的源有问题
-
@小鱼 收到,谢谢小鱼
-