What exactly 'not working' means ? EmulationStation doesn't start ? Games aren't working ? Installation is not completing ?
Please add more details about your setup, including the Ubuntu version and hardware details.
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first