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:
kubelet : Depends: init-system-helpers (>= 1.18~) but 1.14ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
This happens when you have an incorrect system version specified in your apt/sources.list.d/kubernetes list.
You will need to tweak that sources line from the following:
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
to
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-trusty main
EOF
(I'm currently validating the above)
I think this was implied that the operator would be able to discern the difference, but its likely hidden by the fact that xenial is the current LTS release of Ubuntu (soon to be supplanted by bionic). Which will likely change that command even further forward.
EDIT So after validating, what i've discovered is that the trusty archive doesn't declare the requisit packages so this will only further compound the problem.
Package: kubectl
is all thats declared in the trusty archive. It appears to have been deprecated. I'm sure if I dig there was a deprecation notice sent, but I wasn't aware of this. The path forward is to use 16.04+
@Hariprasadnaidu :wave: This issue sounds more like a request for support and less like an issue specifically for docs. You can bring your question to the #kubernetes-users channel in Kubernetes slack. You can also search resources like Stack Overflow for answers to similar questions.
Most helpful comment
This happens when you have an incorrect system version specified in your
apt/sources.list.d/kuberneteslist.You will need to tweak that sources line from the following:
to
(I'm currently validating the above)
I think this was implied that the operator would be able to discern the difference, but its likely hidden by the fact that xenial is the current LTS release of Ubuntu (soon to be supplanted by bionic). Which will likely change that command even further forward.
EDIT So after validating, what i've discovered is that the trusty archive doesn't declare the requisit packages so this will only further compound the problem.
Package: kubectl
is all thats declared in the trusty archive. It appears to have been deprecated. I'm sure if I dig there was a deprecation notice sent, but I wasn't aware of this. The path forward is to use 16.04+