Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04 apt upgrade fails to upgrade containers-common #2703

Closed
1 of 7 tasks
jszwedko opened this issue Feb 12, 2021 · 11 comments
Closed
1 of 7 tasks

Ubuntu 20.04 apt upgrade fails to upgrade containers-common #2703

jszwedko opened this issue Feb 12, 2021 · 11 comments
Assignees
Labels
Area: Packages awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug Something isn't working OS: Ubuntu

Comments

@jszwedko
Copy link

Description

Running apt upgrade on the Ubuntu 20.04 runner fails due to dpkg not being able to upgrade containers-common because it wants to write a file that is owned by containers-image package.

I imagine this is probably an upstream package issue, but figured I'd file it here to be triaged.

Area for Triage:

Packages

Question, Bug, or Feature?:

Bug

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

I didn't verify the other environments.

Image version

20210208.0

Expected behavior

apt upgrade --yes succeeds.

Actual behavior

apt upgrade --yes fails.

Log:

apt upgrade --yes

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages have been kept back:
  podman
The following packages will be upgraded:
  aspnetcore-runtime-3.1 aspnetcore-runtime-5.0 azure-cli buildah conmon
  containernetworking-plugins containers-common crun dotnet-apphost-pack-3.1
  dotnet-apphost-pack-5.0 dotnet-host dotnet-hostfxr-3.1 dotnet-hostfxr-5.0
  dotnet-runtime-3.1 dotnet-runtime-5.0 dotnet-runtime-deps-3.1
  dotnet-runtime-deps-5.0 dotnet-sdk-3.1 dotnet-sdk-5.0 firefox
  google-cloud-sdk libpq-dev libpq5 podman-plugins postgresql postgresql-13
  postgresql-client postgresql-client-13 postgresql-client-common
  postgresql-common powershell skopeo slirp4netns snapd
34 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 504 MB of archives.
After this operation, 1033 kB disk space will be freed.
Get:1 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 firefox amd64 85.0.1+build1-0ubuntu0.20.04.1 [56.1 MB]
Get:2 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-host amd64 5.0.3-1 [52.9 kB]
Get:3 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-hostfxr-3.1 amd64 3.1.12-1 [121 kB]
Get:4 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-runtime-deps-3.1 amd64 3.1.12-1 [2682 B]
Get:5 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-runtime-3.1 amd64 3.1.12-1 [21.9 MB]
Get:6 https://packages.cloud.google.com/apt cloud-sdk/main amd64 google-cloud-sdk all 327.0.0-0 [92.0 MB]
Get:7 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 aspnetcore-runtime-3.1 amd64 3.1.12-1 [5773 kB]
Get:8 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  containers-common 100:1-7 [44.8 kB]
Get:9 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-runtime-deps-5.0 amd64 5.0.3-1 [2646 B]
Get:10 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-hostfxr-5.0 amd64 5.0.3-1 [141 kB]
Get:11 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 libpq-dev amd64 13.2-1.pgdg20.04+1 [136 kB]
Get:12 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-runtime-5.0 amd64 5.0.3-1 [21.8 MB]
Get:13 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  crun 100:0.17-4 [236 kB]
Get:14 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  buildah 100:1.19.4-1 [6444 kB]
Get:15 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 libpq5 amd64 13.2-1.pgdg20.04+1 [176 kB]
Get:16 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-common all 225.pgdg20.04+1 [238 kB]
Get:17 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 aspnetcore-runtime-5.0 amd64 5.0.3-1 [6086 kB]
Get:18 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-common all 225.pgdg20.04+1 [89.4 kB]
Get:19 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-13 amd64 13.2-1.pgdg20.04+1 [1497 kB]
Get:20 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-13 amd64 13.2-1.pgdg20.04+1 [15.0 MB]
Get:21 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-apphost-pack-3.1 amd64 3.1.12-1 [42.7 kB]
Get:22 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 dotnet-apphost-pack-5.0 amd64 5.0.3-1 [3399 kB]
Preparing to unpack .../07-dotnet-runtime-5.0_5.0.3-1_amd64.deb ...
Unpacking dotnet-runtime-5.0 (5.0.3-1) over (5.0.2-1) ...
Preparing to unpack .../08-aspnetcore-runtime-5.0_5.0.3-1_amd64.deb ...
Unpacking aspnetcore-runtime-5.0 (5.0.3-1) over (5.0.2-1) ...
Preparing to unpack .../09-dotnet-apphost-pack-3.1_3.1.12-1_amd64.deb ...
Unpacking dotnet-apphost-pack-3.1 (3.1.12-1) over (3.1.11-1) ...
Preparing to unpack .../10-dotnet-apphost-pack-5.0_5.0.3-1_amd64.deb ...
Unpacking dotnet-apphost-pack-5.0 (5.0.3-1) over (5.0.2-1) ...
Preparing to unpack .../11-dotnet-sdk-3.1_3.1.406-1_amd64.deb ...
Unpacking dotnet-sdk-3.1 (3.1.406-1) over (3.1.405-1) ...
Preparing to unpack .../12-dotnet-sdk-5.0_5.0.103-1_amd64.deb ...
Unpacking dotnet-sdk-5.0 (5.0.103-1) over (5.0.102-1) ...
Preparing to unpack .../13-containers-common_100%3a1-7_all.deb ...
Unpacking containers-common (100:1-7) over (1.2.1~2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-rqeiJD/13-containers-common_100%3a1-7_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man5/containers-auth.json.5.gz', which is also in package containers-image 5.8.1~1
Preparing to unpack .../14-crun_100%3a0.17-4_amd64.deb ...
Unpacking crun (100:0.17-4) over (0.16~2) ...
Preparing to unpack .../15-buildah_100%3a1.19.4-1_amd64.deb ...
Unpacking buildah (100:1.19.4-1) over (1.19.2~1) ...
Preparing to unpack .../16-conmon_100%3a2.0.26-1_amd64.deb ...
Unpacking conmon (100:2.0.26-1) over (2.0.24~1) ...
Preparing to unpack .../17-firefox_85.0.1+build1-0ubuntu0.20.04.1_amd64.deb ...
Unpacking firefox (85.0.1+build1-0ubuntu0.20.04.1) over (85.0+build1-0ubuntu0.20.04.1) ...
Preparing to unpack .../18-google-cloud-sdk_327.0.0-0_all.deb ...
Unpacking google-cloud-sdk (327.0.0-0) over (326.0.0-0) ...
Preparing to unpack .../19-libpq-dev_13.2-1.pgdg20.04+1_amd64.deb ...
Unpacking libpq-dev (13.2-1.pgdg20.04+1) over (13.1-1.pgdg20.04+1) ...
Preparing to unpack .../20-libpq5_13.2-1.pgdg20.04+1_amd64.deb ...
Unpacking libpq5:amd64 (13.2-1.pgdg20.04+1) over (13.1-1.pgdg20.04+1) ...
Preparing to unpack .../21-podman-plugins_100%3a1.1.1-3_amd64.deb ...
Unpacking podman-plugins (100:1.1.1-3) over (1.1.1~1) ...
Preparing to unpack .../22-postgresql-common_225.pgdg20.04+1_all.deb ...
Leaving 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
Unpacking postgresql-common (225.pgdg20.04+1) over (223.pgdg20.04+1) ...
Preparing to unpack .../23-postgresql-client-common_225.pgdg20.04+1_all.deb ...
Unpacking postgresql-client-common (225.pgdg20.04+1) over (223.pgdg20.04+1) ...
Preparing to unpack .../24-postgresql-client-13_13.2-1.pgdg20.04+1_amd64.deb ...
Unpacking postgresql-client-13 (13.2-1.pgdg20.04+1) over (13.1-1.pgdg20.04+1) ...
Preparing to unpack .../25-postgresql-13_13.2-1.pgdg20.04+1_amd64.deb ...
Unpacking postgresql-13 (13.2-1.pgdg20.04+1) over (13.1-1.pgdg20.04+1) ...
Preparing to unpack .../26-postgresql_13+225.pgdg20.04+1_all.deb ...
Unpacking postgresql (13+225.pgdg20.04+1) over (13+223.pgdg20.04+1) ...
Preparing to unpack .../27-postgresql-client_13+225.pgdg20.04+1_all.deb ...
Unpacking postgresql-client (13+225.pgdg20.04+1) over (13+223.pgdg20.04+1) ...
Preparing to unpack .../28-skopeo_100%3a1.2.1-8_amd64.deb ...
Unpacking skopeo (100:1.2.1-8) over (1.2.1~2) ...
Preparing to unpack .../29-slirp4netns_100%3a1.1.8-3_amd64.deb ...
Unpacking slirp4netns (100:1.1.8-3) over (1.1.8~1) ...
Preparing to unpack .../30-snapd_2.48.3+20.04_amd64.deb ...
Unpacking snapd (2.48.3+20.04) over (2.48+20.04) ...
Preparing to unpack .../31-azure-cli_2.19.1-1~focal_all.deb ...
Unpacking azure-cli (2.19.1-1~focal) over (2.18.0-1~focal) ...
Preparing to unpack .../32-containernetworking-plugins_100%3a0.9.1-1_amd64.deb ...
Unpacking containernetworking-plugins (100:0.9.1-1) over (0.9.0~1) ...
Preparing to unpack .../33-powershell_7.1.2-1.ubuntu.20.04_amd64.deb ...
Unpacking powershell (7.1.2-1.ubuntu.20.04) over (7.1.1-1.ubuntu.20.04) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-rqeiJD/13-containers-common_100%3a1-7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: Process completed with exit code 100.

Repro steps

Run apt update && apt upgrade on an Ubuntu 20.04 runner.

Link to failure: https://github.com/timberio/vector/runs/1889495611?check_suite_focus=true

The script that is run by that workflow is https://github.com/timberio/vector/blob/ac42f501608cf1055830bd29b38c0f5f710550a0/scripts/environment/bootstrap-ubuntu-20.04.sh#L28

@jszwedko
Copy link
Author

Using -o Dpkg::Options::="--force-overwrite" reveals some other overlapping files:

Unpacking containers-common (100:1-7) over (1.2.1~2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-auth.json.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-certs.d.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-policy.json.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-registries.conf.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-registries.conf.d.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-registries.d.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-signature.5.gz', which is also in package containers-image 5.8.1~1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/man/man5/containers-transports.5.gz', which is also in package containers-image 5.8.1~1

jszwedko added a commit to vectordotdev/vector that referenced this issue Feb 12, 2021
ubuntu-latest is in the process of being migrated which means the jobs
can run on either 18.04 or 20.04:

actions/runner-images#1816

We've seen some failures on 20.04 that we'll need to address before
upgrading.

https://github.com/timberio/vector/actions/runs/559968325

Also replace `ubuntu-latest` with `ubuntu-20.04` for jobs that seem to be fine on 20.04.

I ended up including a fix for actions/runner-images#2703 as well.
Kharianne added a commit to Kharianne/covid-italy-czechia-com that referenced this issue Feb 13, 2021
tmp workaround until bug upstream is resolved:actions/runner-images#2703
@veita
Copy link

veita commented Feb 13, 2021

Same problem here with Linux Mint 20 (Ulyana).

The cause of this error is probably the somewhat older containers-image 5.8.1 package in the repository.

@vctrstrm
Copy link

Same Ubuntu 20.04.2 , but i found a workaround for my situation:

apt update
apt remove buildah podman -y
apt autoremove -y
apt install buildah podman -y

At the end, these installed side by side without incident.

  • containers-common==100:1-7
  • containers-image==5.8.1~1

Maybe some variation on above will work for you @jszwedko ?

@mcasviper
Copy link

@vctrstrm thanks for your hint. It worked for me.

@LeonidLapshin LeonidLapshin added Area: Packages investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu and removed needs triage labels Feb 15, 2021
@rokibhasansagar
Copy link

Just now, I tried apt update -qy && apt upgrade -qy which returned this error -

Errors were encountered while processing:
 /tmp/apt-dpkg-install-XYY93Y/13-containers-common_100%3a1-7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then I ran upgrade with -o Dpkg::Options::="--force-overwrite", but returned new error.

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 buildah : Depends: containers-common (>= 100:1-7) but 1.2.1~2 is installed
 skopeo : Depends: containers-common (>= 100:1-7) but 1.2.1~2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

So, I purged both of them as-well-as podman, reinstalled them (optional), and ran successful upgrade again

adelton added a commit to adelton/freeipa-container that referenced this issue Feb 15, 2021
adelton added a commit to adelton/freeipa-container that referenced this issue Feb 15, 2021
@derjohn
Copy link

derjohn commented Feb 15, 2021

On Ubuntu Bionic (18.x):

Unpacking containers-common (100:1-7) over (1.2.1~2) ...
dpkg: error processing archive /var/cache/apt/archives/containers-common_100%3a1-7_all.deb (--install):
 trying to overwrite '/usr/share/man/man5/containers-auth.json.5.gz', which is also in package containers-image 5.8.1~1```

The same manpage is in both packges.

Workaround:

sudo dpkg --force-all -i /var/cache/apt/archives/containers-common_100%3a1-7_all.deb

adelton added a commit to adelton/freeipa-container that referenced this issue Feb 15, 2021
adelton added a commit to adelton/freeipa-container that referenced this issue Feb 15, 2021
adelton added a commit to adelton/freeipa-container that referenced this issue Feb 15, 2021
@miketimofeev
Copy link
Contributor

Hi @jszwedko! I've checked your script on the latest generated Ubuntu20 image from today, and there is no such issue anymore. We're going to start a new image rollout tomorrow, and it'll take about 3-4 days to propagate to all the environments. I'll keep you posted.

@miketimofeev miketimofeev self-assigned this Feb 15, 2021
@miketimofeev miketimofeev added awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug Something isn't working and removed investigate Collect additional information, like space on disk, other tool incompatibilities etc. labels Feb 15, 2021
adelton added a commit to adelton/freeipa-container that referenced this issue Feb 15, 2021
asymworks added a commit to asymworks/jadetree-backend that referenced this issue Feb 15, 2021
@PhilipSchmid
Copy link

This here worked for me (on Pop-OS 20.04):

sudo dpkg -P skopeo podman builah
sudo apt --fix-broken install
sudo apt update
sudo apt upgrade
sudo apt autoremove
sudo apt install skopeo podman builah

Thanks @vctrstrm and @rokibhasansagar for the hints!

adelton added a commit to adelton/freeipa-container that referenced this issue Feb 19, 2021
and https://bugzilla.redhat.com/show_bug.cgi?id=1928643."

This reverts commit 54d464f.

Package dependencies got fixed and podman 3.0.1 fixes 1928643.
adelton added a commit to adelton/freeipa-container that referenced this issue Feb 20, 2021
and https://bugzilla.redhat.com/show_bug.cgi?id=1928643."

This reverts commit 54d464f.

Package dependencies got fixed.
Podman 3.0.1 fixes 1928643, a.k.a. containers/podman#9354.
@miketimofeev
Copy link
Contributor

@jszwedko the image was deployed, everything looks good so far. I'm going to close the issue, feel free to contact us if you have any concerns.
Thank you!

@daiaji
Copy link

daiaji commented Jul 17, 2022

Run echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list
  echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list
  curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null
  sudo apt-get update
  sudo apt-get install -y buildah
  shell: /usr/bin/bash -e {0}
  env:
    IMAGE_TAG: latest
    IMAGE_NAME: xray
deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [10.5 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [375 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [93.9 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [6688 B]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [235 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [35.9 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [171 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [60.5 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [4128 B]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [223 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [54.3 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [3564 B]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [200 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [30.0 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [93.5 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [33.0 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [2068 B]
Get:22 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  InRelease [1271 B]
Get:23 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [25.6 kB]
Hit:25 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:24 http://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  Packages [12.4 kB]
Fetched 1995 kB in 2s (994 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  aardvark-dns containers-common crun netavark
The following NEW packages will be installed:
  aardvark-dns containers-common netavark
The following packages will be upgraded:
  buildah crun
2 upgraded, 3 newly installed, 0 to remove and 34 not upgraded.
Need to get 22.2 MB of archives.
After this operation, 49.3 MB of additional disk space will be used.
Get:1 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  aardvark-dns 1.0.3-0ubuntu22.04+obs20.1 [2888 kB]
Get:2 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  crun 1.4.5-0ubuntu22.04+obs32.1 [771 kB]
Get:3 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  netavark 1.0.3-0ubuntu22.04+obs10.1 [3912 kB]
Get:4 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  containers-common 4:1-0ubuntu22.04+obs11.1 [69.2 kB]
Get:5 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04  buildah 1.26.2-0ubuntu22.04+obs19.1 [14.6 MB]
Fetched 22.2 MB in 4s (5938 kB/s)
Selecting previously unselected package aardvark-dns.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 211369 files and directories currently installed.)
Preparing to unpack .../aardvark-dns_1.0.3-0ubuntu22.04+obs20.1_amd64.deb ...
Unpacking aardvark-dns (1.0.3-0ubuntu22.04+obs20.1) ...
Preparing to unpack .../crun_1.4.5-0ubuntu22.04+obs32.1_amd64.deb ...
Unpacking crun (1.4.5-0ubuntu22.04+obs32.1) over (0.17+dfsg-1.1) ...
Selecting previously unselected package netavark.
Preparing to unpack .../netavark_1.0.3-0ubuntu22.04+obs10.1_amd64.deb ...
Unpacking netavark (1.0.3-0ubuntu22.04+obs10.1) ...
dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 16 package 'containers-common':
 missing 'Maintainer' field
Selecting previously unselected package containers-common.
Preparing to unpack .../containers-common_4%3a1-0ubuntu22.04+obs11.1_amd64.deb ...
Unpacking containers-common (4:1-0ubuntu22.04+obs11.1) ...
dpkg: error processing archive /var/cache/apt/archives/containers-common_4%3a1-0ubuntu22.04+obs11.1_amd64.deb (--unpack):
 trying to overwrite '/etc/containers/policy.json', which is also in package golang-github-containers-common 0.44.4+ds1-1
Preparing to unpack .../buildah_1.26.2-0ubuntu22.04+obs19.1_amd64.deb ...
Unpacking buildah (1.26.2-0ubuntu22.04+obs19.1) over (1.23.1+ds1-2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/containers-common_4%3a1-0ubuntu22.04+obs11.1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: Process completed with exit code 100.

A similar error occurred when I tried to install buildah version 1.26.2. It seems that the golang-github-containers-common package conflicts with containers common.

@tabbas97
Copy link

On Ubuntu Bionic (18.x):

Unpacking containers-common (100:1-7) over (1.2.1~2) ...
dpkg: error processing archive /var/cache/apt/archives/containers-common_100%3a1-7_all.deb (--install):
 trying to overwrite '/usr/share/man/man5/containers-auth.json.5.gz', which is also in package containers-image 5.8.1~1```

The same manpage is in both packges.

Workaround:

sudo dpkg --force-all -i /var/cache/apt/archives/containers-common_100%3a1-7_all.deb

This is the only thing that worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Packages awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug Something isn't working OS: Ubuntu
Projects
None yet
Development

No branches or pull requests