Rhel

無法在 RHEL 7.6 或 8.1 中安裝 snap

  • January 26, 2022

我已經使用 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

從 EPEL安裝也會snapd-selinux-2.54.1-1.el7.noarch拉入snapd-selinux軟體包。snapd-selinux需要最新的SELinux 基本策略(“基本”是 的同義詞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使用https://archives.fedoraproject.org/pub/archive/epel/的舊版本。

引用自:https://unix.stackexchange.com/questions/687948