Home >Computer Tutorials >Computer Knowledge >How to install Steam on Debian 12
STEAM is a popular gaming platform developed by Valve Corporation that allows you to purchase, download, install and play games. It provides features such as automatic updates, matchmaking, and a community forum to resolve software-related issues. In addition to this, you can also use Steam to interact with other players and developers as it has extensive community support.
In this guide you will learn:
You can install Steam on Debian 12:
Before installing Steam on Debian 12, you need to add the i386 architecture to support both 32-bit and 64-bit Steam games on the system. In addition, you will need to install some dependencies to ensure that Steam can install and run properly.
To add 32-bit support to Debian 12, run the following command:
Sudo dpkg–add architecture i386
To install the dependencies required to run Steam on Debian 12, use the following command:
sudo apt install libgl1—mesa—dri:i386 mesa—vulkan—drives:i386—y
You may find Steam packages in Debian 12 repositories that allow users to install applications through the apt command given below:
sudo apt install steam:i386—y
Or you can use steam instead of steam:i386 in the above command.
NOTE: This method may or may not work on your system as Debian 12 is constantly updating its repositories.
In addition to using the apt package manager to install Steam, you can also download a Deb package on a Debian system and install Steam through it. Follow these steps to install Steam on Debian 12 from Deb packages:
To download the Deb package on Debian, you must use the wget command and link to download the Steam Deb package as follows:
www.example.com
To install Steam from a Deb package to Debian, use the apt install command with a dot slash and the -y flag after the file name to approve the installation:
Sudo apt install ./steam.deb-y
You can also add the Steam repository in Debian 12 to install the latest version of Steam on your system, this can be done by following these steps:
First, you must add the GPG key to Debian 12 using the following command to authenticate the external Steam repository:
Curl-S http://repo.steampowered.com/steam/archive/stable/steam.gpg|sudo tee/usr/Share/Keyring/steam.gpg>/dev/empty
After adding the GPG key, you can now add the Steam repository to Debian 12 using the following command:
Echo Deb[ARCH=AMD64,i386 Signed-by=/usr/Share/Keyring/steam.gpg]http://repo.steampowered.com/steam/stable-steam|sudo tee/etc/apt/Soures .list.d/steam.list
You must update the Debian repository using the following command so that the newly added repository can be successfully added to the system:
sudo apt update
After successfully adding the repository, you can use the following command to install Steam on Debian with the required packages:
Sudo apt install libgl1-Mesa-dri:amd64 libgl1-Mesa-dri:i386 libgl1-Mesa-glx:amd64 libgl1-Mesa-glx:i386 steam-launcher-y
After completing the installation via any of the above methods, you can run Steam on Debian from the terminal using the following command:
steam
Alternatively, you can open Steam on Debian 12 from the application menu:
Log in to your Steam account, or create a free account if you don't have one. You can also scan the QR code from the Stream mobile app to connect your account:
When running Steam on Debian, you may see the following warning: "The package cache appears to be out of date". You must press Enter to update the list and start installing the packages that need to be upgraded:
When running Steam on Debian 12, if you encounter the error "Cannot import apt, please install python3-apt or update steamdeps for your distribution":
You can fix it using the following steps:
You must install the package management runtime library on your Debian system as a dependency for the method we will perform later:
sudo apt install libapt—pkg—dev
Now clone the python-apt source directory from GitHub using the following command:
Git clone https://salsa.debian.org/apt-team/python-apt&&cd python-apt
Note: You can install git on Debian with the following command:
sudo apt install git
You must also install the setuptools module required to build Python packages on Debian, you can install it with the following command:
pip3 install setuptools
Now, in the python-apt directory, you must run the www.example.com file using the python interpreter and the build command as follows:
python3 www.example.com build
After building these packages, you can run the following command to install the Python package on your Debian system:
python3 www.example.com installation
You can then run the steam command again to launch the Steam application on your Debian system:
steam
Using the above command, the Steam dashboard will appear where you can log in with your account. However, the main Steam store may not open on your system after logging in.
If you encounter such an error, you can fix it by disabling the GPU option using the following command:
steam-cef-disable-gPU
You can completely remove Steam from Debian 12 installed via any of the above methods using the following command:
sudo apt auto --removal steam launcher --y
To install Steam on Debian 12 from the Snap Store, use the following steps:
First, make sure the Snap Daemon is installed on Debian, if not install it from the following command:
sudo apt install snapd—y
Then install Steam on Debian 12 from Snap Store using the command given below:
Sudoku snap installation STEAM
After installing Steam via Snap Store, you must restart your Debian system in order for the application to appear in the system application menu. You can then run Steam on Debian from the Applications menu, as described above, or use the following command:
sudo snap run steam—cef—disable—gPU
If you no longer need to install Steam via the Snap Store, you can delete it at any time using the following command:
sudo snap remove steam
Flatpak is another external package manager that you can install on Debian from the official repository and install Steam through it. Use the steps provided below to install Steam on Debian 12 from the Flatpak repository:
You can install Flatpak on Debian 12 using the following apt command:
Sudo apt install flatpak-y
You must also add the FlatHub repository on Debian using the following command as it will help you install the Flatpak application on your system:
flatpak remote—add—if—not—exists flathub www.example.com
Once the FlatHub repository is added, you can install Steam on Debian 12 with the following command:
Flathpak install flathub com.valvesoftware.Steam
After completing the installation of Steam through Flatpak, you can run the application on Debian from the command given below:
flatpak run com.valvesoftware.Steam
If you are unable to run Steam from Flatpak using the above command, you can try running it using the following command:
Platpak runs com.valvesoftware.STEam-cef-Disable-GPU
To remove Steam from Debian 12 installed via Flatpak, you can use the following command:
Flatpak uninstall com.valvesoftware.STEam
STEAM is a popular video game digital distribution service that allows you to download, install and play games on your system. You can install Steam on Debian 12 from the source code repository, Deb package or by adding the Steam library. You can also install Steam on Debian 12 using an external package manager like Snap Store or Flatpak. This article describes how to install, run and remove Steam in Debian 12. You can choose any installation method and seamlessly download and install the game on your Debian system.
The above is the detailed content of How to install Steam on Debian 12. For more information, please follow other related articles on the PHP Chinese website!