cri-o / cri-o

Open Container Initiative-based implementation of Kubernetes Container Runtime Interface
https://cri-o.io
Apache License 2.0
5.23k stars 1.07k forks source link

Ubuntu 24.04 LTS Noble Numbat support #8314

Closed elasticdotventures closed 4 months ago

elasticdotventures commented 4 months ago

What happened?

Ubuntu has released a new LTS version 24.04

What did you expect to happen?

cri-o cannot be installed/not supported

How can we reproduce it (as minimally and precisely as possible)?

sudo apt update
Hit:1 http://au.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://au.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://au.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:5 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_24.04  InRelease
Err:6 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_24.04  Release
  404  Not Found [IP: 195.135.223.226 80]
Ign:7 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_24.04  InRelease
Err:8 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_24.04  Release
  404  Not Found [IP: 195.135.223.226 443]
Reading package lists... Done
E: The repository 'http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_24.04  Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_24.04  Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Anything else we need to know?

This is a placeholder issue, when/if I figure out how to install this without downgrading to ubuntu 22.04 I'll post here.

CRI-O and Kubernetes version

```console $ crio --version # paste output here ``` ```console $ kubectl version --output=json # paste output here ```

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here ```

Additional environment details (AWS, VirtualBox, physical, etc.)

elasticdotventures commented 4 months ago

posting this for anybody else with the same ..

my solution for now is to continue using the ubuntu 22.04 version, which seems to work 🤞🏻 with CRIO_VERSION 1.28, but not CRIO 1.24 (which seems most common for Ubuntu 22.04). At the time I wrote this the suse kubic repo only had 1.28

export OS=xUbuntu_22.04
export CRIO_VERSION=1.28

echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /"| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$CRIO_VERSION/$OS/ /"|sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$CRIO_VERSION.list

 curl -L https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$CRIO_VERSION/$OS/Release.key | sudo apt-key add -
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | sudo apt-key add -

sudo apt update
sudo apt install cri-o cri-o-runc -y
sudo apt install apparmor apparmor-utils -y

sudo systemctl start crio
sudo systemctl enable crio

sudo systemctl status crio
haircommander commented 4 months ago

cri-o 1.24 is out of upstream support, whereas 1.28 is still in support, please use the newer version :)

saschagrunert commented 4 months ago

I'm closing this one, as 1.24 is something considered to be EOL.