Can I suggest you use U20.04, it has almost no SNAPs (smaller and faster) and binaries you make there will run on (almost) all OS. If you use U22.04, you get the new glibc and binaries it makes will not run on (eg) U20.04, Buster etc.
I am still running U20.04 on my day to day machine, have to update sooner or later but I keep a Virtual Box VM with an untouched U20.04 as my release build machine anyway.
Davo