Hello all! Trying to install RKE2 on Rocky 8.10 `a...
# rke2
s
Hello all! Trying to install RKE2 on Rocky 8.10
aarch64
machine. I'm running the following command as `root`:
Copy code
curl -sfL <https://get.rke2.io> | INSTALL_RKE2_TYPE="server" INSTALL_RKE2_VERSION="v1.28.3+rke2r1" sh -
However I get the following error:
Copy code
[INFO]  using 1.28 series from channel stable
Rancher RKE2 Common (stable)                     21 kB/s | 2.9 kB     00:00    
Rancher RKE2 1.28 (stable)                       23 kB/s | 2.9 kB     00:00    
Error: 
 Problem: conflicting requests
  - package rke2-server-1.28.3~rke2r1-0.el8.x86_64 from rancher-rke2-1.28-stable does not have a compatible architecture
  - nothing provides rke2-common = 1.28.3~rke2r1-0.el8 needed by rke2-server-1.28.3~rke2r1-0.el8.x86_64 from rancher-rke2-1.28-stable
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Even though in the https://get.rke2.io script, I see this:
Copy code
# setup_arch set arch and suffix,
# fatal if architecture not supported.
setup_arch() {
    case ${ARCH:=$(uname -m)} in
    x86_64|amd64)
        ARCH=amd64
        SUFFIX=$(uname -s | tr '[:upper:]' '[:lower:]')-${ARCH}
        ;;
    aarch64|arm64)
        ARCH=arm64
        SUFFIX=$(uname -s | tr '[:upper:]' '[:lower:]')-${ARCH}
        ;;
    s390x)
        ARCH=s390x
        SUFFIX=$(uname -s | tr '[:upper:]' '[:lower:]')-${ARCH}
        ;;
    *)
        fatal "unsupported architecture ${ARCH}"
        ;;
    esac
}
Which returns the correct value of `aarch64`:
Copy code
[root@localhost ~]# uname -m
aarch64
Why is it pulling
x86_64
packages when installing on an
aarch64
architecture? Thanks!