Problem update packages in fedora 36

hi
I want update packages after install fedora 36, but got some errors on update.

Dependencies resolved.
================================================================================
 Package             Arch     Version                            Repo      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-2.fc36                      fedora   1.6 M
 podman              x86_64   3:4.0.2-1.fc36                     fedora    12 M
 swtpm               x86_64   0.7.2-1.20220307git21c90c1.fc36    fedora    42 k

Transaction Summary
================================================================================
Upgrade  6 Packages

Total download size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): conmon-2.1.0-2.fc36.x86_64.rpm            44 kB/s |  59 kB     00:01    
(2/6): containers-common-1-53.fc36.noarch.rpm    44 kB/s |  78 kB     00:01    
(3/6): crun-1.4.4-1.fc36.x86_64.rpm              92 kB/s | 188 kB     00:02    
(4/6): swtpm-0.7.2-1.20220307git21c90c1.fc36.x8  67 kB/s |  42 kB     00:00    
(5/6): flatpak-1.12.7-2.fc36.x86_64.rpm         738 kB/s | 1.6 MB     00:02    
(6/6): podman-4.0.2-1.fc36.x86_64.rpm           2.9 MB/s |  12 MB     00:04    
--------------------------------------------------------------------------------
Total                                           1.8 MB/s |  14 MB     00:07     
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/12 
error: lsetfilecon: (/usr/bin/crun;6260f344, 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/12 
error: unpacking of archive failed on file /usr/bin/crun;6260f344: 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/12 
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;6260f344, 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/12 
error: unpacking of archive failed on file /usr/bin/conmon;6260f344: cpio: (error 0x2)
error: conmon-2:2.1.0-2.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/podman;6260f344, 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        : swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64          5/12 
error: unpacking of archive failed on file /usr/bin/podman;6260f344: cpio: (error 0x2)
error: podman-3:4.0.2-1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/swtpm;6260f344, 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
  Running scriptlet: flatpak-1.12.7-2.fc36.x86_64                          6/12 
error: unpacking of archive failed on file /usr/bin/swtpm;6260f344: cpio: (error 0x2)
error: swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64: install failed

  Upgrading        : flatpak-1.12.7-2.fc36.x86_64                          6/12 
error: lsetfilecon: (/usr/libexec/flatpak-system-helper;6260f344, 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-2.fc36.x86_64
  Verifying        : conmon-2:2.1.0-2.fc36.x86_64                          1/12 
  Verifying        : conmon-2:2.1.0-2.fc35.x86_64                          2/12 
  Verifying        : containers-common-4:1-53.fc36.noarch                  3/12 
  Verifying        : containers-common-4:1-45.fc35.noarch                  4/12 
  Verifying        : crun-1.4.4-1.fc36.x86_64                              5/12 
  Verifying        : crun-1.4.4-1.fc35.x86_64                              6/12 
  Verifying        : flatpak-1.12.7-2.fc36.x86_64                          7/12 
  Verifying        : flatpak-1.12.7-1.fc35.x86_64                          8/12 
  Verifying        : podman-3:4.0.2-1.fc36.x86_64                          9/12 
  Verifying        : podman-3:3.4.4-1.fc35.x86_64                         10/12 
  Verifying        : swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64         11/12 
  Verifying        : swtpm-0.7.2-1.20220307git21c90c1.fc35.x86_64         12/12 

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-2.fc36.x86_64                                                  
  podman-3:3.4.4-1.fc35.x86_64                                                  
  podman-3:4.0.2-1.fc36.x86_64                                                  
  swtpm-0.7.2-1.20220307git21c90c1.fc35.x86_64                                  
  swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64                                  

Error: Transaction failed

I found temporary way for fix this problem:

sudo su
setenforce 0
dnf upgrade --refresh
2 Likes

FYI

1 Like