Featured image of post ROS无法安装的解决方案

ROS无法安装的解决方案

ROS的安装确实令人头疼

有时候安装ROS会出现如下报错:

1
2
3
4
5
6
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.

一些文章提出解决方案是运行如下命令:

1
sudo aptitude install ros-noetic-desktop-full

然后根据命令提示进行冲突排解,但这未必能够成功安装。

今天安装发现,这可能和build-essential依赖的某些库冲突,所以需要卸载build-essential,并在装完ROS后重新安装。

1
sudo apt remove build-essential
CC BY-NC-SA 4.0
Built with Hugo
主题 StackJimmy 设计