I found an issue with pcsx2 install on Ubuntu 18.04. Rather than photos, just providing the information in the link would have been a better first step as it can help pinpoint the cause.
You will need to update the retropie-setup script then run this command from a terminal though to resolve the issue (assuming your problem is the same as the issue I found with sdl2 not switching back to the packaged version correctly).
sudo ~/RetroPie-Setup/retropie_packages.sh sdl2 revert