/kind bug
Description
When trying to install podman 1.6.4, I'm getting the following error:
Unpacking podman (1.6.4~2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-KTMV9c/5-podman_1.6.4~2_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/docker-attach.1.gz', which is also in package docker-ce-cli 5:19.03.5~3-0~ubuntu-bionic
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/tmp/apt-dpkg-install-KTMV9c/5-podman_1.6.4~2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
-->
Steps to reproduce the issue:
https://software.opensuse.org//download.html?project=devel%3Akubic%3Alibcontainers%3Astable&package=podman**Package info (e.g. output of `rpm -q podman` or `apt list podman`):**
podman/unknown 1.6.4~2 amd64
```
Ubuntu 18.04
This looks like podman-docker is combined into the same package. It should be a subpackage and only installed on demand and conflict with docker. This is how it works with the RPM packaging.
@lsm5 , please take a look
Very similar with rpm distros too, see https://github.com/containers/libpod/issues/4791
@jnovy Could you fix this please. podman package should not include the docker man pages, they should be in the podman-docker package.
@jnovy Could you fix this please. podman package should not include the docker man pages, they should be in the podman-docker package.
this one's on me, @jnovy is fixing rhel.
I removed the docker manpages from podman 1.7.0. There's no docker-blah or podman-docker symlink being installed right now, I'll include this as a subpackage later on..
The new podman should be available in an hour or less hopefully https://build.opensuse.org/package/show/devel:kubic:libcontainers:stable/podman .
Closing, please re-open if this persists.
@lsm5 hi :wave: i just ran into this problem with podman_1.7.0~3 using this apt source deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_19.10/ and sudo apt install podman:
Unpacking podman (1.7.0~3) ...
dpkg: error processing archive /var/cache/apt/archives/podman_1.7.0~3_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/docker-attach.1.gz', which is also in package docker-ce-cli 5:19.03.3~3-0~ubuntu-disco
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/podman_1.7.0~3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas what I'm doing wrong here? Thanks very much.
Same error for me on Ubuntu 18.04 and podman_1.7.0~3
Preparing to unpack .../podman_1.7.0~3_amd64.deb ...
Unpacking podman (1.7.0~3) over (1.6.2-1~ubuntu18.04~ppa1) ...
dpkg:
error processing archive /var/cache/apt/archives/podman_1.7.0~3_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/docker-attach.1.gz', which is also in package docker-ce-cli 5:19.03.5~3-0~ubuntu-bionic

1.7.0~4 will be available (should be an hour or less) on the kubic repo. That will not install any docker manpage. Let me know if any other issues..
1.7.0~4 installs fine next to an existiing docker-ce! Issue solved :heavy_check_mark:
Question:
Is there a reason to not rollout the registries.conf with either the podman package or the containers-common package and instead suggesting in the installation steps to create that file manually?
sudo mkdir -p /etc/containers
echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | sudo tee /etc/containers/registries.conf
1.7.0~4 installs fine next to an existiing docker-ce! Issue solved heavy_check_mark
Question:
Is there a reason to not rollout the registries.conf with either the podman package or the containers-common package and instead suggesting in the installation steps to create that file manually?
sudo mkdir -p /etc/containers
echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | sudo tee /etc/containers/registries.conf
sorry about that, will fix in 1.7.0~5, should be ready tomorrow.
1.7.0~4 installs fine next to an existiing docker-ce! Issue solved heavy_check_mark
Thanks for the great work, @lsm5 !
+1 @lsm5 thank you!
Most helpful comment
1.7.0~4will be available (should be an hour or less) on the kubic repo. That will not install any docker manpage. Let me know if any other issues..