Robotics StackExchange | Archived questions

libgazebo9-dev unmet dependencies (ubuntu 18.04)

Hello, I am trying to install gazebo9 on ubuntu 18.04 but I am facing some unmet dependencies errors. Initially I tried running the one-liner command curl -sSL http://get.gazebosim.org | sh but it threw the error,

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:
libgazebo9-dev : Depends: libgazebo9 (= 9.10.0-1~bionic) but it is not going to be installed
                 Depends: gazebo9-plugin-base (= 9.10.0-1~bionic)
E: Unable to correct problems, you have held broken packages.

So I tried to manually install the dependencies libgazebo9 and gazebo9-plugin-base with sudo apt install and it was successful. With both libgazebo9 (version 9.10.0-1~bionic) and gazebo9-plugin-base (version 9.10.0-1~bionic) successfully installed, I tried to install run the one-liner command again but it is still throwing the same error that the dependencies are not met when I have installed the dependencies already.

I have also tried to manually install libgazebo9-dev but it is also throwing the same error that the dependencies are not met. Have anyone come across this error before? Thanks.

Asked by denzel on 2019-08-02 03:44:18 UTC

Comments

Answers

Every time I have had this problem, the issue was with the libignition-math not installing.

Try to run this line then installing Gazebo 9:

sudo apt-get install libignition-math4-dev

Asked by bhej on 2019-08-05 09:57:47 UTC

Comments

hello bhej, I have tried installing libignition-math4-dev, but I am still facing the same error.

Asked by denzel on 2019-08-06 00:15:02 UTC

I would recommend following the error. Try to install every package that says it is not going to be installed. Eventually you will get to the culprit (when it installs). Then run the gazebo9 installation.

Asked by bhej on 2019-08-06 11:03:30 UTC

I did try to follow the error. The only errors that pops up when trying to download libgazebo9-dev, are the unmet dependencies errors (both libgazebo9 and gazebo-plugin-base). Even after I successfully downloaded those two dependencies, libgazebo9-dev is still saying that I have unmet dependencies.

Asked by denzel on 2019-08-07 02:43:41 UTC

I have similar problem with libgazebo9-dev on ARM.

The issue is that some packages do not exist in apt repo. You can check it with

 apt install libgazebo9-dev gazebo9-common

For me it shows

Depends: gazebo9-common (= 9.8.0-1~bionic) but 9.13.0-1~bionic is to be installed

So, instead of 9.13, it tries to install 9.8. And there's no 9.13 at all.

# apt policy libgazebo9-dev
...
 9.8.0-1~bionic 500
    500 http://packages.osrfoundation.org/gazebo/ubuntu bionic/main arm64 Packages

For amd64 it's ok now. All gazebo versions are 9.13.

So probably I should submit a new issue, or edit the one created basing on this question... https://bitbucket.org/osrf/gazebo/issues/2647/libgazebo9-dev-unmet-dependencies-error

Asked by andrei on 2020-04-13 21:47:23 UTC

Comments