derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
27.09k stars 1.7k forks source link

Install via snap not working on Ubuntu #2800

Open EnziinSystem opened 3 months ago

EnziinSystem commented 3 months ago

My environment:

$ uname -a
Linux workstation 5.15.0-113-generic #123~20.04.1-Ubuntu SMP Wed Jun 12 17:33:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I installed k9s via snap

snap install k9s --devmode

And run:

$ snap install k9s --devmode
k9s v0.27.4 from Fernand Galiana (derailed) installed
developer@workstation:~$ k9s

Command 'k9s' not found

You have made the installation process on Linux more complicated than it needs to be.

shristack commented 3 months ago

I faced the same issue.

KevinGimbel commented 2 months ago

Can confirm on Fedora 40.

Maybe snap could be replaced with rpm/deb builds? Goreleaser supports them https://goreleaser.com/customization/nfpm/#conventional-file-names-debian-and-armv6

I could take a look at it if it's something you want @derailed.

parnmatt commented 2 months ago

Likewise. It's also noting that the latest is v0.27.4 rather than v0.32.5 v0.27.4 is 14 months old

814d3 commented 2 months ago

I would also appreciate a current version in the snap store. Thank you in advance.

wilberh commented 2 months ago

Solution to your problem found here - https://github.com/derailed/k9s/issues/2128#issuecomment-1768519288

parnmatt commented 2 months ago

Solution to your problem found here - #2128 (comment)

"solution" is a strong word; it is a work around. Installing something from a package-manager should already put the executables in the PATH.

I have just installed via the deb package, which correctly adds the executable into the PATH as an alternative.

However, the linked suggestion of soft-linking the executables into your PATH is a valid workaround until this can be correctly addressed.