If you also act first and then think, this short guide will help you figure out a couple problems when trying to launch a game in GameMaker Studio, namely this error:
linuxdeploy
And besides this error, there may be an error with:
Steam Runtime
AppImage
These errors are caused by these non-installed tools. So lets fix it!
All versions of GameMaker starting with the 2022.3 release require you to install the Steam Runtime, linuxdeploy and AppImage tools in order to run or build for Ubuntu.
Copy & paste these commands to your terminal. It will automatically download and install all requirements and tools itself.
sudo mkdir /opt/steam-runtime/
curl https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.tar.gz | sudo tar -xzf - -C /opt/steam-runtime/
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
sudo install -m 0755 linuxdeploy-x86_64.AppImage /usr/local/bin/linuxdeploy
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
sudo install -m 0755 appimagetool-x86_64.AppImage /usr/local/bin/appimagetool
And after that, back in GameMaker, in Target Manager you can see that there is a section marked Devices with a small “pencil” icon beside it:
Done! You are now ready to test your projects using the either the VM or YYC output target, so select whichever one you require from the Platform Targets window and then press the Play button. If all has gone correctly your project should now run on the Ubuntu machine.