Could not get lock var lib dpkg lock - open 11 Resource temporarily unavailable while setting up kubernetes

0 votes
I was trying to set kubernetes up and got the following error

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Sep 4, 2018 in Kubernetes by Hannah
• 18,570 points
1,438 views

3 answers to this question.

0 votes
Best answer

Execute these three commands:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
answered Nov 27, 2018 by Maverick
• 10,840 points

selected Jan 10, 2019 by Kalgi
0 votes
This error usually occurs when you use a command like apt-get update. After the command is executed, a lock file is created.

Try running the same command after few seconds. I don’t know why but the same command worked after some time for me
answered Sep 4, 2018 by Kalgi
• 52,360 points
0 votes

Try

sudo systemctl stop apt-daily.timer

After upgrading the system re-enable it, as the bug locking it could be fixed with the upgrade.

sudo systemctl start apt-daily.timer

answered Sep 4, 2018 by Nilesh
• 7,050 points

Related Questions In Kubernetes

0 votes
3 answers

Error while setting up kubernetes

echo "1" > /proc/sys/net/bridge/bridge-nf-call-iptables READ MORE

answered May 16, 2019 in Kubernetes by sivashankar
16,257 views
0 votes
2 answers

Setting up Ingress (Kubernetes)

Also try creating the config maps for ...READ MORE

answered Sep 11, 2018 in Kubernetes by Hannah
• 18,570 points
872 views
0 votes
2 answers

Error saying “Error from server (NotFound): the server could not find the requested resource”

official Documentation says: A client should be skewed ...READ MORE

answered Sep 19, 2018 in Kubernetes by Nilesh
• 7,050 points
4,067 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
14,583 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,060 views
0 votes
2 answers

How to rename deployments in Kubernetes

Hey, You can edit or recreate it ...READ MORE

answered Dec 6, 2018 in Kubernetes by Maverick
• 10,840 points
9,232 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP