error while starting gazebo : gzserver: error while loading shared libraries: libdart-collision-bullet.so.6

asked 2021-09-16 15:34:54 -0500

updated 2021-09-17 11:42:55 -0500

i' on Ubunto 20.04 and installed Gazebo11

while using command "gazebo" to start using it, i got this error : gzserver: error while loading shared libraries: libdart-collision-bullet.so.6: cannot open shared object file: No such file or directory

i also followed some instructions from here :

https://answers.gazebosim.org/questio...

that are :

sudo apt remove --purge libdart*
Remove dartsim/ppa in Software & Updates -> Other Software
sudo apt update
sudo apt install libdart-dev
sudo apt install libdart-all-dev (only if above installs)

i ran on Terminal :

sudo apt remove --purge libdart*
sudo apt update

it was OK but after this line had error :

sudo apt install libdart-dev

and the error said :

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:
 libdart-dev : Depends: libdart6 (= 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.

and the person who wrote the answer ( it's verified answer from someone who asked help for exact issue that i have ), recommended another way to fix the issue as a backup way when 1st wasn't successful; that is :

"" But if this failed due to unable to fetch some archives, run this : ""

    sudo apt update --fix-missing && sudo apt install libdart-all-dev

but it didn't work for me and i got this error after trying it :

E: Unable to correct problems, you have held broken packages.

so i searched through the internet to fix this error and i have seen some solutions but didn't work :

for example this one wasn't clear for me to do it :

https://stackoverflow.com/questions/4...

and others didn't work

i also ran this command, i found it from here :

https://answers.gazebosim.org/questio...

i did it may helps to find the reason of the issue :

ldd $(which gzserver) | grep dart

and the output was :

libdart-collision-bullet.so.6 => not found
libdart.so.6 => not found
libdart.so.6 => not found

and also ran this :

find /usr . -name libdart-collision-bullet.so*

and the output was :

libdart-collision-bullet.so.6 => not found
libdart.so.6 => not found
libdart.so.6 => not found
root@hamids23:~# find /usr . -name libdart-collision-bullet.so*
/usr/lib/x86_64-linux-gnu/libdart-collision-bullet.so.6.9.5
/usr/lib/x86_64-linux-gnu/libdart-collision-bullet.so
/usr/lib/x86_64-linux-gnu/libdart-collision-bullet.so.6.9

i also checked this : https://github.com/dartsim/dart/issue...

and it wasn't helpful for me (i'm completely amateur on Linux and only able to fix my issues by step-by-step solutions, so maybe, because it wasn't clear for me)

any solution ?

edit retag flag offensive close merge delete