@mitu It looks like there were some dependencies missing that we're causing the issue.
user@user-OptiPlex-5060:~$ sudo apt-get install -f libgbm-dev
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:
libqt5widgets5 : Depends: libqt5gui5 (>= 5.12.5) but it is not going to be installed or
libqt5gui5-gles (>= 5.12.5) but it is not going to be installed
libqt5x11extras5 : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not going to be installed or
libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not going to be installed
qt5-gtk-platformtheme : Depends: libqt5gui5 (>= 5.10.0) but it is not going to be installed or
libqt5gui5-gles (>= 5.10.0) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
To fix this, I ended up installing aptitude and installing the missing packages simply because aptitude gives much better verbose output for dependency issues as well as a simple way to resolve the conflict.
user@user-OptiPlex-5060:~$ sudo aptitude install libgbm-dev
The following NEW packages will be installed:
libgbm-dev
The following packages will be upgraded:
libgbm1
1 packages upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 9,092 B/38.0 kB of archives. After unpacking 93.2 kB will be used.
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 21.0.3-0ubuntu0.3~20.04.1) but 21.0.3-0ubuntu0.3~20.04.2 is to be installed
The following actions will resolve these dependencies:
Upgrade the following packages:
1) libegl-mesa0 [21.0.3-0ubuntu0.3~20.04.1 (now) -> 21.0.3-0ubuntu0.3~20.04.2 (focal-updates)]
2) libgl1-mesa-dri [21.0.3-0ubuntu0.3~20.04.1 (now) -> 21.0.3-0ubuntu0.3~20.04.2 (focal-updates)]
3) libglapi-mesa [21.0.3-0ubuntu0.3~20.04.1 (now) -> 21.0.3-0ubuntu0.3~20.04.2 (focal-updates)]
4) libglx-mesa0 [21.0.3-0ubuntu0.3~20.04.1 (now) -> 21.0.3-0ubuntu0.3~20.04.2 (focal-updates)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
libgbm-dev
The following packages will be upgraded:
libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0
5 packages upgraded, 1 newly installed, 0 to remove and 48 not upgraded.
Need to get 9,092 B/10.8 MB of archives. After unpacking 138 kB will be used.
Do you want to continue? [Y/n/?] Y
user@user-OptiPlex-5060:~$ sudo aptitude install libdrm-dev
The following NEW packages will be installed:
libdrm-dev
The following packages will be upgraded:
libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2
6 packages upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
Need to get 131 kB/284 kB of archives. After unpacking 680 kB will be used.
Do you want to continue? [Y/n/?] y
user@user-OptiPlex-5060:~$ sudo aptitude install libpciaccess-dev
The following NEW packages will be installed:
libpciaccess-dev
0 packages upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
After installing the missing packages the basic install went through without issues.