How to install LXC 6 in Ubuntu 24.04 and Debian 12

Would like to know, too. Probably need to figure out how to build it from source to check if the problem i’m experiencing with 5.x (Lxc-attach: Long output stops suddenly, possible bug? - #3 by laanwj) is solved there.