Setup on Ubuntu 22.04.3 is a bit more complicated then on Fedora 38. So I’ve just put a sequence of all the necessary directives together. I also believe that the same schema would work on Debian BookWorm as well .
Source: LXer – Install Cockpit Flatpak Client on Ubuntu 22.04.3 (Gnome Desktop)