Firstly we need to create build an OS to host MAME on. Do a fresh install of the desktop Ubuntu Desktop Edition.
These Instructions match with Ubuntu Noble LTS.