Bug 2075997 - [Fedora 36 Beta] can't update podman: "error: Plugin selinux: hook fsm_file_prepare failed"
Summary: [Fedora 36 Beta] can't update podman: "error: Plugin selinux: hook fsm_file_p...
Keywords:
Status: CLOSED DUPLICATE of bug 2056303
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 36
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-16 22:25 UTC by Jiri Danek
Modified: 2022-04-16 22:41 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-04-16 22:41:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jiri Danek 2022-04-16 22:25:04 UTC
Description of problem:

After upgrading from Fedora 35 to Fedora 36 Beta, I am unable to finish dnf upgrade.

Version-Release number of selected component (if applicable):

$ rpm -qa "selinux*"
selinux-policy-36.6-1.fc36.noarch
selinux-policy-targeted-36.6-1.fc36.noarch

How reproducible:

No idea, I have only one machine to try the upgrade to 36 Beta.

Additional info:

Looks similar to the RHEL 9 bug#2051012

$ sudo dnf upgrade
Last metadata expiration check: 0:03:55 ago on Sun 17 Apr 2022 12:13:07 AM CEST.
Dependencies resolved.

 Problem: package snapd-2.54.4-1.fc36.x86_64 requires snapd-selinux = 2.54.4-1.fc36, but none of the providers can be installed
  - cannot install both snapd-selinux-2.54.4-1.fc36.noarch and snapd-selinux-2.55.3-1.fc36.noarch
  - cannot install the best update candidate for package snapd-2.54.4-1.fc35.x86_64
  - problem with installed package snapd-selinux-2.55.3-1.fc36.noarch
============================================================================================================================================================================================================================================
 Package                                                 Architecture                                 Version                                                                    Repository                                            Size
============================================================================================================================================================================================================================================
Upgrading:
 containers-common                                       noarch                                       4:1-53.fc36                                                                fedora                                                78 k
 cri-o                                                   x86_64                                       1.21.4-1.module_f36+13413+a1a48b79                                         fedora-modular                                        23 M
 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
 podman-docker                                           noarch                                       3:4.0.2-1.fc36                                                             fedora                                                32 k
 swtpm                                                   x86_64                                       0.7.2-1.20220307git21c90c1.fc36                                            fedora                                                42 k
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 snapd-selinux                                           noarch                                       2.54.4-1.fc36                                                              fedora                                               232 k
Skipping packages with broken dependencies:
 snapd                                                   x86_64                                       2.54.4-1.fc36                                                              fedora                                                13 M

Transaction Summary
============================================================================================================================================================================================================================================
Upgrade  7 Packages
Skip     2 Packages

Total download size: 37 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): containers-common-1-53.fc36.noarch.rpm                                                                                                                                                               593 kB/s |  78 kB     00:00    
(2/7): crun-1.4.4-1.fc36.x86_64.rpm                                                                                                                                                                         564 kB/s | 188 kB     00:00    
(3/7): podman-docker-4.0.2-1.fc36.noarch.rpm                                                                                                                                                                211 kB/s |  32 kB     00:00    
(4/7): swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64.rpm                                                                                                                                                     580 kB/s |  42 kB     00:00    
(5/7): flatpak-1.12.7-2.fc36.x86_64.rpm                                                                                                                                                                     941 kB/s | 1.6 MB     00:01    
(6/7): podman-4.0.2-1.fc36.x86_64.rpm                                                                                                                                                                       1.3 MB/s |  12 MB     00:09    
(7/7): cri-o-1.21.4-1.module_f36+13413+a1a48b79.x86_64.rpm                                                                                                                                                  1.7 MB/s |  23 MB     00:13    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                       2.5 MB/s |  37 MB     00:15     
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/14 
error: lsetfilecon: (/usr/bin/crun;625b4070, 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/14 
error: unpacking of archive failed on file /usr/bin/crun;625b4070: 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        : podman-3:4.0.2-1.fc36.x86_64                                                                                                                                                                                      3/14 
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/podman;625b4070, 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                                                                                                                                                                               4/14 
error: unpacking of archive failed on file /usr/bin/podman;625b4070: cpio: (error 0x2)
error: podman-3:4.0.2-1.fc36.x86_64: install failed
error: lsetfilecon: (/usr/bin/docker;625b4070, 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        : cri-o-1.21.4-1.module_f36+13413+a1a48b79.x86_64                                                                                                                                                                   5/14 
error: unpacking of archive failed on file /usr/bin/docker;625b4070: cpio: (error 0x2)
error: podman-docker-3:4.0.2-1.fc36.noarch: install failed
error: lsetfilecon: (/etc/crio, system_u:object_r:container_config_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package cri-o-1.21.4-1.module_f36+13413+a1a48b79.x86_64
  Upgrading        : swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64                                                                                                                                                                      6/14 
error: unpacking of archive failed on file /etc/crio: cpio: (error 0x2)
error: cri-o-0:1.21.4-1.module_f36+13413+a1a48b79.x86_64: install failed
error: lsetfilecon: (/usr/bin/swtpm;625b4070, 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                                                                                                                                                                                      7/14 
error: unpacking of archive failed on file /usr/bin/swtpm;625b4070: cpio: (error 0x2)
error: swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64: install failed

  Upgrading        : flatpak-1.12.7-2.fc36.x86_64                                                                                                                                                                                      7/14 
error: lsetfilecon: (/usr/libexec/flatpak-system-helper;625b4070, 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        : containers-common-4:1-53.fc36.noarch                                                                                                                                                                              1/14 
  Verifying        : containers-common-4:1-45.fc35.noarch                                                                                                                                                                              2/14 
  Verifying        : crun-1.4.4-1.fc36.x86_64                                                                                                                                                                                          3/14 
  Verifying        : crun-1.4.4-1.fc35.x86_64                                                                                                                                                                                          4/14 
  Verifying        : flatpak-1.12.7-2.fc36.x86_64                                                                                                                                                                                      5/14 
  Verifying        : flatpak-1.12.7-1.fc35.x86_64                                                                                                                                                                                      6/14 
  Verifying        : podman-3:4.0.2-1.fc36.x86_64                                                                                                                                                                                      7/14 
  Verifying        : podman-3:3.4.4-1.fc35.x86_64                                                                                                                                                                                      8/14 
  Verifying        : podman-docker-3:4.0.2-1.fc36.noarch                                                                                                                                                                               9/14 
  Verifying        : podman-docker-3:3.4.4-1.fc35.noarch                                                                                                                                                                              10/14 
  Verifying        : swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64                                                                                                                                                                     11/14 
  Verifying        : swtpm-0.7.2-1.20220307git21c90c1.fc35.x86_64                                                                                                                                                                     12/14 
  Verifying        : cri-o-1.21.4-1.module_f36+13413+a1a48b79.x86_64                                                                                                                                                                  13/14 
  Verifying        : cri-o-1.21.3-1.module_f35+13330+6bc9c749.x86_64                                                                                                                                                                  14/14 

Skipped:
  snapd-2.54.4-1.fc36.x86_64                                                                                       snapd-selinux-2.54.4-1.fc36.noarch                                                                                      
Failed:
  containers-common-4:1-45.fc35.noarch        containers-common-4:1-53.fc36.noarch        cri-o-1.21.3-1.module_f35+13330+6bc9c749.x86_64        cri-o-1.21.4-1.module_f36+13413+a1a48b79.x86_64        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       
  podman-docker-3:3.4.4-1.fc35.noarch         podman-docker-3:4.0.2-1.fc36.noarch         swtpm-0.7.2-1.20220307git21c90c1.fc35.x86_64           swtpm-0.7.2-1.20220307git21c90c1.fc36.x86_64          

Error: Transaction failed

Comment 1 Jiri Danek 2022-04-16 22:41:44 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.