Skip to content

Debian 13 + PHP 8.5: rdkafka installation fails #1230

@pbromb

Description

@pbromb

Version of install-php-extensions

2.9.29

Error description

Hi
I'm trying to build a Docker image based on Debian 13 (trixie) with PHP 8.5, using install-php-extensions to install rdkafka and swoole.
The build fails due to an APT dependency conflict between libcurl4-gnutls-dev and libcurl4-openssl-dev, pulled indirectly when installing librdkafka-dev.

Full error excerpt:

FAILED TO LIST THE WHOLE PACKAGE LIST FOR
librdkafka-dev ^libssl([0-9]+(\.[0-9]+)*)?-dev$ libcurl4-gnutls-dev libpq-dev libc-ares-dev zlib1g-dev libbrotli-dev libsqlite3-dev libzstd-dev liburing-dev

COMMAND OUTPUT:
Reading package lists...
Building dependency tree...
Reading state information...
Solving dependencies...
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:
 libcurl4-gnutls-dev : Conflicts: libcurl4-openssl-dev but 8.14.1-2+deb13u2 is to be installed
 libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 8.14.1-2+deb13u2 is to be installed
E: Unable to correct problems, you have held broken packages.
E: The following information from --solver 3.0 may provide additional context:
   Unable to satisfy dependencies. Reached two conflicting decisions:
   1. librdkafka-dev:amd64=2.8.0-1 is selected for install
   2. librdkafka-dev:amd64 Depends libcurl4-openssl-dev
      but none of the choices are installable:
      - libcurl4-openssl-dev:amd64 is not selected for install because:
        1. libcurl4-gnutls-dev:amd64=8.14.1-2+deb13u2 is selected for install
        2. libcurl4-openssl-dev:amd64 Conflicts libcurl4-gnutls-dev


Docker image

php:8.5-cli-trixie

Minimal Dockerfile

FROM php:8.5-cli-trixie

COPY --from=mlocati/php-extension-installer:2.9.29 /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions rdkafka swoole

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions