k3s-io / k3s-selinux

SELinux policy for k3s
Apache License 2.0
66 stars 20 forks source link

k3s-selinux-1.3-1 failed to install on RHEL9 because of container-selinux dependency issue #50

Closed rumia-san closed 1 year ago

rumia-san commented 1 year ago

I try to install k3s today, but the install script failed and the following error prompted

Error:
Problem: conflicting requests
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-1.el9.noarch     
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=traefik --write-kubeconfig-mode=644" INSTALL_K3S_VERSION=v1.24.13+k3s1  sh -

[INFO]  Using v1.24.13+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.24.13+k3s1/sha256sum-amd64.txt
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Finding available k3s-selinux versions
Updating Subscription Management repositories.
Rancher K3s Common (stable)                                                                                                                                                      9.8 kB/s | 2.9 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                             98 kB/s | 4.1 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                          89 kB/s | 4.5 kB     00:00
Error:
 Problem: conflicting requests
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-1.el9.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
sudo yum install k3s-selinux

Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                            103 kB/s | 4.1 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                         120 kB/s | 4.5 kB     00:00
Error:
 Problem: conflicting requests
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-1.el9.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Klaas- commented 1 year ago

el9 should have container-selinux-2.205.0-1.el9_2.noarch ( https://access.redhat.com/downloads/content/container-selinux/2.205.0-1.el9_2/noarch/fd431d51/package )