Re: Installing libgbm-dev with Mesa from trixie-backports

Xiyue Deng <[email protected]> Sat, 08 Nov 2025 20:59:07 -0800
Newsgroups gmane.linux.debian.backports.general
Message-ID <[email protected]>
Konstantin Reich <[email protected]> writes:

> Hello,
>
> I want to build a package from source (specifically, the latest version
> of VCMI). For that I need libgbm-dev, but apt won't install it because I
> have Mesa from trixie-backports. The dependency error is shown below.
>
>
> As i understand, the libgbm-dev package in trixie requires libgbm1 (=
> 25.0.7-2), while my system has libgbm1 25.2.6-1~bpo13+1 (from
> trixie-backports).
>
>
> Can you help me resolve this? It seems common for backports users, but I
> couldn't find a solution.
>
>
>
>
> $sudo apt install libgbm-dev
> Solving dependencies... 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:
>
> Unsatisfied dependencies:
>  libgbm-dev : Depends: libgbm1 (= 25.0.7-2) but 25.2.6-1~bpo13+1 is to be installed
> Error: Unable to correct problems, you have held broken packages.
> Error: The following information from --solver 3.0 may provide additional context:
>    Unable to satisfy dependencies. Reached two conflicting decisions:
>    1. libgbm1:amd64=25.0.7-2 is not selected for install
>    2. libgbm1:amd64=25.0.7-2 is selected as a downgrade because:
>       1. libgbm-dev:amd64=25.0.7-2 is selected for install
>       2. libgbm-dev:amd64=25.0.7-2 Depends libgbm1 (= 25.0.7-2)
>

It would be better if you try to build your package using sbuild, which
provides an isolated clean environment for package building, which won't
interfere with your running system.  A detailed documentation can be
found at https://wiki.debian.org/sbuild.

-- 
Regards,
Xiyue Deng
signature.asc (application/pgp-signature, 857 B)
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmkQH5sSHG1hbnBoaXpA
Z21haWwuY29tAAoJEC3pZe1jglyTwiAP/RYokIRNneCGoFVaa3bHpU/FtheJBLfD
uryU+spEI4cjFrhDvHBXFdLZ9hVFCTfTzSxPxylXZx1/zQpHuRTNoP74qJnZCnJo
Bi2BTHR8adRSUjfI7ZYV2Wbh9HOtRPFl/mEu+3YtMrRd8UNhFp7yazVkmfRtfSaL
ZhV7nmWKS2tF444ASh/I3a0E2haP8BDnl8UvxgwsPlndGGpR+mxXe0DY3bJK3uDf
CQLDQ4EuGL/BSUTJhwAlTTO072iDvS5bd8Lt5fdru0S+hj8wRoVD3ZX+t8U4potS
2h3locPBewYYFtVmYYuCwiPONTEloscQYkFpF6Lbv6ZOJBDptgjXsPbYPdLp3hWr
zkt/wb1olxLxebBp13FNjLBYJocVKFIEGwt68cbU5rDlUBRcRKuFPTqBVfq7IZSd
h1AvzOFFIHtPkfqU+MyMDBFjvwJJtpU4tkehXzKl9k5lhZgIsdog6VdQ0wPYldL3
6PnJvYftS2MpdvyR51BXJJZqQURy/7aB/8LvLRNahAOi29LzYu2tMiwERsO7hD12
UjEnKw5xQFrVj9Mp12jvU28KLIrwxZMVDk8gOwhzABTbjDV/OPLinexBt7JqY45X
qnApqyWaDQwqgoe9Ybaz6tGFfkZBn7rkGBlr9I7EwQ0wN/eTelTxmshcDs8f3ch9
JzQwMjUx4ZTN
=9KIU
-----END PGP SIGNATURE-----