ubuntu ROS安装- Package 破损

biswetbf  于 2023-11-17  发布在  其他
关注(0)|答案(2)|浏览(130)

我试图安装罗斯noetic以下ros wiki教程。当我尝试sudo apt install ros-noetic-desktop-full一个错误ocurres。

samet@samet-X540LA:~$ sudo apt install ros-noetic-desktop-full
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-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.

字符串
我用ubuntu 20.04
我试着用aptitude安装。安装了软件包。但是当我写source /opt/ros/noetic/setup.bash时,我看到

samet@samet-X540LA:~$ source /opt/ros/noetic/setup.bash
bash: /opt/ros/noetic/setup.bash: No such file or directory


/opt中没有ros文件夹

y3bcpkx1

y3bcpkx11#

尝试:

sudo apt remove ros-noetic-*
sudo apt install -f
sudo apt upgrade -y
udo apt install ros-noetic-desktop-full -y

字符串
这样做:
1.包裹破损。
1.如果需要任何软件包,则安装。
1.最后安装ROS的noetic版本。

wpcxdonn

wpcxdonn2#

我通过aptitude解决了这个问题

sudo aptitude install ros-noetic-desktop-full

字符串
aptitude给了我几个解决方案。第一个和第二个解决方案不工作,但第三个解决方案工作,我可以使用ros。

相关问题