I just realized that you are using a custom version of podman-docker:
podman-docker 4:4.6.2-0ubuntu22.04+obs81.12
This is not the one we have in the archive and hece, not supported.
To fix it you would need to add the Conflicts relation I mentioned above
to that package.
In Ubuntu, we still need to add the missing Conflicts relation to the
docker.io package.
In questing, if you install docker-podman (with apt) and then try
installing docker.io (with apt), you get:
Unsatisfied dependencies:
docker.io : Depends: containerd (>= 1.2.6-0ubuntu1~) but it is not going to be
installed
Recommends: pigz but it is not going to be installed
Recommends: ubuntu-fan but it is not going to be installed
podman-docker : Conflicts: docker-cli
Conflicts: docker.io but 27.5.1-0ubuntu3 is to be installed
Error: Unable to satisfy dependencies. Reached two conflicting decisions:
1. docker.io:amd64=27.5.1-0ubuntu3 is selected for install
2. docker.io:amd64=27.5.1-0ubuntu3 is not selected for install because:
1. podman-docker:amd64 is selected for install
2. podman-docker:amd64 Conflicts docker-cli
Interestingly, if you do the same using apt-get, you get a different
result: when installing docker.io, docker-podman is removed.
In all stable releases (jj,nn,oo,pp) the behavior is as expected with
both apt and apt-get (the packages get correctly removed).
The different observed behaviors are likely due to changes in the apt
resolver. The behavior also changes if running commands from a shell or
from a script.
Below is a reproducer:
#!/bin/bash
set -e
function cleanup()
{
echo "Cleaning up..."
lxc delete -f ${IMAGE_NAME}
echo "Done."
}
install_package() {
echo "Installing ${1} ..."
lxc exec ${IMAGE_NAME} -- apt install -y ${1}
}
purge_package() {
echo "Removing ${1} ..."
lxc exec ${IMAGE_NAME} -- apt purge -y ${1}
}
trap cleanup ERR EXIT
SERIES=${SERIES:=questing}
echo "Running reproducer for ${SERIES}"
IMAGE_NAME=docker-podman-${SERIES}
echo "Launching LXD container ${IMAGE_NAME}..."
lxc launch ubuntu-daily:${SERIES} ${IMAGE_NAME}
echo "Updating ${IMAGE_NAME}..."
lxc exec ${IMAGE_NAME} -- apt update > /dev/null 2>&1
echo "Installing podman-docker..."
install_package podman-docker > /dev/null
echo "Installing docker.io..."
install_package docker.io > /dev/null
lxc exec ${IMAGE_NAME} -- dpkg-query -l docker.io podman-docker || true
echo "removing packages"
purge_package docker.io > /dev/null
purge_package podman-docker > /dev/null
purge_package podman > /dev/null
purge_package docker-compose > /dev/null
lxc exec ${IMAGE_NAME} -- dpkg-query -l docker.io podman-docker || true
echo "Installing docker.io..."
install_package docker.io > /dev/null
echo "Installing podman-docker..."
install_package podman-docker > /dev/null
lxc exec ${IMAGE_NAME} -- dpkg-query -l docker.io podman-docker || true
echo SUCCESS
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2037905
Title:
package docker.io (not installed) failed to install/upgrade: tentative
de remplacement de « /usr/bin/docker », qui appartient aussi au paquet
podman-docker 4:4.6.2-0ubuntu22.04+obs81.12
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io-app/+bug/2037905/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs