After installing `libgazebo-dev` package, the package `libignition-cmake2-dev` is still ugradable (executing `apt-get ugrade` upgrades it)

Asked by Michał Barciś

I was trying to run PX4 simulation and the setup script there installs the Gazebo simulator by installing `libgazebo-dev`. Unfortunately, the compilation does not go through, the details are here: https://github.com/PX4/PX4-Autopilot/issues/20923 .

Interestingly, if I do `apt-get upgrade` after the installation of `libgazebo-dev`, the package `libignition-cmake2-dev` gets updated and with that, everything works.

I would expect that installing libgazebo-dev installs the newest version of libignition-cmake2-dev and no further upgrade is needed.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gazebo Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

It will install the latest version available in the repositories. It may not be the latest from the developers but it will be the latest available to Ubuntu.

The package you named has the "SuppressWarning.hh" you were missing.

https://packages.ubuntu.com/focal/amd64/libignition-cmake2-dev/filelist

You can report a bug with the package if you suspect something is amiss

Revision history for this message
Michał Barciś (zeroos) said :
#2

Thanks, surprisingly, thanks to your answer I've managed to solve the issue! Initially I thought there is some way for Ubuntu to install older version of packages, but then I've realized in the script setting up the environment in PX4, a new repository is added AFTER gazebo is installed. And because of that, after running this script it's still possible to update the package (from the new repository).

Thanks!

Revision history for this message
Michał Barciś (zeroos) said :
#3

Thanks actionparsnip, that solved my question.