Bug 2071059 - Fails to run after upgrade: podman: error while loading shared libraries: libsubid.so.3: cannot open shared object file: No such file or directory
Summary: Fails to run after upgrade: podman: error while loading shared libraries: lib...
Keywords:
Status: CLOSED DUPLICATE of bug 2056303
Alias: None
Product: Fedora
Classification: Fedora
Component: podman
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Matthew Heon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-01 17:01 UTC by Török Edwin
Modified: 2022-05-03 14:42 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-04-01 21:13:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Török Edwin 2022-04-01 17:01:29 UTC
Description of problem:
I've upgraded from Fedora 35 to Fedora 36 Beta using dnf system-upgrade.
I've then tried to run 'podman' and got this error:
podman: error while loading shared libraries: libsubid.so.3: cannot open shared object file: No such file or directory

Looks like some packages did not get fully upgraded though.
Running dnf upgrade worked only partially:


Version-Release number of selected component (if applicable):
podman-3:3.4.4-1.fc35 (doesn't work on Fedora 36)
podman-3:4.0.2-1.fc36 (cannot be installed due to SELinux errors)

How reproducible:
Always

Steps to Reproduce:
1. On a Fedora 35 system install podman
2. Follow https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/ steps to upgrade
3. After the reboot try 'podman run', 'sudo dnf upgrade'

Actual results:
```
$ podman run
podman: error while loading shared libraries: libsubid.so.3: cannot open shared object file: No such file or directory

$ sudo dnf upgrade
Last metadata expiration check: 0:09:27 ago on Fri 01 Apr 2022 17:44:57 BST.
Dependencies resolved.
==================================================================================================================================================
 Package                           Architecture           Version                                           Repository                       Size
==================================================================================================================================================
Upgrading:
 conmon                            x86_64                 2:2.1.0-2.fc36                                    fedora                           59 k
 containers-common                 noarch                 4:1-53.fc36                                       fedora                           78 k
 crun                              x86_64                 1.4.4-1.fc36                                      fedora                          188 k
 flatpak                           x86_64                 1.12.7-1.fc36                                     fedora                          1.6 M
 podman                            x86_64                 3:4.0.2-1.fc36                                    fedora                           12 M
 podman-docker                     noarch                 3:4.0.2-1.fc36                                    fedora                           32 k
 runc                              x86_64                 2:1.1.1-1.fc36                                    updates-testing                 2.9 M
 snap-confine                      x86_64                 2.54.4-1.fc36                                     fedora                          2.2 M
 swtpm                             x86_64                 0.7.2-1.20220307git21c90c1.fc36                   fedora                           42 k
 tpm2-abrmd                        x86_64                 2.4.1-1.fc36                                      fedora                           78 k

Transaction Summary
==================================================================================================================================================
Upgrade  10 Packages

Total download size: 20 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): conmon-2.1.0-2.fc36.x86_64.rpm                                                                            301 kB/s |  59 kB     00:00    
(2/10): containers-common-1-53.fc36.noarch.rpm                                                                    342 kB/s |  78 kB     00:00    
(3/10): crun-1.4.4-1.fc36.x86_64.rpm                                                                              799 kB/s | 188 kB     00:00    
(4/10): podman-docker-4.0.2-1.fc36.noarch.rpm                                                                     405 kB/s |  32 kB     00:00    
(5/10): flatpak-1.12.7-1.fc36.x86_64.rpm                                                                          3.4 MB/s | 1.6 MB     00:00    
(6/10): swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64.rpm                                                          843 kB/s |  42 kB     00:00    
(7/10): tpm2-abrmd-2.4.1-1.fc36.x86_64.rpm                                                                        602 kB/s |  78 kB     00:00    
(8/10): runc-1.1.1-1.fc36.x86_64.rpm                                                                              8.1 MB/s | 2.9 MB     00:00    
(9/10): snap-confine-2.54.4-1.fc36.x86_64.rpm                                                                     2.4 MB/s | 2.2 MB     00:00    
(10/10): podman-4.0.2-1.fc36.x86_64.rpm                                                                           4.2 MB/s |  12 MB     00:02    
--------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                             4.7 MB/s |  20 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                          1/1 
  Upgrading        : crun-1.4.4-1.fc36.x86_64                                                                                                1/20 
error: lsetfilecon: (/usr/bin/crun;62472e46, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package crun-1.4.4-1.fc36.x86_64
  Upgrading        : containers-common-4:1-53.fc36.noarch                                                                                    2/20 
error: unpacking of archive failed on file /usr/bin/crun;62472e46: cpio: (error 0x2)
error: crun-1.4.4-1.fc36.x86_64: install failed
error: lsetfilecon: (/var/lib/containers/sigstore, system_u:object_r:container_var_lib_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package containers-common-4:1-53.fc36.noarch
  Upgrading        : conmon-2:2.1.0-2.fc36.x86_64                                                                                            3/20 
error: unpacking of archive failed on file /var/lib/containers/sigstore: cpio: (error 0x2)
error: containers-common-4:1-53.fc36.noarch: install failed
error: lsetfilecon: (/usr/bin/conmon;62472e46, system_u:object_r:conmon_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package conmon-2:2.1.0-2.fc36.x86_64
  Upgrading        : podman-3:4.0.2-1.fc36.x86_64                                                                                            4/20 
error: unpacking of archive failed on file /usr/bin/conmon;62472e46: cpio: (error 0x2)
error: conmon-2:2.1.0-2.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/podman;62472e46, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package podman-3:4.0.2-1.fc36.x86_64
  Upgrading        : podman-docker-3:4.0.2-1.fc36.noarch                                                                                     5/20 
error: unpacking of archive failed on file /usr/bin/podman;62472e46: cpio: (error 0x2)
error: podman-3:4.0.2-1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/docker;62472e46, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package podman-docker-3:4.0.2-1.fc36.noarch
  Upgrading        : runc-2:1.1.1-1.fc36.x86_64                                                                                              6/20 
error: unpacking of archive failed on file /usr/bin/docker;62472e46: cpio: (error 0x2)
error: podman-docker-3:4.0.2-1.fc36.noarch: install failed
error: lsetfilecon: (/usr/bin/runc;62472e46, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package runc-2:1.1.1-1.fc36.x86_64
  Upgrading        : tpm2-abrmd-2.4.1-1.fc36.x86_64                                                                                          7/20 
error: unpacking of archive failed on file /usr/bin/runc;62472e46: cpio: (error 0x2)
error: runc-2:1.1.1-1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/sbin/tpm2-abrmd;62472e46, system_u:object_r:tabrmd_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package tpm2-abrmd-2.4.1-1.fc36.x86_64
  Upgrading        : swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64                                                                            8/20 
error: unpacking of archive failed on file /usr/sbin/tpm2-abrmd;62472e46: cpio: (error 0x2)
error: tpm2-abrmd-2.4.1-1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/swtpm;62472e46, system_u:object_r:swtpm_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64
  Upgrading        : snap-confine-2.54.4-1.fc36.x86_64                                                                                       9/20 
error: unpacking of archive failed on file /usr/bin/swtpm;62472e46: cpio: (error 0x2)
error: swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/libexec/snapd/snap-confine;62472e46, system_u:object_r:snappy_confine_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package snap-confine-2.54.4-1.fc36.x86_64
  Running scriptlet: flatpak-1.12.7-1.fc36.x86_64                                                                                           10/20 
error: unpacking of archive failed on file /usr/libexec/snapd/snap-confine;62472e46: cpio: (error 0x2)
error: snap-confine-2.54.4-1.fc36.x86_64: install failed

  Upgrading        : flatpak-1.12.7-1.fc36.x86_64                                                                                           10/20 
error: lsetfilecon: (/usr/libexec/flatpak-system-helper;62472e46, system_u:object_r:flatpak_helper_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package flatpak-1.12.7-1.fc36.x86_64
  Verifying        : conmon-2:2.1.0-2.fc36.x86_64                                                                                            1/20 
  Verifying        : conmon-2:2.1.0-2.fc35.x86_64                                                                                            2/20 
  Verifying        : containers-common-4:1-53.fc36.noarch                                                                                    3/20 
  Verifying        : containers-common-4:1-45.fc35.noarch                                                                                    4/20 
  Verifying        : crun-1.4.4-1.fc36.x86_64                                                                                                5/20 
  Verifying        : crun-1.4.4-1.fc35.x86_64                                                                                                6/20 
  Verifying        : flatpak-1.12.7-1.fc36.x86_64                                                                                            7/20 
  Verifying        : flatpak-1.12.7-1.fc35.x86_64                                                                                            8/20 
  Verifying        : podman-3:4.0.2-1.fc36.x86_64                                                                                            9/20 
  Verifying        : podman-3:3.4.4-1.fc35.x86_64                                                                                           10/20 
  Verifying        : podman-docker-3:4.0.2-1.fc36.noarch                                                                                    11/20 
  Verifying        : podman-docker-3:3.4.4-1.fc35.noarch                                                                                    12/20 
  Verifying        : snap-confine-2.54.4-1.fc36.x86_64                                                                                      13/20 
  Verifying        : snap-confine-2.54.4-1.fc35.x86_64                                                                                      14/20 
  Verifying        : swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64                                                                           15/20 
  Verifying        : swtpm-0.7.2-1.20220307git21c90c1.fc35.x86_64                                                                           16/20 
  Verifying        : tpm2-abrmd-2.4.1-1.fc36.x86_64                                                                                         17/20 
  Verifying        : tpm2-abrmd-2.4.0-4.fc35.x86_64                                                                                         18/20 
  Verifying        : runc-2:1.1.1-1.fc36.x86_64                                                                                             19/20 
  Verifying        : runc-2:1.1.0-1.fc35.x86_64                                                                                             20/20 

Failed:
  conmon-2:2.1.0-2.fc35.x86_64               conmon-2:2.1.0-2.fc36.x86_64                       containers-common-4:1-45.fc35.noarch              
  containers-common-4:1-53.fc36.noarch       crun-1.4.4-1.fc35.x86_64                           crun-1.4.4-1.fc36.x86_64                          
  flatpak-1.12.7-1.fc35.x86_64               flatpak-1.12.7-1.fc36.x86_64                       podman-3:3.4.4-1.fc35.x86_64                      
  podman-3:4.0.2-1.fc36.x86_64               podman-docker-3:3.4.4-1.fc35.noarch                podman-docker-3:4.0.2-1.fc36.noarch               
  runc-2:1.1.0-1.fc35.x86_64                 runc-2:1.1.1-1.fc36.x86_64                         snap-confine-2.54.4-1.fc35.x86_64                 
  snap-confine-2.54.4-1.fc36.x86_64          swtpm-0.7.2-1.20220307git21c90c1.fc35.x86_64       swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64      
  tpm2-abrmd-2.4.0-4.fc35.x86_64             tpm2-abrmd-2.4.1-1.fc36.x86_64                    

Error: Transaction failed

```


Expected results:
podman working, upgraded package installable

Additional info:
Going to try relabeling SELinux as suggested on the wiki (why hasn't dnf system-upgrade do this if needed though?)

Comment 1 Török Edwin 2022-04-01 17:08:10 UTC
Running 'sudo fixfiles -B onboot', and rebooting and then trying the upgrade again as suggested on https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/ didn't work, still fails:
``
Running transaction
  Preparing        :                                                                                                                          1/1 
  Upgrading        : crun-1.4.4-1.fc36.x86_64                                                                                                1/20 
error: lsetfilecon: (/usr/bin/crun;62473156, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package crun-1.4.4-1.fc36.x86_64
  Upgrading        : containers-common-4:1-53.fc36.noarch                                                                                    2/20 
error: unpacking of archive failed on file /usr/bin/crun;62473156: cpio: (error 0x2)
error: crun-1.4.4-1.fc36.x86_64: install failed
error: lsetfilecon: (/var/lib/containers/sigstore, system_u:object_r:container_var_lib_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package containers-common-4:1-53.fc36.noarch
  Upgrading        : conmon-2:2.1.0-2.fc36.x86_64                                                                                            3/20 
error: unpacking of archive failed on file /var/lib/containers/sigstore: cpio: (error 0x2)
error: containers-common-4:1-53.fc36.noarch: install failed
error: lsetfilecon: (/usr/bin/conmon;62473156, system_u:object_r:conmon_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package conmon-2:2.1.0-2.fc36.x86_64
  Upgrading        : podman-3:4.0.2-1.fc36.x86_64                                                                                            4/20 
error: unpacking of archive failed on file /usr/bin/conmon;62473156: cpio: (error 0x2)
error: conmon-2:2.1.0-2.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/podman;62473156, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package podman-3:4.0.2-1.fc36.x86_64
  Upgrading        : podman-docker-3:4.0.2-1.fc36.noarch                                                                                     5/20 
error: unpacking of archive failed on file /usr/bin/podman;62473156: cpio: (error 0x2)
error: podman-3:4.0.2-1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/docker;62473156, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

```

Comment 2 Török Edwin 2022-04-01 17:12:51 UTC
Possible related bug https://bugzilla.redhat.com/show_bug.cgi?id=1775898, but reinstalling container-selinux doesn't work either.

Comment 3 Török Edwin 2022-04-01 17:14:07 UTC
Also related https://bugzilla.redhat.com/show_bug.cgi?id=2056303

Comment 4 Török Edwin 2022-04-01 17:43:02 UTC
Workaround: https://bugzilla.redhat.com/show_bug.cgi?id=2056303#c13

Comment 5 Daniel Walsh 2022-04-01 21:13:11 UTC

*** This bug has been marked as a duplicate of bug 2056303 ***


Note You need to log in before you can comment on or make changes to this bug.