Welcome to the Linux Foundation Forum!

Lab 4.1 upgrading the cluster issue : kubelet : Depends: kubernetes-cni (>= 1.2.0) but it is not goi

aristideboisseau
aristideboisseau Posts: 9
edited December 20 in LFS258 Class Forum

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

  • chrispokorni
    chrispokorni Posts: 2,372

    Hi @aristideboisseau,

    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,
    -Chris

Categories

Upcoming Training