Services and command-line interfaces in the Kubernetes ecosystem are typically developed in the Go programming language with static linking.
This doesn't fit too well with the Deb packaging system of Ubuntu, i.e. the official Ubuntu repos.
Instead, Ubuntu provides this software in the form of Snap packages which are self-contained (comes with all dependencies) and can be "rigorously confined" in the sense that these programs can be isolated completely from the operating system.
This also means that Snap packages can be updated more frequently because the Ubuntu software maintenance team doesn't need to be involved:
However, it is up to the publisher of the snap to ensure that issues in dependencies are addressed with newer versions of the snap because snaps are build and published directly by the upstream vendor of the software.
You can install the kubectl Kubernetes Snap package in all currently supported versions of Ubuntu by running the following command:
$ sudo snap install kubectl --classic
Note that classic mode mode gives this Snap package full access to your system like a traditional package.
Snap packages are available for all versions of kubectl from 1.5 to 1.28.
Dozens of other Kubernetes Snap packages are also available. To list them all run snap find kubernetes.