I cannot install mongodb on Ubuntu 22.04.2 live server (code=dumped, signal=ILL)

Check EVC mode in VMWare, your CPU supports AVX2.