Just switch back to ubuntu 20.04 or some fedora or arch. Or learn and use docker instead. because this is only one package(mongoDB). God knows how many more softwares are not supported in 22.04 (They have done many critical upgrades like wayland, libssl1 → libssl3, etc. Wait a year or so for everything get supported in ubuntu 22.04 and based distros( like popos, mint, distros).
Happy coding fella:)
@mkbhru , please do not copy-paste and paste the same response everywhere you see this topic. that is not much different than spam posts.
although you have some points, you also seem you did not fully read the topics you posted into. we already have discussed how we solved in some posts or given links to them in others.