Problem loading gazebo

While loading gazebo I’m getting the following error

gzserver: error while loading shared libraries: libdart-collision-bullet.so.6.12: cannot open shared object file: No such file or directory

however when I try to install libdart-collision-bullet-dev, it says
libdart-collision-bullet-dev is already the newest version (6.9.2-2build4).

Can anyone help me out with what’s wrong?

just passing by

it seems that the gazebo you have installed has been built with a newer libdart-collision-bullet

I would recommend trying to reinstall gazebo and see if the error still shows up and doesn’t self - resolve

Thank you for the reply!

I tried reinstalling gazebo using the gazebo documentation

In the ### Build And Install Gazebo step
I ran the following command in /tmp/gazebo/build

cmake ../

it gave me the following error:

Could not find a package configuration file provided by "sdformat9"
  (requested version 9.8) with any of the following names:

    sdformat9Config.cmake
    sdformat9-config.cmake

I installed dependencies using the following link

but still end up with the same issue

Is there any other dependency I might be missing?

What linux distribution are you using?

You should try to avoid building from source if possible.

I am using Ubuntu 20.04

So for ubuntu 20, the version of gazebo to use is gazebo 9.

What is the output of sudo apt install gazebo9?

So I uninstalled gazebo using

sudo apt-get remove '.*gazebo.*' '.*sdformat.*' '.*ignition-math.*' '.*ignition-msgs.*' '.*ignition-transport.*'

installed the dependencies from the below link

and then tried
sudo apt install gazebo9

it gives the below error :

gazebo: error while loading shared libraries: libsdformat9.so.9: cannot open shared object file: No such file or directory

Just a note : I have previously faced this issue and installed the library manually, which asked for more dependencies, after finally resolving those dependencies I land with my original error i.e.

libdart-collision-bullet-dev is already the newest version (6.9.2-2build4).

Hello @Yashas_Shetty, could you resolve this issue?

No actually. I ended up using a docker container.
Afterwards I also reinstalled my ubuntu and did not encounter this issue when I installed ros1 and gazebo.