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
• 14,080 points
97 views

3 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,020 points

selected Jan 10 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
• 36,300 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
• 6,900 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 15 in Kubernetes by sivashankar
796 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
• 14,080 points
65 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
• 6,900 points
144 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
712 views
+3 votes
1 answer
0 votes
2 answers

How to rename deployments in Kubernetes

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

answered Dec 5, 2018 in Kubernetes by Maverick
• 10,020 points
184 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.