小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系
-
ubuntu20.04安装foxy的ros2失败,尝试了几次了,都是一样的错误,下边是失败的提示:
Run CMD Task:[sudo apt install ros-foxy-desktop -y]
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:下列软件包有未满足的依赖关系:
ros-foxy-desktop : 依赖: ros-foxy-depthimage-to-laserscan 但是它将不会被安装
依赖: ros-foxy-image-tools 但是它将不会被安装
依赖: ros-foxy-intra-process-demo 但是它将不会被安装
依赖: ros-foxy-pcl-conversions 但是它将不会被安装
依赖: ros-foxy-rqt-common-plugins 但是它将不会被安装
依赖: ros-foxy-rviz-default-plugins 但是它将不会被安装
依赖: ros-foxy-rviz2 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
Run CMD Task:[sudo apt install ros-foxy-desktop -y]
[-]Result:code:100 是它将不会被安装 它将不会被安装 装============================================================
请注意我,检测你在安装过程中出现依赖问题,请在稍后输入n,再选择y,即可解决(若无法解决,清在稍后手动运行命令: sudo aptitude install ros-foxy-desktop)然后我按照操作,先n然后y
下列动作将解决这些依赖关系:保持 下列软件包于其当前版本:
-
libcurl4-gnutls-dev [未安装的]
-
libgdal-dev [未安装的]
-
libgeotiff-dev [未安装的]
-
libopencv-calib3d-dev [未安装的]
-
libopencv-contrib-dev [未安装的]
-
libopencv-dev [未安装的]
-
libopencv-features2d-dev [未安装的]
-
libopencv-highgui-dev [未安装的]
-
libopencv-objdetect-dev [未安装的]
-
libopencv-stitching-dev [未安装的]
-
libopencv-videostab-dev [未安装的]
-
libpcl-dev [未安装的]
-
libpyside2-dev [未安装的]
-
libpyside2-py3-5.14 [未安装的]
-
libqt5designer5 [未安装的]
-
libqt5designercomponents5 [未安装的]
-
libqt5help5 [未安装的]
-
libqt5opengl5 [未安装的]
-
libqt5opengl5-dev [未安装的]
-
libqt5positioning5 [未安装的]
-
libqt5printsupport5 [未安装的]
-
libqt5qml5 [未安装的]
-
libqt5quick5 [未安装的]
-
libqt5quickparticles5 [未安装的]
-
libqt5quickshapes5 [未安装的]
-
libqt5quicktest5 [未安装的]
-
libqt5quickwidgets5 [未安装的]
-
libqt5sensors5 [未安装的]
-
libqt5sql5 [未安装的]
-
libqt5sql5-sqlite [未安装的]
-
libqt5test5 [未安装的]
-
libqt5webchannel5 [未安装的]
-
libqt5webkit5 [未安装的]
-
libqt5webkit5-dev [未安装的]
-
libqt5xml5 [未安装的]
-
libtiff-dev [未安装的]
-
libvtk7-dev [未安装的]
-
libvtk7-qt-dev [未安装的]
-
libwebp-dev [未安装的]
-
python3-pyqt5 [未安装的]
-
python3-pyqt5.qtsvg [未安装的]
-
python3-pyside2.qtcore [未安装的]
-
python3-pyside2.qtgui [未安装的]
-
python3-pyside2.qtsvg [未安装的]
-
python3-pyside2.qtwidgets [未安装的]
-
qhelpgenerator-qt5 [未安装的]
-
qt5-assistant [未安装的]
-
qt5-qmltooling-plugins [未安装的]
-
qtbase5-dev [未安装的]
-
qtbase5-dev-tools [未安装的]
-
qtdeclarative5-dev [未安装的]
-
qtdeclarative5-dev-tools [未安装的]
-
qttools5-dev [未安装的]
-
qttools5-dev-tools [未安装的]
-
qttools5-private-dev [未安装的]
-
ros-foxy-cv-bridge [未安装的]
-
ros-foxy-depthimage-to-laserscan [未安装的]
-
ros-foxy-desktop [未安装的]
-
ros-foxy-image-geometry [未安装的]
-
ros-foxy-image-tools [未安装的]
-
ros-foxy-intra-process-demo [未安装的]
-
ros-foxy-pcl-conversions [未安装的]
-
ros-foxy-python-qt-binding [未安装的]
-
ros-foxy-qt-dotgraph [未安装的]
-
ros-foxy-qt-gui [未安装的]
-
ros-foxy-qt-gui-cpp [未安装的]
-
ros-foxy-qt-gui-py-common [未安装的]
-
ros-foxy-rqt-action [未安装的]
-
ros-foxy-rqt-common-plugins [未安装的]
-
ros-foxy-rqt-console [未安装的]
-
ros-foxy-rqt-graph [未安装的]
-
ros-foxy-rqt-gui [未安装的]
-
ros-foxy-rqt-gui-cpp [未安装的]
-
ros-foxy-rqt-gui-py [未安装的]
-
ros-foxy-rqt-image-view [未安装的]
-
ros-foxy-rqt-msg [未安装的]
-
ros-foxy-rqt-plot [未安装的]
-
ros-foxy-rqt-publisher [未安装的]
-
ros-foxy-rqt-py-common [未安装的]
-
ros-foxy-rqt-py-console [未安装的]
-
ros-foxy-rqt-reconfigure [未安装的]
-
ros-foxy-rqt-service-caller [未安装的]
-
ros-foxy-rqt-shell [未安装的]
-
ros-foxy-rqt-srv [未安装的]
-
ros-foxy-rqt-top [未安装的]
-
ros-foxy-rqt-topic [未安装的]
-
ros-foxy-rviz-common [未安装的]
-
ros-foxy-rviz-default-plugins [未安装的]
-
ros-foxy-rviz-rendering [未安装的]
-
ros-foxy-rviz2 [未安装的]
保留下列未解决的依赖关系:
-
qtbase5-dev 推荐 libqt5opengl5-dev (= 5.12.8+dfsg-0ubuntu2.1)
是否接受该解决方案?[Y/n/q/?] n
保留下列未解决的依赖关系:
-
qtbase5-dev 推荐 libqt5opengl5-dev (= 5.12.8+dfsg-0ubuntu2.1)
是否接受该解决方案?[Y/n/q/?] y
再然后就是提示安装失败了
Run CMD Task:[sudo apt-cache search python3-colcon-common-extensions ]
[-]Result:success ackage aggregating colcon-core and common extensions.Run CMD Task:[sudo apt install python3-colcon-common-extensions -y]
[-]Result:success 卸载 0 个软件包,有 0 个软件包未被升级。Run CMD Task:[sudo apt-cache search python3-argcomplete ]
[-]Result:success for argparse (for Python 3)Run CMD Task:[sudo apt install python3-argcomplete -y]
[-]Result:success 卸载 0 个软件包,有 0 个软件包未被升级。Run CMD Task:[sudo apt-cache search python3-rosdep ]
[-]Result:success anager abstraction tool for ROSPython 3)Run CMD Task:[sudo apt install python3-rosdep -y]
[-]Result:success 卸载 0 个软件包,有 0 个软件包未被升级。Run CMD Task:[ls /opt/ros/foxy/setup.bash]
[-]Result:code:2安装失败了,请打开鱼香社区:https://fishros.org.cn/forum 在一键安装专区反馈问题...
Run CMD Task:[ls /opt/ros/foxy/setup.bash]
[-]Result:code:2求助大佬,能够帮忙看下问题
-