我已经使用 Azure VM 尝试了两种操作系统
总是出现与 SELinux 相关的类似错误。我没有 RHEL 的经验,但客户要求它,如果没有 snap,我无法安装我需要的工具。知道如何强制安装或下载 rpm 并直接安装吗?
我现在在 7.6 上遇到的错误
Processing Dependency: selinux-policy-base >= 3.13.1-268.el7_9.2 for package: snapd-selinux-2.54.1-1.el7.noarch
---> Package squashfuse-libs.x86_64 0:0.1.102-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: snapd-selinux-2.54.1-1.el7.noarch (epel)
Requires: selinux-policy-base >= 3.13.1-268.el7_9.2
Installed: selinux-policy-targeted-3.13.1-229.el7_6.15.noarch (@rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.15
Available: selinux-policy-minimum-3.12.1-153.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7
Available: selinux-policy-minimum-3.12.1-153.el7_0.10.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.10
Available: selinux-policy-minimum-3.12.1-153.el7_0.11.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.11
Available: selinux-policy-minimum-3.12.1-153.el7_0.12.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.12
Available: selinux-policy-minimum-3.12.1-153.el7_0.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.13
Available: selinux-policy-minimum-3.13.1-23.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7
Available: selinux-policy-minimum-3.13.1-23.el7_1.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.7
Available: selinux-policy-minimum-3.13.1-23.el7_1.8.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.8
Available: selinux-policy-minimum-3.13.1-23.el7_1.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.13
Available: selinux-policy-minimum-3.13.1-23.el7_1.17.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.17
Available: selinux-policy-minimum-3.13.1-23.el7_1.18.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.18
Available: selinux-policy-minimum-3.13.1-23.el7_1.21.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.21
Available: selinux-policy-minimum-3.13.1-60.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7
Available: selinux-policy-minimum-3.13.1-60.el7_2.3.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.3
Available: selinux-policy-minimum-3.13.1-60.el7_2.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.7
Available: selinux-policy-minimum-3.13.1-60.el7_2.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.9
Available: selinux-policy-minimum-3.13.1-102.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7
Available: selinux-policy-minimum-3.13.1-102.el7_3.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.4
Available: selinux-policy-minimum-3.13.1-102.el7_3.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.7
Available: selinux-policy-minimum-3.13.1-102.el7_3.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.13
Available: selinux-policy-minimum-3.13.1-102.el7_3.15.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.15
Available: selinux-policy-minimum-3.13.1-102.el7_3.16.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.16
Available: selinux-policy-minimum-3.13.1-166.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7
Available: selinux-policy-minimum-3.13.1-166.el7_4.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.4
Available: selinux-policy-minimum-3.13.1-166.el7_4.5.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.5
Available: selinux-policy-minimum-3.13.1-166.el7_4.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.7
Available: selinux-policy-minimum-3.13.1-166.el7_4.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.9
Available: selinux-policy-minimum-3.13.1-192.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7
Available: selinux-policy-minimum-3.13.1-192.el7_5.3.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.3
Available: selinux-policy-minimum-3.13.1-192.el7_5.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.4
Available: selinux-policy-minimum-3.13.1-192.el7_5.6.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.6
Available: selinux-policy-minimum-3.13.1-229.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7
Available: selinux-policy-minimum-3.13.1-229.el7_6.5.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.5
Available: selinux-policy-minimum-3.13.1-229.el7_6.6.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.6
Available: selinux-policy-minimum-3.13.1-229.el7_6.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.9
Available: selinux-policy-minimum-3.13.1-229.el7_6.12.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.12
Available: selinux-policy-minimum-3.13.1-229.el7_6.15.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.15
Available: selinux-policy-mls-3.12.1-153.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7
Available: selinux-policy-mls-3.12.1-153.el7_0.10.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.10
Available: selinux-policy-mls-3.12.1-153.el7_0.11.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.11
Available: selinux-policy-mls-3.12.1-153.el7_0.12.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.12
Available: selinux-policy-mls-3.12.1-153.el7_0.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.13
Available: selinux-policy-mls-3.13.1-23.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7
Available: selinux-policy-mls-3.13.1-23.el7_1.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.7
Available: selinux-policy-mls-3.13.1-23.el7_1.8.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.8
Available: selinux-policy-mls-3.13.1-23.el7_1.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.13
Available: selinux-policy-mls-3.13.1-23.el7_1.17.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.17
Available: selinux-policy-mls-3.13.1-23.el7_1.18.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.18
Available: selinux-policy-mls-3.13.1-23.el7_1.21.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.21
Available: selinux-policy-mls-3.13.1-60.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7
Available: selinux-policy-mls-3.13.1-60.el7_2.3.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.3
Available: selinux-policy-mls-3.13.1-60.el7_2.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.7
Available: selinux-policy-mls-3.13.1-60.el7_2.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.9
Available: selinux-policy-mls-3.13.1-102.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7
Available: selinux-policy-mls-3.13.1-102.el7_3.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.4
Available: selinux-policy-mls-3.13.1-102.el7_3.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.7
Available: selinux-policy-mls-3.13.1-102.el7_3.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.13
Available: selinux-policy-mls-3.13.1-102.el7_3.15.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.15
Available: selinux-policy-mls-3.13.1-102.el7_3.16.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.16
Available: selinux-policy-mls-3.13.1-166.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7
Available: selinux-policy-mls-3.13.1-166.el7_4.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.4
Available: selinux-policy-mls-3.13.1-166.el7_4.5.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.5
Available: selinux-policy-mls-3.13.1-166.el7_4.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.7
Available: selinux-policy-mls-3.13.1-166.el7_4.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.9
Available: selinux-policy-mls-3.13.1-192.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7
Available: selinux-policy-mls-3.13.1-192.el7_5.3.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.3
Available: selinux-policy-mls-3.13.1-192.el7_5.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.4
Available: selinux-policy-mls-3.13.1-192.el7_5.6.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.6
Available: selinux-policy-mls-3.13.1-229.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7
Available: selinux-policy-mls-3.13.1-229.el7_6.5.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.5
Available: selinux-policy-mls-3.13.1-229.el7_6.6.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.6
Available: selinux-policy-mls-3.13.1-229.el7_6.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.9
Available: selinux-policy-mls-3.13.1-229.el7_6.12.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.12
Available: selinux-policy-mls-3.13.1-229.el7_6.15.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.15
Available: selinux-policy-targeted-3.12.1-153.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7
Available: selinux-policy-targeted-3.12.1-153.el7_0.10.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.10
Available: selinux-policy-targeted-3.12.1-153.el7_0.11.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.11
Available: selinux-policy-targeted-3.12.1-153.el7_0.12.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.12
Available: selinux-policy-targeted-3.12.1-153.el7_0.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.12.1-153.el7_0.13
Available: selinux-policy-targeted-3.13.1-23.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7
Available: selinux-policy-targeted-3.13.1-23.el7_1.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.7
Available: selinux-policy-targeted-3.13.1-23.el7_1.8.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.8
Available: selinux-policy-targeted-3.13.1-23.el7_1.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.13
Available: selinux-policy-targeted-3.13.1-23.el7_1.17.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.17
Available: selinux-policy-targeted-3.13.1-23.el7_1.18.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.18
Available: selinux-policy-targeted-3.13.1-23.el7_1.21.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-23.el7_1.21
Available: selinux-policy-targeted-3.13.1-60.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7
Available: selinux-policy-targeted-3.13.1-60.el7_2.3.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.3
Available: selinux-policy-targeted-3.13.1-60.el7_2.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.7
Available: selinux-policy-targeted-3.13.1-60.el7_2.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-60.el7_2.9
Available: selinux-policy-targeted-3.13.1-102.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7
Available: selinux-policy-targeted-3.13.1-102.el7_3.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.4
Available: selinux-policy-targeted-3.13.1-102.el7_3.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.7
Available: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.13
Available: selinux-policy-targeted-3.13.1-102.el7_3.15.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.15
Available: selinux-policy-targeted-3.13.1-102.el7_3.16.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-102.el7_3.16
Available: selinux-policy-targeted-3.13.1-166.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7
Available: selinux-policy-targeted-3.13.1-166.el7_4.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.4
Available: selinux-policy-targeted-3.13.1-166.el7_4.5.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.5
Available: selinux-policy-targeted-3.13.1-166.el7_4.7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.7
Available: selinux-policy-targeted-3.13.1-166.el7_4.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-166.el7_4.9
Available: selinux-policy-targeted-3.13.1-192.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7
Available: selinux-policy-targeted-3.13.1-192.el7_5.3.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.3
Available: selinux-policy-targeted-3.13.1-192.el7_5.4.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.4
Available: selinux-policy-targeted-3.13.1-192.el7_5.6.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-192.el7_5.6
Available: selinux-policy-targeted-3.13.1-229.el7.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7
Available: selinux-policy-targeted-3.13.1-229.el7_6.5.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.5
Available: selinux-policy-targeted-3.13.1-229.el7_6.6.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.6
Available: selinux-policy-targeted-3.13.1-229.el7_6.9.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.9
Available: selinux-policy-targeted-3.13.1-229.el7_6.12.noarch (rhui-rhel-7-server-rhui-eus-rpms)
selinux-policy-base = 3.13.1-229.el7_6.12
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
答案1
snapd-selinux-2.54.1-1.el7.noarch
从 EPEL安装snapd-selinux
也会拉入该软件包。snapd-selinux
需要最新的SELinux 基本策略(“base”是 的同义词selinux-policy-targeted
)。
最新的 SELinux 策略是 package selinux-policy-targeted-3.13.1-268.el7_9.2.noarch
,但是您似乎已经selinux-policy-targeted-3.13.1-229.el7_6.15.noarch
安装了。
因此,如果您从 7.6 升级到 7.9,应该会很好。
或者,您可以转向旧版本的snapd
和snapd-selinux
onhttps://archives.fedoraproject.org/pub/archive/epel/。