kubernetes: kubelet dependency to kubernetes-cni failure
/kind bug /sig architecture
What happened:
When trying to install kubelet I got the following error:
kubelet : Depends: kubernetes-cni (= 0.5.1) but 0.6.0-00 is to be installed
What you expected to happen: The dependency should be resolved by the kubelet package itself, but I get the error.
How to reproduce it (as minimally and precisely as possible): Remove kubernetes-cni from your Ubuntu 16 machine and run “apt install kubelet=1.8.5*”
Anything else we need to know?:
- When I install kubernetes-cni in version 0.5.1 by myself, it works, but usually this should work out of the box.
apt-cache policy kubernetes-cni
only shows “0.5.1-00”
Environment:
- Kubernetes version: 1.8.5
- OS (e.g. from /etc/os-release): Ubuntu 16.04.1 LTS (Xenial Xerus)
- Kernel: 4.4.0-31-generic
- Install tools: apt
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 24 (8 by maintainers)
Commits related to this issue
- fix 1.1 with pinned kubeadm upstream packaging failed: https://github.com/kubernetes/kubernetes/issues/57334 pinning versions for now — committed to contiv/install by chrisplo 6 years ago
- fix 1.1 with pinned kubeadm deps upstream packaging failed: kubernetes/kubernetes#57334 pinning versions for now to get CI working — committed to contiv/install by chrisplo 6 years ago
- fix 1.1 with pinned kubeadm deps (#335) * fix 1.1 with pinned kubeadm deps upstream packaging failed: kubernetes/kubernetes#57334 pinning versions for now to get CI working * restoring spec... — committed to contiv/install by chrisplo 6 years ago
- lets try kubernetes v1.9.2 because kube <1.8 is horked (gh issue below) https://github.com/kubernetes/kubernetes/issues/57334 — committed to datawire/kubernaut-standalone by deleted user 6 years ago
I think this issue should reopen because of last night update Fri, 05 Oct 2018 23:13:00 UTC you can see the update date link below; https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Release
New version of kubernetes-cni debian package repo has been updated/added but kubeadm and kubectl are not. That’s why it doesn’t work because apt-get wants to install the latest version. That’s why it doesn’t work. If someone remove 0.6.0-02 version from release list I think installation will work
here is packages list; https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Packages
Temporary workaround:
apt-get install kubernetes-cni=0.6.0-00
Please re-open this, its still an issue:
It is happening because,
kubernetes-cni
lates version is0.6.0-02
which is incompatible with kubeadm and kubelet. it can be solved by installing specific version ofkubernetes-cni
that is0.6.0-00
. Command:apt-get install kubernetes-cni=0.6.0-00
Solution found here: http://jee-appy.blogspot.com/2018/10/kubelet-depends-kubernetes-cni-060-but.html
Still happening on ubuntu xenial:
This issue is affecting me too. The fix mentioned in this comment above is working.
This bug was fixed long time ago.