Lab 4.5
I am not sure if there is an issue with my version, but i am not able to proceed further.
root@EstherB:~# OS=xUbuntu_20.04
root@EstherB:~# VERSION=1.21
root@EstherB:~# VERSION_ID=20.04
root@EstherB:~# echo "debhttps://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
root@EstherB:~# echo "debhttp://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
root@EstherB:~# curl -Lhttps://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$VERSION/$OS/Release.key | apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.
root@EstherB:~# curl -Lhttps://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.
root@EstherB:~# exit
logout
ebabade@EstherB:~$ sudo apt update
E: Type 'debhttps://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/' is not known on line 1 in source list /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
E: Type 'debhttp://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.21/xUbuntu_20.04/' is not known on line 1 in source list /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:1.21.list
E: The list of sources could not be read.
I tried two different versions but still got the same error.
Comments
-
Hi @ebabade,
It seems that when the lab guide was converted into PDF a few empty spaces disappeared between "deb" and "https", and between "-L" and "https" respectively. Please try to edit the commands prior to running them in your terminal, to add the missing empty space characters:
echo "deb https://download...curl -L https://download...The warnings about apt-key can be disregarded.
Regards,
-Chris1 -
Thank you @chrispokorni it worked for me
0 -
Not sure why i am still getting this warning, do i just ignore it?
root@EstherB:~# curl -L https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$VERS
ION/$OS/Release.key | apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
100 393 100 393 0 0 614 0 --:--:-- --:--:-- --:--:-- 615
100 394 100 394 0 0 512 0 --:--:-- --:--:-- --:--:-- 512
100 395 100 395 0 0 439 0 --:--:-- --:--:-- --:--:-- 439
100 396 100 396 0 0 384 0 0:00:01 0:00:01 --:--:-- 0
100 397 100 397 0 0 342 0 0:00:01 0:00:01 --:--:-- 342
100 1093 100 1093 0 0 838 0 0:00:01 0:00:01 --:--:-- 838
OKAlso cri is not installing for me:
ebabade@EstherB:~$ sudo apt install -y cri-o cri-o-runc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package cri-o0 -
Hi @ebabade,
For the latest cri-o release, please try the following installation steps, extracted from the cri-o official installation docs https://github.com/cri-o/cri-o/blob/main/install.md#apt-based-operating-systems
The variables exported below are specific for Ubuntu 20.04 and cri-o version 1.26 (aligned with the latest Kubernetes release). Please keep in mind that the crictl version and installation in Lab exercise 4.6 should also reflect the official crictl installation docs https://github.com/kubernetes-sigs/cri-tools#install
student@ubuntu:~$
sudo apt update ; sudo apt upgrade -ystudent@ubuntu:~$
sudo -iroot@ubuntu:~#
export OS=xUbuntu_20.04root@ubuntu:~#
export VERSION=1.26root@ubuntu:~#
echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.listroot@ubuntu:~#
apt updateroot@ubuntu:~#
apt install -y -t buster-backports libseccomp2 || apt update -y -t buster-backports libseccomp2root@ubuntu:~#
echo "deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.listroot@ubuntu:~#
echo "deb [signed-by=/usr/share/keyrings/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.listroot@ubuntu:~#
mkdir -p /usr/share/keyringsroot@ubuntu:~#
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpgroot@ubuntu:~#
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/Release.key | gpg --dearmor -o /usr/share/keyrings/libcontainers-crio-archive-keyring.gpgroot@ubuntu:~#
apt updateroot@ubuntu:~#
apt install -y cri-o cri-o-runcRegards,
-Chris0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 755 Linux Foundation IT Professional Programs
- 375 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 795 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 90 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 980 Programming and Development
- 310 Kernel Development
- 652 Software Development
- 995 Software
- 387 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)