The procedure on this page installs the latest version of Wine Stable, Wine Development, or Wine Staging.
It also applies to many distros based on Debian 13.
In case you find that you cannot use sudo, an Appendix at the end of this document explains how to install sudo and enable it for yourself.
Verify 64-bit architecture. The following command should respond with "amd64".
$ dpkg --print-architecture
See if 32-bit architecture is already installed. The following command should respond with "i386"
$ dpkg --print-foreign-architectures
If it does not display "i386", execute the following.
$ sudo dpkg --add-architecture i386
Re-check with
$ dpkg --print-foreign-architectures
$ sudo mkdir -pm755 /etc/apt/keyrings
If there happens to be a (long) delay between executing the previous command and the next, the next command will hang. If that happens, enter your login password and press Enter. It is the sudo in the middle of the command that may cause this.
$ wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/trixie/winehq-trixie.sources
If executing the next command produces an Error: message that says a cdrom repository "does not have a Release file", open Software, click the Updates option, click the Main Menu icon (three horizontal bars), click Software Repositories, and turn off Official amd64 DVD Binary (which should be at the top of the list of repositories). Close Software Repositories and exit Software. Execute the $ sudo apt update command again.
$ sudo apt update
The next command installs Wine Stable. To install Wine Development or Wine Staging, replace winehq-stable by winehq-devel or winehq-staging
Sometimes Wine Stable is unavailable, but Wine Development and Wine Staging can still be installed.
$ sudo apt install --install-recommends winehq-stable
$ wine --version