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 https://packages.cloud.google.com/apt/doc/apt-key.gpg | 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,450 points
40 views

2 answers to this question.

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
272 views
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
• 37,320 points
258 views
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
• 37,320 points
69 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
1,063 views
+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
49 views
+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
4,042 views