Hello Team,
Unable to install “etcd-client”, getting below error kindly help on this…
controlplane ~ apt-get install etcd-client
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package etcd-client ----error
You’re not telling me where you’re trying to install etcd-client (in a lab? on a vagrant-based cluster? On playground? ) so I’m going to guess that’s it’s on a virtual system.
Some questions:
- Did you run
apt-get update
first?
- Are you running as root?
I just tried this on a cluster built from the CKA repo’s instructions for vagrant/virtualbox, and I see the following:
root@controlplane:/home/vagrant# apt search etcd | grep client
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Transitional package for etcd-client and etcd-server
etcd-client/jammy-updates,jammy-security 3.3.25+dfsg-7ubuntu0.22.04.1 amd64
highly-available key value store -- client
client for the etcd3 API - doc
client for etcd3 grpc-gateway v3 API - doc
Python Etcd client library - Python3 module
client for the etcd3 API - Python 3.x
client for etcd3 grpc-gateway v3 API - Python 3.x
So on my system, after doing apt update
, etcd-client is available for installation.
Hello Rob,
I’m using K8s playground -named: Kubernetes single-node (latest) Playground
Regards,
MadhavS
OK, this works for me on that playground:
$ apt update
$ apt search etcd-client. # finds an install candidate
$ apt install etcd-client # works
$ type etcdctl
etcdctl is /usr/bin/etcdctl
This installs a fairly old copy of etcdctl (it’s a 3.3), but the install works fine.