From 0df14e8515b93400796a8828968357c49bf5bfe6 Mon Sep 17 00:00:00 2001 From: Peter Levart Date: Tue, 26 Oct 2021 09:53:13 +0200 Subject: [PATCH] Fix URLs for repository and key for Debian/Ubuntu --- index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.md b/index.md index 5363bee..00a34d4 100755 --- a/index.md +++ b/index.md @@ -68,14 +68,14 @@ To install on the following operating systems, set the environment variable `$OS Then, set `$VERSION` to be the cri-o version matching your kubernetes version. For instance, if you want to install cri-o 1.17, `VERSION=1.17` -We also support pinning to a particular release. To install 1.17.3, `VERSION=1.17:1.17.3` +We also support pinning to a particular release. To install 1.17.3, `VERSION=1.17.3` And then run the following as root: ```shell echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list -echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.list +echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$(echo $VERSION | cut -d. -f1,2):/$VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.list -curl -L https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$VERSION/$OS/Release.key | apt-key add - +curl -L https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$(echo $VERSION | cut -d. -f1,2):$VERSION/$OS/Release.key | apt-key add - curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | apt-key add - apt-get update