The procedure on this page installs the latest version of Wine Stable, Wine Development, or Wine Staging.
It applies to all Ubuntu flavors and to many distros based on Ubuntu 24.04 LTS.
Verify 64-bit architecture. The following command should respond with "amd64".
$ dpkg --print-architecture
See if 32-bit architecture is installed. The following command should respond with "i386".
$ dpkg --print-foreign-architectures
If "i386" is not displayed, execute the following.
$ sudo dpkg --add-architecture i386
Recheck with.
$ dpkg --print-foreign-architectures
$ sudo mkdir -pm755 /etc/apt/keyrings
The next command may appear to hang, if there is a (long) delay between executing the previous command and the next. If that happens, it is because of the sudo in the next command. All you need to do is enter your login password and press Enter.
$ 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/ubuntu/dists/noble/winehq-noble.sources
$ 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