PX4 compilation libgbm-dev and libgbm1 version issues

Hi, I am facing a PX4 compilation problem. When I follow the steps and start to bash:

cd
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
bash ./PX4-Autopilot/Tools/setup/ubuntu.sh

It reports a problem:

The following packages have unmet dependencies:
 libgbm-dev : Depends: libgbm1 (= 23.2.1-1ubuntu3.1~22.04.3) but 23.2.1-1ubuntu3.1~22.04.4 is to be installed
E: Unable to correct problems, you have held broken packages.

These are the specifications of my current system:
The apt-mark is not onhold,

zh@hzh:~$ apt policy libgbm1 libgbm-dev
libgbm1:
  Installed: 23.2.1-1ubuntu3.1~22.04.4
  Candidate: 23.2.1-1ubuntu3.1~22.04.4
  Version table:
 *** 23.2.1-1ubuntu3.1~22.04.4 100
        100 /var/lib/dpkg/status
     23.2.1-1ubuntu3.1~22.04.3 500
        500 http://mirrors.kernel.org/ubuntu jammy-updates/main amd64 Packages
     22.0.1-1ubuntu2 500
        500 http://mirrors.kernel.org/ubuntu jammy/main amd64 Packages
libgbm-dev:
  Installed: (none)
  Candidate: 23.2.1-1ubuntu3.1~22.04.3
  Version table:
     23.2.1-1ubuntu3.1~22.04.3 500
        500 http://mirrors.kernel.org/ubuntu jammy-updates/main amd64 Packages
     22.0.1-1ubuntu2 500
        500 http://mirrors.kernel.org/ubuntu jammy/main amd64 Packages

I have tried sudo apt --fix-broken install, sudo apt full-upgrade and sudo apt install libgbm-dev.. Not working ..

And I have also tried with degrade the libgbm-dev version, also not working:

zh@hzh:~$ sudo apt install \ libgbm1=23.2.1-1ubuntu3.1~22.04.3 \ libgbm-dev=23.2.1-1ubuntu3.1~22.04.3 \ --allow-downgrades


The following packages have unmet dependencies: libqt5gui5 : Depends: libegl1 but it is not going to be installed Recommends: libqt5svg5 but it is not going to be installed Recommends: qt5-gtk-platformtheme but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I tried to search online but could not find a solution, may I kindly get any suggestions for this? Thank you.

In fact I have a solution for this, which is to

  1. Install PX4 first,
  2. Then install ROS2.

It can be solved by this not smart way, but anyway if you have better idea, please share with us, thanks.