问题描述
我已经通过二进制包在 Ubuntu 20.04 上安装了 Gazebo 11。当我启动 Gazebo 时,它会引发以下错误:
gzserver: error while loading shared libraries: libdart-collision-bullet.so.6: cannot open shared object file: No such file or directory
有谁知道是什么问题?我试图解决安装 libdart-collision-bullet-dev
的问题,但出现以下问题:
The following packages have unmet dependencies:
libdart-collision-bullet-dev : Depends: libdart-dev but it is not going to be installed
Depends: libdart6-collision-bullet (= 6.9.2-2build4) but 6.9.5-1885~202012292349~ubuntu20.04.1 is to be installed
E: Unable to correct problems,you have held broken packages.
我试图解决损坏的软件包,但是 Gazebo 11 会自动卸载。
提前致谢。
解决方法
我遇到了同样的问题,这对我有用。
- 首先删除并清除所有 libdart 包。
sudo apt remove --purge libdart*
-
如果您已从此 link 添加了
中删除dartsim/ppa
ppa,请将其从软件和更新 -> 其他软件 -
更新
sudo apt update
- 检查 libdart-dev 是否安装:
sudo apt install libdart-dev
- 如果安装,则安装 Gazebo 所需的所有软件包
sudo apt install libdart-all-dev
- 如果存在与
unable to fetch some archives
相关的错误,请尝试:
sudo apt update --fix-missing
sudo apt install libdart-all-dev
- 再次安装 Gazebo:
curl -sSL http://get.gazebosim.org | sh
- 检查 Gazebo 是否正在运行
gazebo