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,660 points
127 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,030 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
879 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
• 51,830 points
402 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, 2019 in Others by anonymous
5,441 views
+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 11, 2019 in Kubernetes by Kalgi
• 51,830 points

reshown Apr 12, 2019 by Kalgi 1,495 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,030 points
115 views
+4 votes
4 answers

local docker image on minikube

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

answered Feb 1 in Kubernetes by anonymous
10,548 views