Ok. We’ll uninstall it and reinstall it from the repos (the version in the Ubuntu repos has a startup script to avoid a specific issue with Mesa).
-
If you have games installed, go into ~/.local/share/Steam and move the folders “steamapps” and “userdata” on the desktop.
-
Go into ~/.local/share and delete the “Steam” folder". Go into your home dir and delete the “.steam” (hidden) folder.
-
Uninstall Steam and remove its repo:
sudo apt-get remove --purge steam-launcher
sudo rm /etc/apt/sources.list.d/steam.list
sudo apt-get update -
Install Steam from the Ubuntu repos:
sudo apt-get install steam
-
launch Steam:
steam
Does it launch properly? If it does and you backuped your installed games on the desktop (step 1), close Steam, go into ~/.steam/steam, delete the “steamapps” and “userdata” that are there and move the ones from your desktop in place.
If it does not launch properly after reinstalling the “right” version, it’s likely that your Mesa installation has been trashed. It would probably be faster to reinstall Ubuntu than to try to fix it (in which case, I’d really suggest not to install 18.04 but use 17.10).
EDIT: if you’re on a laptop, it might not be a good idea to reinstall 17.10, though. Because of the issue that can corrupt the BIOS on some laptops.