package docker-compose-v2 (not installed) failed to install/upgrade: trying to overwrite '/usr/libexec/docker/cli-plugins/docker-compose', which is also in package docker-compose-plugin 2.21.0-1~ubuntu.22.04~jammy

Bug #2047844 reported by Ontita Moraa
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
docker-compose-v2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

moraa@moraaontita:~$ sudo apt -y install docker.io docker-buildx docker-compose-v2
[sudo] password for moraa:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  docker-ce-rootless-extras libslirp0 slirp4netns
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  bridge-utils containerd runc ubuntu-fan
Suggested packages:
  ifupdown aufs-tools btrfs-progs cgroupfs-mount | cgroup-lite debootstrap
  docker-doc rinse zfs-fuse | zfsutils
The following packages will be REMOVED
  docker-ce-cli
The following NEW packages will be installed
  bridge-utils containerd docker-buildx docker-compose-v2 docker.io runc
  ubuntu-fan
0 to upgrade, 7 to newly install, 1 to remove and 9 not to upgrade.
Need to get 90.3 MB/94.5 MB of archives.
After this operation, 337 MB of additional disk space will be used.
Get:1 http://ke.archive.ubuntu.com/ubuntu jammy-updates/main amd64 containerd amd64 1.7.2-0ubuntu1~22.04.1 [36.0 MB]
Get:2 http://ke.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 docker.io amd64 24.0.5-0ubuntu1~22.04.1 [28.9 MB]
Get:3 http://ke.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 docker-buildx amd64 0.11.2-0ubuntu1~22.04.1 [12.8 MB]
Get:4 http://ke.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 docker-compose-v2 amd64 2.20.2+ds1-0ubuntu1~22.04.1 [12.5 MB]
Get:5 http://ke.archive.ubuntu.com/ubuntu jammy/universe amd64 ubuntu-fan all 0.12.16 [35.2 kB]
Fetched 84.8 MB in 2min 4s (685 kB/s)
Preconfiguring packages ...
(Reading database ... 228776 files and directories currently installed.)
Removing docker-ce-cli (5:24.0.7-1~ubuntu.22.04~jammy) ...
Selecting previously unselected package bridge-utils.
(Reading database ... 228579 files and directories currently installed.)
Preparing to unpack .../0-bridge-utils_1.7-1ubuntu3_amd64.deb ...
Unpacking bridge-utils (1.7-1ubuntu3) ...
Selecting previously unselected package runc.
Preparing to unpack .../1-runc_1.1.7-0ubuntu1~22.04.1_amd64.deb ...
Unpacking runc (1.1.7-0ubuntu1~22.04.1) ...
Selecting previously unselected package containerd.
Preparing to unpack .../2-containerd_1.7.2-0ubuntu1~22.04.1_amd64.deb ...
Unpacking containerd (1.7.2-0ubuntu1~22.04.1) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../3-docker.io_24.0.5-0ubuntu1~22.04.1_amd64.deb ...
Unpacking docker.io (24.0.5-0ubuntu1~22.04.1) ...
Selecting previously unselected package docker-buildx.
Preparing to unpack .../4-docker-buildx_0.11.2-0ubuntu1~22.04.1_amd64.deb ...
Unpacking docker-buildx (0.11.2-0ubuntu1~22.04.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-02ILfd/4-docker-buildx_0.11
.2-0ubuntu1~22.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/libexec/docker/cli-plugins/docker-buildx', which is a
lso in package docker-buildx-plugin 0.11.2-1~ubuntu.22.04~jammy
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package docker-compose-v2.
Preparing to unpack .../5-docker-compose-v2_2.20.2+ds1-0ubuntu1~22.04.1_amd64.de
b ...
Unpacking docker-compose-v2 (2.20.2+ds1-0ubuntu1~22.04.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-02ILfd/5-docker-compose-v2_
2.20.2+ds1-0ubuntu1~22.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/libexec/docker/cli-plugins/docker-compose', which is
also in package docker-compose-plugin 2.21.0-1~ubuntu.22.04~jammy
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../6-ubuntu-fan_0.12.16_all.deb ...
Unpacking ubuntu-fan (0.12.16) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-02ILfd/4-docker-buildx_0.11.2-0ubuntu1~22.04.1_amd64.deb
 /tmp/apt-dpkg-install-02ILfd/5-docker-compose-v2_2.20.2+ds1-0ubuntu1~22.04.1_am
d64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: docker-compose-v2 (not installed)
ProcVersionSignature: Ubuntu 6.2.0-39.40~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Jan 2 18:02:46 2024
ErrorMessage: trying to overwrite '/usr/libexec/docker/cli-plugins/docker-compose', which is also in package docker-compose-plugin 2.21.0-1~ubuntu.22.04~jammy
InstallationDate: Installed on 2023-12-26 (6 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.11
SourcePackage: docker-compose-v2
Title: package docker-compose-v2 (not installed) failed to install/upgrade: trying to overwrite '/usr/libexec/docker/cli-plugins/docker-compose', which is also in package docker-compose-plugin 2.21.0-1~ubuntu.22.04~jammy
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ontita Moraa (moraa) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in docker-compose-v2 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.