一键安装出现错误,该如何解决
-
RUN Choose Task:[Please enter the number in brackets]
请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别):
[1]:foxy(ROS2)
[2]:galactic(ROS2)
[3]:noetic(ROS1)
[4]:rolling(ROS2)
[0]:quit
Type the number in [] to choose a function:3
RUN Choose Task:[Please enter the number in brackets]
请选择安装的具体版本(如果不知道怎么选,请选1桌面版):
[1]:noetic(ROS1)桌面版
[2]:noetic(ROS1)基础版(小)
[0]:quit
Type the number in [] to choose a function:1
Run CMD Task:[sudo apt search aptitude ]
[-][1.77s] CMD Result:successRun CMD Task:[sudo apt install aptitude -y]
[-][1.54s] CMD Result:code:100Run CMD Task:[sudo apt install ros-noetic-desktop-full -y]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
ros-noetic-desktop-full : Depends: ros-noetic-desktop but it is not going to be installed
Depends: ros-noetic-perception but it is not going to be installed
Depends: ros-noetic-simulators but it is not going to be installed
Depends: ros-noetic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run CMD Task:[sudo apt install ros-noetic-desktop-full -y]
[-][1.54s] CMD Result:code:100============================================================
请注意我,检测你在安装过程中出现依赖问题,请在稍后输入n,再选择y,即可解决(若无法解决,清在稍后手动运行命令: sudo aptitude install ros-noetic-desktop-full)
确认了解情况,请输入回车继续安装
Run CMD Task:[sudo aptitude install ros-noetic-desktop-full]
sudo: aptitude: command not found
Run CMD Task:[sudo aptitude install ros-noetic-desktop-full -y]
[-][0.00s] CMD Result:code:1Run CMD Task:[sudo apt search python3-catkin-tools ]
[-][1.51s] CMD Result:successRun CMD Task:[sudo apt install python3-catkin-tools -y]
[-][1.44s] CMD Result:code:100Run CMD Task:[sudo apt search python3-rosdep ]
[-][1.56s] CMD Result:successRun CMD Task:[sudo apt install python3-rosdep -y]
[-][1.56s] CMD Result:successRun CMD Task:[ls /opt/ros/noetic/setup.bash]
[-][0.00s] CMD Result:code:2安装失败了,请打开鱼香社区:https://fishros.org.cn/forum 在一键安装专区反馈问题...
-
@1243708162 解决了应该 之前前面有个问题 看了社区 导致我换了163的源 然后解决了 出现这个问题 再换回原来的源就好的
遇到的问题就 sudo apt install aptitude -y 这个安装不了
希望能帮到同样问题的
当然应该遇不到我这问题