Error while installing curl on ubuntu

0 votes

I'm trying to set up a kubernetes cluster on my virtual machines. I have one master and two nodes. I'm following this blog. 

When I execute this command:

curl -s | apt-key add -
I get this error:

Could not get lock /var/lib/dpkg/lock
unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Nov 23, 2018 in Kubernetes by Ali
• 10,290 points

2 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

Execute these commands and the try installing curl with the same command you've used again

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

Hope this helps.

answered Nov 23, 2018 by Hannah
• 14,080 points
0 votes
answered Nov 23, 2018 by Harsha

Related Questions In Kubernetes

0 votes
1 answer

Error while installing minikube on Ubuntu

Hey @Layla, Try running minikube without the ...READ MORE

answered Feb 22 in Kubernetes by Kyraa
0 votes
2 answers

Error while installing MiniKube

Check if it's properly enabled for the ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 35,750 points
0 votes
1 answer

oci runtime error while running kubernetes on rancher cluster

You need to switch Docker to 1.12.x; ...READ MORE

answered Sep 6, 2018 in Kubernetes by Kalgi
• 35,750 points
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
+3 votes
1 answer
0 votes
1 answer

Error saying "the program 'curl' is currently not installed"

Install curl using this command: apt-get update && ...READ MORE

answered Nov 23, 2018 in Kubernetes by Hannah
• 14,080 points
+2 votes
3 answers

local docker image on minikube

Try something like this: # Start minikube minikube start # ...READ MORE

answered Aug 29, 2018 in Kubernetes by Nilesh
• 6,900 points

© 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.