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
• 11,360 points
1,518 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
• 18,520 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, 2019 in Kubernetes by Kyraa
3,017 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
• 52,350 points
1,555 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,529 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,407 views
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
• 18,520 points
2,183 views
+5 votes
4 answers

local docker image on minikube

I know this is an old question ...READ MORE

answered Feb 1, 2020 in Kubernetes by anonymous
25,077 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