Saturday 6 October 2018

kubelet : Depends: kubernetes-cni (= 0.6.0) but 0.6.0-02 is to be installed

kubeadm : Depends: kubernetes-cni (= 0.6.0) but 0.6.0-02 is to be installed


While setting up Kubernetes cluster on Ubuntu, you might face below issue, while installing kubeadm or kubelet or kubernetes-cni


apt-get install -y kubelet kubeadm kubectl kubernetes-cni
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kubeadm : Depends: kubernetes-cni (= 0.6.0) but 0.6.0-02 is to be installed
 kubelet : Depends: kubernetes-cni (= 0.6.0) but 0.6.0-02 is to be installed
E: Unable to correct problems, you have held broken packages.

To solve the issue, install "0.6.0" version of kubernetes-cni.


apt-get install -y kubernetes-cni=0.6.0-00

Now, you can setup your kubernetes cluster.

1 comments:

  1. Thanks - seriously frustrating how this was packaged. It broke our automated node imaging and deployment process. In kubeadm, they should really specify the full package version if they're going to use "=" in the dependancy.

    ReplyDelete

 

Copyright @ 2013 Appychip.

Designed by Appychip & YouTube Channel