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
• 11,330 points

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,570 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
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,370 points
+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
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,370 points

reshown Apr 12, 2019 by Kalgi 3,544 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,570 points
+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