shy-zebra-53074
10/03/2024, 4:39 PMaarch64
machine.
I'm running the following command as `root`:
curl -sfL <https://get.rke2.io> | INSTALL_RKE2_TYPE="server" INSTALL_RKE2_VERSION="v1.28.3+rke2r1" sh -
However I get the following error:
[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:
# 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`:
[root@localhost ~]# uname -m
aarch64
Why is it pulling x86_64
packages when installing on an aarch64
architecture?
Thanks!