Add Conflicts: docker-compose-plugin

Closes: #1120501

Dear Maintainers,

when "migrating" from the docker-ce stack to the official Debian stack, dpkg fails with:

Preparing to unpack .../docker-compose_2.32.4-3_amd64.deb ...
Unpacking docker-compose (2.32.4-3) ...
dpkg: error processing archive /var/cache/apt/archives/docker-
compose_2.32.4-3_amd64.deb (--unpack):
 trying to overwrite '/usr/libexec/docker/cli-plugins/docker-compose', which is
also in package docker-compose-plugin (2.40.3-1~debian.13~trixie)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/docker-compose_2.32.4-3_amd64.deb
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)

which could be easily prevented by adding a conflict to the package (as is conveniently done for docker.io against docker-ce).

I'm aware that this is just a nice-to-have since docker-ce is not in the official Debian repositories, but I'm gonna send an MR on Salsa to make it easy.

Best regards, Moritz

Merge request reports

Loading