Problemas instalando docker compose
Previamente a seguir guía del mediacenter de Klingsor sobre docker (en pi4), he utlizado el tutorial recomendado en https://www.flopy.es/piserver-con-docke ... on-docker/ que recomienda SO Raspberry Pi OS Lite (64bit).
Ningún problema hasta llegar a la instalación de docker compose:
Código: Seleccionar todo
sudo apt-get install docker-composeCódigo: Seleccionar todo
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
pigz
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
docker-buildx docker-cli
Suggested packages:
docker-doc
The following packages will be REMOVED:
docker-ce docker-ce-cli
The following NEW packages will be installed:
docker-buildx docker-cli docker-compose
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 28.7 MB of archives.
After this operation, 19.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian trixie/main arm64 docker-buildx arm64 0.13.1+ds1-3 [11.3 MB]
Get:2 http://deb.debian.org/debian trixie/main arm64 docker-cli arm64 26.1.5+dfsg1-9+b11 [6,318 kB]
Get:3 http://deb.debian.org/debian trixie/main arm64 docker-compose arm64 2.26.1-4 [11.1 MB]
Fetched 28.7 MB in 3s (9,046 kB/s)
(Reading database ... 88307 files and directories currently installed.)
Removing docker-ce (5:29.1.4-1~debian.13~trixie) ...
Removing docker-ce-cli (5:29.1.4-1~debian.13~trixie) ...
Selecting previously unselected package docker-buildx.
(Reading database ... 88110 files and directories currently installed.)
Preparing to unpack .../docker-buildx_0.13.1+ds1-3_arm64.deb ...
Unpacking docker-buildx (0.13.1+ds1-3) ...
dpkg: error processing archive /var/cache/apt/archives/docker-buildx_0.13.1+ds1-3_arm64.deb (--unpack):
trying to overwrite '/usr/libexec/docker/cli-plugins/docker-buildx', which is also in package docker-buildx-plugin (0.30.1-1~debian.13~trixie)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package docker-cli.
Preparing to unpack .../docker-cli_26.1.5+dfsg1-9+b11_arm64.deb ...
Unpacking docker-cli (26.1.5+dfsg1-9+b11) ...
Selecting previously unselected package docker-compose.
Preparing to unpack .../docker-compose_2.26.1-4_arm64.deb ...
Unpacking docker-compose (2.26.1-4) ...
dpkg: error processing archive /var/cache/apt/archives/docker-compose_2.26.1-4_arm64.deb (--unpack):
trying to overwrite '/usr/libexec/docker/cli-plugins/docker-compose', which is also in package docker-compose-plugin (5.0.1-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-buildx_0.13.1+ds1-3_arm64.deb
/var/cache/apt/archives/docker-compose_2.26.1-4_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)Código: Seleccionar todo
sudo dpkg --configure -aCódigo: Seleccionar todo
sudo apt install -fCódigo: Seleccionar todo
sudo apt autoremoveCódigo: Seleccionar todo
sudo apt remove --purge docker-buildx
Package 'docker-buildx' is not installed, so not removed
The following package was automatically installed and is no longer required:
docker-cli
Use 'sudo apt autoremove' to remove it.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
1 not fully installed or removed.
Código: Seleccionar todo
sudo apt remove --purge docker-compose
Package 'docker-compose' is not installed, so not removed
The following package was automatically installed and is no longer required:
docker-cli
Use 'sudo apt autoremove' to remove it.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0Todo va bien (libffi-dev, libssl-dev, python3, pip) hasta que llega el compose
Código: Seleccionar todo
sudo pip3 install docker-compose
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
He vuelto a cargar el SO de nuevo para probar con otras guías sobre terreno virgen.
Si a alguien se le ocurre algo... se agradece.
Saludos
PD: perdón por el ladrillo.