9 Stream dnf update failure -- related to podman dependency version conflicts?

Issues related to applications and software problems and general support
Post Reply
Clovis_Sangrail
Posts: 25
Joined: 2016/04/19 23:19:36

9 Stream dnf update failure -- related to podman dependency version conflicts?

Post by Clovis_Sangrail » 2022/11/30 19:43:58

A great many other packages updated successfully, but afterwards a few fail repeatedly:

Code: Select all

[root@stream1 ~]# dnf update
Last metadata expiration check: 3:19:46 ago on Wed 30 Nov 2022 10:19:22 AM EST.
Dependencies resolved.
========================================================================================================
 Package                       Architecture       Version                   Repository             Size
========================================================================================================
Upgrading:
 conmon                        x86_64             2:2.1.5-1.el9             appstream              53 k
 containers-common             x86_64             2:1-46.el9                appstream             119 k
 crun                          x86_64             1.7.1-1.el9               appstream             196 k
 podman                        x86_64             2:4.3.1-1.el9             appstream              12 M

Transaction Summary
========================================================================================================
Upgrade  4 Packages

Total download size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): containers-common-1-46.el9.x86_64.rpm                            288 kB/s | 119 kB     00:00    
(2/4): crun-1.7.1-1.el9.x86_64.rpm                                      384 kB/s | 196 kB     00:00    
(3/4): conmon-2.1.5-1.el9.x86_64.rpm                                     86 kB/s |  53 kB     00:00    
[MIRROR] podman-4.3.1-1.el9.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 603d5917819aa049f3df08afddcc7d3b40611e5b146597124d75b619f4810ffe(sha256)  Expected: b893359d0f8eca3cf48050472fc0e300c5b1303eaca7f3a51eb462eb269a9ce5(sha256) 
(4/4): podman-4.3.1-1.el9.x86_64.rpm                                    2.7 MB/s |  12 MB     00:04    
--------------------------------------------------------------------------------------------------------
Total                                                                   2.3 MB/s |  13 MB     00:05     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                1/1 
  Upgrading        : crun-1.7.1-1.el9.x86_64                                                        1/8 
error: lsetfilecon: (/usr/bin/crun;6387a358, 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.7.1-1.el9.x86_64
  Upgrading        : containers-common-2:1-46.el9.x86_64                                            2/8 
error: unpacking of archive failed on file /usr/bin/crun;6387a358: cpio: (error 0x2)
error: crun-1.7.1-1.el9.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-2:1-46.el9.x86_64
  Upgrading        : conmon-2:2.1.5-1.el9.x86_64                                                    3/8 
error: unpacking of archive failed on file /var/lib/containers/sigstore: cpio: (error 0x2)
error: containers-common-2:1-46.el9.x86_64: install failed
error: lsetfilecon: (/usr/bin/conmon;6387a358, 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.5-1.el9.x86_64
  Upgrading        : podman-2:4.3.1-1.el9.x86_64                                                    4/8 
error: unpacking of archive failed on file /usr/bin/conmon;6387a358: cpio: (error 0x2)
error: conmon-2:2.1.5-1.el9.x86_64: install failed
error: lsetfilecon: (/usr/bin/podman;6387a358, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package podman-2:4.3.1-1.el9.x86_64
  Verifying        : conmon-2:2.1.5-1.el9.x86_64                                                    1/8 
  Verifying        : conmon-2:2.1.4-1.el9.x86_64                                                    2/8 
  Verifying        : containers-common-2:1-46.el9.x86_64                                            3/8 
  Verifying        : containers-common-2:1-44.el9.x86_64                                            4/8 
  Verifying        : crun-1.7.1-1.el9.x86_64                                                        5/8 
  Verifying        : crun-1.5-1.el9.x86_64                                                          6/8 
  Verifying        : podman-2:4.3.1-1.el9.x86_64                                                    7/8 
  Verifying        : podman-2:4.2.0-3.el9.x86_64                                                    8/8 

Failed:
  conmon-2:2.1.4-1.el9.x86_64          conmon-2:2.1.5-1.el9.x86_64  containers-common-2:1-44.el9.x86_64 
  containers-common-2:1-46.el9.x86_64  crun-1.5-1.el9.x86_64        crun-1.7.1-1.el9.x86_64             
  podman-2:4.2.0-3.el9.x86_64          podman-2:4.3.1-1.el9.x86_64 

I had a similar problem a month or so earlier, and I was able to get "dnf update" to work by first running 'dnf remove podman', then running 'dnf update', and then re-installing podman. But that doesn't completely work now:

Code: Select all

[root@stream1 ~]# dnf remove podman
Dependencies resolved.
=========================================================================================================================
 Package                           Architecture          Version                         Repository                 Size
=========================================================================================================================
Removing:
 podman                            x86_64                2:4.2.0-3.el9                   @appstream                 41 M
Removing dependent packages:
 cockpit-podman                    noarch                57-1.el9                        @appstream                572 k
Removing unused dependencies:
 conmon                            x86_64                2:2.1.4-1.el9                   @appstream                170 k
 podman-catatonit                  x86_64                2:4.3.1-1.el9                   @appstream                833 k
 shadow-utils-subid                x86_64                2:4.9-6.el9                     @baseos                   215 k

Transaction Summary
=========================================================================================================================
Remove  5 Packages

Freed space: 43 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                 1/1 
  Erasing          : cockpit-podman-57-1.el9.noarch                                                                  1/5 
  Running scriptlet: podman-2:4.2.0-3.el9.x86_64                                                                     2/5 
  Erasing          : podman-2:4.2.0-3.el9.x86_64                                                                     2/5 
  Erasing          : podman-catatonit-2:4.3.1-1.el9.x86_64                                                           3/5 
  Erasing          : conmon-2:2.1.4-1.el9.x86_64                                                                     4/5 
  Erasing          : shadow-utils-subid-2:4.9-6.el9.x86_64                                                           5/5 
  Running scriptlet: shadow-utils-subid-2:4.9-6.el9.x86_64                                                           5/5 
  Verifying        : cockpit-podman-57-1.el9.noarch                                                                  1/5 
  Verifying        : conmon-2:2.1.4-1.el9.x86_64                                                                     2/5 
  Verifying        : podman-2:4.2.0-3.el9.x86_64                                                                     3/5 
  Verifying        : podman-catatonit-2:4.3.1-1.el9.x86_64                                                           4/5 
  Verifying        : shadow-utils-subid-2:4.9-6.el9.x86_64                                                           5/5 

Removed:
  cockpit-podman-57-1.el9.noarch             conmon-2:2.1.4-1.el9.x86_64                podman-2:4.2.0-3.el9.x86_64     
  podman-catatonit-2:4.3.1-1.el9.x86_64      shadow-utils-subid-2:4.9-6.el9.x86_64     

Complete!
[root@stream1 ~]# dnf update
Last metadata expiration check: 0:06:33 ago on Wed 30 Nov 2022 02:18:32 PM EST.
Dependencies resolved.
=========================================================================================================================
 Package                           Architecture           Version                        Repository                 Size
=========================================================================================================================
Upgrading:
 containers-common                 x86_64                 2:1-46.el9                     appstream                 119 k
 crun                              x86_64                 1.7.1-1.el9                    appstream                 196 k

Transaction Summary
=========================================================================================================================
Upgrade  2 Packages

Total download size: 315 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): containers-common-1-46.el9.x86_64.rpm                                             384 kB/s | 119 kB     00:00    
(2/2): crun-1.7.1-1.el9.x86_64.rpm                                                       271 kB/s | 196 kB     00:00    
-------------------------------------------------------------------------------------------------------------------------
Total                                                                                    266 kB/s | 315 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                 1/1 
  Upgrading        : crun-1.7.1-1.el9.x86_64                                                                         1/4 
error: lsetfilecon: (/usr/bin/crun;6387ae18, 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.7.1-1.el9.x86_64
  Upgrading        : containers-common-2:1-46.el9.x86_64                                                             2/4 
error: unpacking of archive failed on file /usr/bin/crun;6387ae18: cpio: (error 0x2)
error: crun-1.7.1-1.el9.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-2:1-46.el9.x86_64
  Verifying        : containers-common-2:1-46.el9.x86_64                                                             1/4 
  Verifying        : containers-common-2:1-44.el9.x86_64                                                             2/4 
  Verifying        : crun-1.7.1-1.el9.x86_64                                                                         3/4 
  Verifying        : crun-1.5-1.el9.x86_64                                                                           4/4 

Failed:
  containers-common-2:1-44.el9.x86_64 containers-common-2:1-46.el9.x86_64 crun-1.5-1.el9.x86_64 crun-1.7.1-1.el9.x86_64

Error: Transaction failed
[root@stream1 ~]# dnf install podman
Last metadata expiration check: 0:07:50 ago on Wed 30 Nov 2022 02:18:32 PM EST.
Dependencies resolved.
=========================================================================================================================
 Package                            Architecture           Version                       Repository                 Size
=========================================================================================================================
Installing:
 podman                             x86_64                 2:4.3.1-1.el9                 appstream                  12 M
Installing dependencies:
 conmon                             x86_64                 2:2.1.5-1.el9                 appstream                  53 k
 podman-catatonit                   x86_64                 2:4.3.1-1.el9                 appstream                 353 k
 shadow-utils-subid                 x86_64                 2:4.9-6.el9                   baseos                     88 k

Transaction Summary
=========================================================================================================================
Install  4 Packages

Total download size: 13 M
Installed size: 43 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): conmon-2.1.5-1.el9.x86_64.rpm                                                     103 kB/s |  53 kB     00:00    
(2/4): shadow-utils-subid-4.9-6.el9.x86_64.rpm                                            62 kB/s |  88 kB     00:01    
(3/4): podman-catatonit-4.3.1-1.el9.x86_64.rpm                                           341 kB/s | 353 kB     00:01    
(4/4): podman-4.3.1-1.el9.x86_64.rpm                                                     3.8 MB/s |  12 MB     00:03    
-------------------------------------------------------------------------------------------------------------------------
Total                                                                                    3.2 MB/s |  13 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                 1/1 
  Installing       : conmon-2:2.1.5-1.el9.x86_64                                                                     1/4 
error: lsetfilecon: (/usr/bin/conmon;6387ae68, 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.5-1.el9.x86_64
  Installing       : shadow-utils-subid-2:4.9-6.el9.x86_64                                                           2/4 
error: unpacking of archive failed on file /usr/bin/conmon;6387ae68: cpio: (error 0x2)
error: conmon-2:2.1.5-1.el9.x86_64: install failed

  Installing       : podman-catatonit-2:4.3.1-1.el9.x86_64                                                           3/4 
  Installing       : podman-2:4.3.1-1.el9.x86_64                                                                     4/4 
error: lsetfilecon: (/usr/bin/podman;6387ae68, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package podman-2:4.3.1-1.el9.x86_64
  Running scriptlet: podman-2:4.3.1-1.el9.x86_64                                                                     4/4 
error: unpacking of archive failed on file /usr/bin/podman;6387ae68: cpio: (error 0x2)
error: podman-2:4.3.1-1.el9.x86_64: install failed

  Verifying        : shadow-utils-subid-2:4.9-6.el9.x86_64                                                           1/4 
  Verifying        : conmon-2:2.1.5-1.el9.x86_64                                                                     2/4 
  Verifying        : podman-2:4.3.1-1.el9.x86_64                                                                     3/4 
  Verifying        : podman-catatonit-2:4.3.1-1.el9.x86_64                                                           4/4 

Installed:
  podman-catatonit-2:4.3.1-1.el9.x86_64                       shadow-utils-subid-2:4.9-6.el9.x86_64                      
Failed:
  conmon-2:2.1.5-1.el9.x86_64                                 podman-2:4.3.1-1.el9.x86_64                                

Error: Transaction failed
[root@stream1 ~]# 
I do not know what "Plugin selinux: hook fsm_file_prepare failed" means. Perhaps some of the .rpm file contents have the wrong selinux context?

At a later date, perhaps I will try turning off SeLinux while the update runs, and see if it works any better, and if I can turn it on again afterwards.

I'm running Centos 9 Stream on a Dell Inspiron 15 3000 laptop:

Code: Select all

[root@stream1 ~]# 
[root@stream1 ~]# uname -a
Linux stream1 5.14.0-176.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 12 08:12:48 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@stream1 ~]# cat /etc/redhat-release 
CentOS Stream release 9
[root@stream1 ~]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0     1G  0 part /boot/efi
├─sda2   8:2    0     1G  0 part /boot
├─sda3   8:3    0    16G  0 part [SWAP]
└─sda4   8:4    0   446G  0 part /
[root@stream1 ~]# 

Post Reply