I have just installed Ubuntu 12.04, along with the updates, and then installed Mame via apt-get.
The installation went fine, but now when I run it I get "Illegal Instruction - Core Dumped".
Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.