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 22.04 installs podman v3.4.4: Errors were encountered while processing golang-github-containers-image and golang-github-containers-common #14367

Closed
jefflill opened this issue May 25, 2022 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@jefflill
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Installing podman on Ubuntu 22.04 via apt-get fails with:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-lvJTgR/01-golang-github-containers-image_5.16.0-3_all.deb
 /tmp/apt-dpkg-install-lvJTgR/02-golang-github-containers-common_0.44.4+ds1-1_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Important: Podman v3.4.4 is being installed here not the latest v4.1.0 build. Perhaps this is the underlying problem?

Steps to reproduce the issue:

Run the following commands on a new Ubuntu 22.04 machine:

sudo apt-get update
sudo apt-get install -y podman

Potentially related? #9345

Describe the results you received:

The sudo apt-get install -y podman fails with:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-lvJTgR/01-golang-github-containers-image_5.16.0-3_all.deb
 /tmp/apt-dpkg-install-lvJTgR/02-golang-github-containers-common_0.44.4+ds1-1_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

**Note that podman does seem to be working after this error. I was able to pull and run the Hello-World image from DockerHub.

Describe the results you expected:

I expected podman to install without errors.

Here's the full output from both commands:

root@ubuntu:/home/sysadmin# sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease
Get:5 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04  InRelease [1639 B]
Get:6 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_22.04  InRelease [1626 B]
Get:7 https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04  Packages [7771 B]
Fetched 11.0 kB in 2s (5291 B/s)
Reading package lists... Done
root@ubuntu:/home/sysadmin# sudo apt-get install -y podman
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  buildah catatonit containernetworking-plugins criu crun dconf-gsettings-backend dconf-service dns-root-data dnsmasq-base fuse-overlayfs glib-networking glib-networking-common glib-networking-services
  golang-github-containernetworking-plugin-dnsname golang-github-containers-common golang-github-containers-image gsettings-desktop-schemas libavahi-client3 libavahi-common-data libavahi-common3 libavahi-glib1 libdconf1 libnet1
  libostree-1-1 libprotobuf-c1 libprotobuf23 libproxy1v5 libsoup2.4-1 libsoup2.4-common libyajl2 python3-protobuf session-migration slirp4netns uidmap
Suggested packages:
  containers-storage docker-compose
The following NEW packages will be installed:
  buildah catatonit containernetworking-plugins criu crun dconf-gsettings-backend dconf-service dns-root-data dnsmasq-base fuse-overlayfs glib-networking glib-networking-common glib-networking-services
  golang-github-containernetworking-plugin-dnsname golang-github-containers-common golang-github-containers-image gsettings-desktop-schemas libavahi-client3 libavahi-common-data libavahi-common3 libavahi-glib1 libdconf1 libnet1
  libostree-1-1 libprotobuf-c1 libprotobuf23 libproxy1v5 libsoup2.4-1 libsoup2.4-common libyajl2 podman python3-protobuf session-migration slirp4netns uidmap
0 upgraded, 35 newly installed, 0 to remove and 3 not upgraded.
Need to get 29.0 MB of archives.
After this operation, 126 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 uidmap amd64 1:4.8.1-2ubuntu2 [22.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 golang-github-containers-image all 5.16.0-3 [29.3 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 golang-github-containers-common all 0.44.4+ds1-1 [28.1 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libavahi-common-data amd64 0.8-5ubuntu5 [23.9 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libavahi-common3 amd64 0.8-5ubuntu5 [23.7 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libavahi-client3 amd64 0.8-5ubuntu5 [28.1 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libavahi-glib1 amd64 0.8-5ubuntu5 [8294 B]
Get:8 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libproxy1v5 amd64 0.4.17-2 [51.9 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 glib-networking-common all 2.72.0-1 [3718 B]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 glib-networking-services amd64 2.72.0-1 [9982 B]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libdconf1 amd64 0.40.0-3 [40.5 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 dconf-service amd64 0.40.0-3 [28.5 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 dconf-gsettings-backend amd64 0.40.0-3 [22.8 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 session-migration amd64 0.3.6 [9774 B]
Get:15 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 gsettings-desktop-schemas all 42.0-1ubuntu1 [31.1 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 glib-networking amd64 2.72.0-1 [69.8 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libsoup2.4-common all 2.74.2-3 [4008 B]
Get:19 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libsoup2.4-1 amd64 2.74.2-3 [287 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 libostree-1-1 amd64 2022.2-3 [333 kB]
Get:16 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04  criu 3.17-1 [744 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 buildah amd64 1.23.1+ds1-2 [6094 kB]
Get:20 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04  crun 100:1.2-2 [317 kB]
Get:21 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04  fuse-overlayfs 100:1.5.0-2 [44.1 kB]
Get:22 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04  slirp4netns 100:1.1.8-4 [844 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 catatonit amd64 0.1.7-1 [307 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 containernetworking-plugins amd64 0.9.1+ds1-1 [6422 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libprotobuf23 amd64 3.12.4-1ubuntu7 [876 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 python3-protobuf amd64 3.12.4-1ubuntu7 [357 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libnet1 amd64 1.1.6+dfsg-3.1build3 [46.9 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu2 [20.0 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libyajl2 amd64 2.1.0-3build2 [20.6 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 dns-root-data all 2021011101 [5256 B]
Get:33 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 dnsmasq-base amd64 2.86-1.1ubuntu0.1 [354 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 golang-github-containernetworking-plugin-dnsname amd64 1.3.1+ds1-2 [1083 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 podman amd64 3.4.4+ds1-1ubuntu1 [10.4 MB]
Fetched 29.0 MB in 36s (809 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package uidmap.
(Reading database ... 66676 files and directories currently installed.)
Preparing to unpack .../00-uidmap_1%3a4.8.1-2ubuntu2_amd64.deb ...
Unpacking uidmap (1:4.8.1-2ubuntu2) ...
Selecting previously unselected package golang-github-containers-image.
Preparing to unpack .../01-golang-github-containers-image_5.16.0-3_all.deb ...
Unpacking golang-github-containers-image (5.16.0-3) ...
dpkg: error processing archive /tmp/apt-dpkg-install-lvJTgR/01-golang-github-containers-image_5.16.0-3_all.deb (--unpack):
 trying to overwrite '/etc/containers/registries.conf', which is also in package containers-common 100:1-22
Selecting previously unselected package golang-github-containers-common.
Preparing to unpack .../02-golang-github-containers-common_0.44.4+ds1-1_all.deb ...
Unpacking golang-github-containers-common (0.44.4+ds1-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-lvJTgR/02-golang-github-containers-common_0.44.4+ds1-1_all.deb (--unpack):
 trying to overwrite '/etc/containers/policy.json', which is also in package containers-common 100:1-22
Selecting previously unselected package libavahi-common-data:amd64.
Preparing to unpack .../03-libavahi-common-data_0.8-5ubuntu5_amd64.deb ...
Unpacking libavahi-common-data:amd64 (0.8-5ubuntu5) ...
Selecting previously unselected package libavahi-common3:amd64.
Preparing to unpack .../04-libavahi-common3_0.8-5ubuntu5_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.8-5ubuntu5) ...
Selecting previously unselected package libavahi-client3:amd64.
Preparing to unpack .../05-libavahi-client3_0.8-5ubuntu5_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.8-5ubuntu5) ...
Selecting previously unselected package libavahi-glib1:amd64.
Preparing to unpack .../06-libavahi-glib1_0.8-5ubuntu5_amd64.deb ...
Unpacking libavahi-glib1:amd64 (0.8-5ubuntu5) ...
Selecting previously unselected package libproxy1v5:amd64.
Preparing to unpack .../07-libproxy1v5_0.4.17-2_amd64.deb ...
Unpacking libproxy1v5:amd64 (0.4.17-2) ...
Selecting previously unselected package glib-networking-common.
Preparing to unpack .../08-glib-networking-common_2.72.0-1_all.deb ...
Unpacking glib-networking-common (2.72.0-1) ...
Selecting previously unselected package glib-networking-services.
Preparing to unpack .../09-glib-networking-services_2.72.0-1_amd64.deb ...
Unpacking glib-networking-services (2.72.0-1) ...
Selecting previously unselected package libdconf1:amd64.
Preparing to unpack .../10-libdconf1_0.40.0-3_amd64.deb ...
Unpacking libdconf1:amd64 (0.40.0-3) ...
Selecting previously unselected package dconf-service.
Preparing to unpack .../11-dconf-service_0.40.0-3_amd64.deb ...
Unpacking dconf-service (0.40.0-3) ...
Selecting previously unselected package dconf-gsettings-backend:amd64.
Preparing to unpack .../12-dconf-gsettings-backend_0.40.0-3_amd64.deb ...
Unpacking dconf-gsettings-backend:amd64 (0.40.0-3) ...
Selecting previously unselected package session-migration.
Preparing to unpack .../13-session-migration_0.3.6_amd64.deb ...
Unpacking session-migration (0.3.6) ...
Selecting previously unselected package gsettings-desktop-schemas.
Preparing to unpack .../14-gsettings-desktop-schemas_42.0-1ubuntu1_all.deb ...
Unpacking gsettings-desktop-schemas (42.0-1ubuntu1) ...
Selecting previously unselected package glib-networking:amd64.
Preparing to unpack .../15-glib-networking_2.72.0-1_amd64.deb ...
Unpacking glib-networking:amd64 (2.72.0-1) ...
Selecting previously unselected package libsoup2.4-common.
Preparing to unpack .../16-libsoup2.4-common_2.74.2-3_all.deb ...
Unpacking libsoup2.4-common (2.74.2-3) ...
Selecting previously unselected package libsoup2.4-1:amd64.
Preparing to unpack .../17-libsoup2.4-1_2.74.2-3_amd64.deb ...
Unpacking libsoup2.4-1:amd64 (2.74.2-3) ...
Selecting previously unselected package libostree-1-1:amd64.
Preparing to unpack .../18-libostree-1-1_2022.2-3_amd64.deb ...
Unpacking libostree-1-1:amd64 (2022.2-3) ...
Selecting previously unselected package buildah.
Preparing to unpack .../19-buildah_1.23.1+ds1-2_amd64.deb ...
Unpacking buildah (1.23.1+ds1-2) ...
Selecting previously unselected package catatonit.
Preparing to unpack .../20-catatonit_0.1.7-1_amd64.deb ...
Unpacking catatonit (0.1.7-1) ...
Selecting previously unselected package containernetworking-plugins.
Preparing to unpack .../21-containernetworking-plugins_0.9.1+ds1-1_amd64.deb ...
Unpacking containernetworking-plugins (0.9.1+ds1-1) ...
Selecting previously unselected package libprotobuf23:amd64.
Preparing to unpack .../22-libprotobuf23_3.12.4-1ubuntu7_amd64.deb ...
Unpacking libprotobuf23:amd64 (3.12.4-1ubuntu7) ...
Selecting previously unselected package python3-protobuf.
Preparing to unpack .../23-python3-protobuf_3.12.4-1ubuntu7_amd64.deb ...
Unpacking python3-protobuf (3.12.4-1ubuntu7) ...
Selecting previously unselected package libnet1:amd64.
Preparing to unpack .../24-libnet1_1.1.6+dfsg-3.1build3_amd64.deb ...
Unpacking libnet1:amd64 (1.1.6+dfsg-3.1build3) ...
Selecting previously unselected package libprotobuf-c1:amd64.
Preparing to unpack .../25-libprotobuf-c1_1.3.3-1ubuntu2_amd64.deb ...
Unpacking libprotobuf-c1:amd64 (1.3.3-1ubuntu2) ...
Selecting previously unselected package criu.
Preparing to unpack .../26-criu_3.17-1_amd64.deb ...
Unpacking criu (3.17-1) ...
Selecting previously unselected package libyajl2:amd64.
Preparing to unpack .../27-libyajl2_2.1.0-3build2_amd64.deb ...
Unpacking libyajl2:amd64 (2.1.0-3build2) ...
Selecting previously unselected package crun.
Preparing to unpack .../28-crun_100%3a1.2-2_amd64.deb ...
Unpacking crun (100:1.2-2) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../29-dns-root-data_2021011101_all.deb ...
Unpacking dns-root-data (2021011101) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../30-dnsmasq-base_2.86-1.1ubuntu0.1_amd64.deb ...
Unpacking dnsmasq-base (2.86-1.1ubuntu0.1) ...
Selecting previously unselected package fuse-overlayfs.
Preparing to unpack .../31-fuse-overlayfs_100%3a1.5.0-2_amd64.deb ...
Unpacking fuse-overlayfs (100:1.5.0-2) ...
Selecting previously unselected package golang-github-containernetworking-plugin-dnsname.
Preparing to unpack .../32-golang-github-containernetworking-plugin-dnsname_1.3.1+ds1-2_amd64.deb ...
Unpacking golang-github-containernetworking-plugin-dnsname (1.3.1+ds1-2) ...
Selecting previously unselected package podman.
Preparing to unpack .../33-podman_3.4.4+ds1-1ubuntu1_amd64.deb ...
Unpacking podman (3.4.4+ds1-1ubuntu1) ...
Selecting previously unselected package slirp4netns.
Preparing to unpack .../34-slirp4netns_100%3a1.1.8-4_amd64.deb ...
Unpacking slirp4netns (100:1.1.8-4) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-lvJTgR/01-golang-github-containers-image_5.16.0-3_all.deb
 /tmp/apt-dpkg-install-lvJTgR/02-golang-github-containers-common_0.44.4+ds1-1_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Output of podman version:

root@ubuntu:/home/sysadmin# podman version
Version:      3.4.4
API Version:  3.4.4
Go Version:   go1.17.3
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64

Output of podman info --debug:

root@ubuntu:/home/sysadmin# podman info --debug
host:
  arch: amd64
  buildahVersion: 1.23.1
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - rdma
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: 'conmon: /usr/libexec/podman/conmon'
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.1.0, commit: '
  cpus: 4
  distribution:
    codename: jammy
    distribution: ubuntu
    version: "22.04"
  eventLogger: journald
  hostname: ubuntu
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.15.0-33-generic
  linkmode: dynamic
  logDriver: journald
  memFree: 1060122624
  memTotal: 2005151744
  ociRuntime:
    name: crun
    package: 'crun: /usr/bin/crun'
    path: /usr/bin/crun
    version: |-
      crun version UNKNOWN
      commit: ea1fe3938eefa14eb707f1d22adff4db670645d6
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  security:
    apparmorEnabled: true
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: 'slirp4netns: /usr/bin/slirp4netns'
    version: |-
      slirp4netns version 1.1.8
      commit: unknown
      libslirp: 4.3.1-git
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.3
  swapFree: 0
  swapTotal: 0
  uptime: 21m 4.78s
plugins:
  log:
  - k8s-file
  - none
  - journald
  network:
  - bridge
  - macvlan
  volume:
  - local
registries:
  neon-registry.node.local:
    Blocked: false
    Insecure: true
    Location: neon-registry.node.local
    MirrorByDigestOnly: false
    Mirrors: null
    Prefix: neon-registry.node.local
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 0
    stopped: 1
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  imageStore:
    number: 1
  runRoot: /run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 3.4.4
  Built: 0
  BuiltTime: Thu Jan  1 00:00:00 1970
  GitCommit: ""
  GoVersion: go1.17.3
  OsArch: linux/amd64
  Version: 3.4.4

Package info (e.g. output of rpm -q podman or apt list podman):

root@ubuntu:/home/sysadmin# apt list podman
Listing... Done
podman/jammy,now 3.4.4+ds1-1ubuntu1 amd64 [installed]

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)

Yes

Additional environment details (AWS, VirtualBox, physical, etc.):

Running on Windows Hyper-V.

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label May 25, 2022
@jefflill jefflill changed the title Ubuntu 22.04 install: Errors were encountered while processing golang-github-containers-image and golang-github-containers-common Ubuntu 22.04 installs podman v3.4.4: Errors were encountered while processing golang-github-containers-image and golang-github-containers-common May 25, 2022
@Luap99
Copy link
Member

Luap99 commented May 25, 2022

Please report debian package issues to the debian bug tracker. This is not an upstream issue.
https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=podman

@Luap99 Luap99 closed this as completed May 25, 2022
@johnthagen
Copy link

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants