Unfortunately, Klipper is not fully compatible with Python 3.12, which is the default for Ubuntu 24.04.
If you are not familiar with Linux and fixing things on the command line, I would currently not recommend using it. Instead, consider using Debian Bookworm. It makes no noticeable difference on any level you might encounter.