I wrote this and then I found this method is no good. There is so much that does not work. Adding to this seems impossible. If you really want to run this on ubuntu, then go to the official site and follow their directions.
sudo add-apt-repository ppa:emulationstation/ppa
sudo add-apt-repository ppa:libretro/stable
sudo apt update
sudo apt install emulationstation emulationstation-theme-simple
sudo apt install libretro-nestopia libretro-snes9x-next libretro-mupen64plus libretro-mednafen-psx