Lab 4.1 upgrading the cluster issue : kubelet : Depends: kubernetes-cni (>= 1.2.0) but it is not goi
Hi,
I have issue upgrading the kubeadm, I'm not sure what I should do, any ideas?
student@cp:~$ sudo kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.1", GitCommit:"6911225c3f747e1cd9d109c305436d08b668f086", GitTreeState:"clean", BuildDate:"2024-05-14T10:49:05Z", GoVersion:"go1.22.2", Compiler:"gc", Platform:"linux/amd64"}
Best regards,
Aristide
>
**student@cp:~$ sudo apt-get install -y kubeadm=1.31.1-1.1
**Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
kubelet : Depends: kubernetes-cni (>= 1.2.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
**student@cp:~$ sudo apt --fix-broken install
**Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-gcp-5.15-headers-5.15.0-1067 linux-gcp-5.15-headers-5.15.0-1070 linux-headers-5.15.0-1067-gcp linux-headers-5.15.0-1070-gcp
linux-image-5.15.0-1067-gcp linux-image-5.15.0-1070-gcp linux-modules-5.15.0-1067-gcp linux-modules-5.15.0-1070-gcp
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
kubernetes-cni
The following NEW packages will be installed:
kubernetes-cni
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
6 not fully installed or removed.
Need to get 0 B/33.9 MB of archives.
After this operation, 83.5 MB of additional disk space will be used.
**Do you want to continue? [Y/n] Y
**dpkg: regarding .../kubernetes-cni_1.5.1-1.1_amd64.deb containing kubernetes-cni:
containernetworking-plugins conflicts with kubernetes-cni
kubernetes-cni (version 1.5.1-1.1) is to be installed.
dpkg: error processing archive /var/cache/apt/archives/kubernetes-cni_1.5.1-1.1_amd64.deb (--unpack):
conflicting packages - not installing kubernetes-cni
Errors were encountered while processing:
/var/cache/apt/archives/kubernetes-cni_1.5.1-1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
student@cp:~$
Comments
-
What is the Ubuntu release on the GCE instance, and what is the containerd version?
I am attempting to reproduce the issues, on GCE with Ubuntu 24.04 LTS, recommended per the latest release of the lab guide.
Regards,
-Chris0 -
Without further updates about your environment, I attempted to reproduce your issue. However, following the lab guide instructions, on 2 GCE instances (cp and worker), with Ubuntu 24.04 LTS, I was not able to reproduce the reported issue.
Following the lab guide instructions the containerd.io package installed version 1.7.24 (while the latest at the time of the install was 2.0.1, from github.com/containerd).
Kubernetes v1.30.1 installed the kubernetes-cni package version 1.4.0.
The upgrade in lab 4 went smoothly, without any issues or conflicts.Regards,
-Chris0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 3 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 1 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 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
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 955 Programming and Development
- 310 Kernel Development
- 627 Software Development
- 983 Software
- 375 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 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)