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,520 points
1,828 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,350 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,060 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,963 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,520 points
1,120 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,060 points
4,401 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
15,487 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,040 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
10,075 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