How to Install Wine 9.0 on Ubuntu 23.10 & 24.04

In the Linux world, we are widely using distributions, mainly Ubuntu. However, some users often face difficulties in running Windows applications. For example, compatibility with productivity tools such as Microsoft Office is essential.

Fortunately, Wine offers a solution for Ubuntu OS. WineHQ allows you to run Windows applications on Linux systems without any problems. Moreover, it is entirely free and is an open-source software. In this article, I will show you the steps to install Wine Stable 9.0 on Ubuntu 23.10 and 24.04.

Installing Wine on Ubuntu

How to Install and Use WineHQ 9.0 on Ubuntu PC

Suppose you are using a Linux-based Ubuntu operating system and need to use an application supported by a Windows operating system. In that case, you can choose the completely legal and free software Wine.

Under normal circumstances, you cannot run a Windows application on Linux/Ubuntu. Therefore, by using the program called Wine to run a Windows program on your system, you can install and run any program on your computer.

You can run Windows applications with WineHQ software on old and new Ubuntu distributions. After installing this program, you can also install programs such as Microsoft Office and Adobe PhotoShop on your computer and run them efficiently.

The latest version of Wine software is 9.0. The WineHQ team released Wine 9.0 Stable, Devel, and Staging versions on January 16, 2024.

How to Install Wine 9.0

You can install, for example, a Notepad++ or Photoshop program on your Ubuntu 22.10 system, and you can even run the most popular computer games on your computer today.

Step 1

First, ping Google with the command “ping -c 2 www.google.com” in the terminal to test the internet connection.

Then, if your Ubuntu system is 64-bit, enable the 32-bit architecture. To do this, execute the command “sudo dpkg –add-architecture i386” in the terminal.

ping -c 2 www.google.com
sudo dpkg --add-architecture i386

Enabling 32 Bit Architecture in Ubuntu

Step 2

Before downloading Wine Key from WineHQ, edit the folder permissions using the command “sudo mkdir -pm755 /etc/apt/keyrings” in the terminal.

Then, execute the command “sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key” in the terminal to download the Winehq-archive.key file to /etc/apt/keyrings and add it to your system.

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Downloading and Adding the Repository Key

Step 3

You need to set your software repository according to the version of your Ubuntu system that you are using. For this reason, you need to add one of the addresses in the table below to specify the WineHQ source.

Distribution NameCommand
noble
Ubuntu 24.04
Linux Mint 22
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
jammy
Ubuntu 22.04
Linux Mint 21.x
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
focal
Ubuntu 20.04
Linux Mint 20.x
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
trixie
Debian Testing
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/trixie/winehq-trixie.sources
bookworm
Debian 12
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
bullseye
Debian 11
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources

If you are using Ubuntu version 24.04, you can install the latest version of WineHQ. However, this requires one more step. You also need to add the Noble sources to the /etc/apt/sources.list file.

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources

Downloading WineHQ-Kinetic Sources File

Step 4

Run the sudo apt update command to update the Ubuntu package list.

sudo apt update

Updating the Software List

Step 5

First, update the repository list. After that, you can install WineHQ Stable 9.0. Use the following command in the terminal: “sudo apt install –install-recommends winehq-stable.” With this command, you will be able to download and install the necessary files.

sudo apt install --install-recommends winehq-stable

Installing Wine-Stable

Step 6

First, confirm the installation of dependent packages for Wine. So press Y here and then proceed with Enter. This will complete the installation of the necessary dependencies.

Confirming Packages to Install on WineHQ

Step 7

After installing Wine on Ubuntu, you can start the program. To do this, run the “winecfg” command in the terminal. You can also make the necessary settings or files at this stage. So, wait for the process to complete.

For applications that require the .NET framework, you need to install the Wine Mono package. Also, click the “Install” button for it to work correctly.

winecfg

Installing Mono Package

Step 8

After installing the Wine Mono package, you can quickly check the WineHQ version. To do this, run the “wine –version” command in the terminal.

In addition, you can view the Wine version from the GUI interface. This way, you can verify that the installation was successful.

Checking the Wine Version from the GUI

How to Run Windows Programs on Ubuntu

After installing Wine to run Windows programs on macOS, Linux, and Android, we will run Notepad++ as an example.

Step 1

Download the latest version of Notepad to your Ubuntu system from the website and go to the Downloads location. To open the Notepad.exe file with Wine, right-click on the file and then click Open With Other Application. Then select Wine Windows Program Loader as in the image below.

NOTE: If you want to install it via terminal, copy the download link to the program. Then, download it using the wget command. Then, you can start the wizard with the “wine FileName.exe” command.

cd ~/Downloads
wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.4.7/npp.8.4.7.Installer.x64.exe
wine npp.8.4.7.Installer.x64.exe

Wine Windows Program Loader

Step 2

Now, when the Notepad installation wizard opens, select the language of the program.

Choosing Notepad++ Program Language

Step 3

Continue by clicking the Next button in the Wizard window.

Notepad++ Setup Wizard

Step 4

Click the I Agree button to accept the Notepad++ license agreement.

Accepting the Program's License Agreement

Step 5

You can manually select the installation location, or you can choose the location configured by default. To install to the default location specified in the installation step, click Next in this step.

Choosing the Destination Installation Folder

Step 6

You may not see some options in the components selection window. This is because you are installing on a Linux distribution. However, this does not prevent the program from working. Therefore, click the Next button to continue the installation.

Selecting Components of the Note Application

Step 7

After installing the Windows-based program, you can create a desktop shortcut. To do this, select the “Create Shortcut on Desktop” option. Then, continue by clicking the Install button.

Creating a Shortcut on the Desktop

Step 8

After the Notepad++ installation is complete, start it.

Running Notepad Application

Step 9

You can now see a Windows program running smoothly on the Ubuntu distribution.

NOTE: To make the desktop shortcut icon visible, you need to follow a few steps. First, right-click on the shortcut. Then, click on “Allow Launching”. As a result, the icon is now visible on the right side.

Checking the Version of the Program

How to Uninstall Wine from Ubuntu PC

If you want to uninstall or delete Wine from your Linux computer, we recommend that you first backup your projects.

Steps:

Step 1

Let’s say you want to remove all WineHQ-related packages from your system. So, execute the “sudo apt remove wine*” command in the terminal to do this.

sudo apt remove wine*

Uninstalling Wine

Step 2

Confirm to remove dependent packages related to Wine-Stable, WineHQ-Stable-AMD64, and WineHQ-Stable. Press “Y” to do this, and press Enter to complete the process.

Confirming Dependent Packages to be Removed

Step 3

After the Wine is completely removed, I recommend you clean up any unnecessary remnants. To do this, use the “sudo apt autoremove && sudo apt autoclean” command in the terminal. With this command, you will be able to clean up unnecessary files and packages from your system automatically. In this way, you can keep your PC tidy.

sudo apt autoremove && sudo apt autoclean

Deleting Unnecessary Relic Packages

Step 4

The total size of unnecessary residual files on your Ubuntu PC is 1 GB. Press Y and Enter if you confirm that you have deleted all files from your system.

Confirm Deletion of Unnecessary Packages

Step 5

Finally, execute the following commands in the terminal to remove the WineHQ sources from your system’s repo list. Then, check that the program has been removed with the “wine –version” command.

sudo rm -rf /etc/apt/sources.list.d/winehq-kinetic.sources
sudo rm -rf /etc/apt/keyrings/winehq-archive.key

Deleting Winehq-kinetic.sources and Winehq-archive.key Files

Video

Installing Old Versions

Ubuntu VersionWineHQ VersionYouTube VideoSlide
17.102.x 3.xWatch 1,
Watch 2
View
18.043.x 4.xWatch 1,
Watch 2
18.103.x 4.x 4.xWatch 1,
Watch 2,
Watch 3
View
20.106.xWatchView
22.047.xWatchView
22.10 (NEW)7.xWatch

Frequently Asked Questions (FAQ)

  1. How do I install Wine on Ubuntu?
Installing WineHQ on Ubuntu is actually quite simple. In short, first, open a terminal (Ctrl + Alt + T) and run “sudo apt update.” Then, if you prefer to install it from the software center, you can use the command “sudo apt install wine.”
However, if you want to install the latest version, you need to add the WineHQ repository. To do this, you need to execute “sudo dpkg –add-architecture i386”, “sudo apt update,” and “sudo apt install -y wine64 wine32”.
  1. How do I know if Wine is installed?
To check if Wine is installed on your system, run the command “wine –version” in your terminal. If it is installed, this command will return the version number. If it is not installed, you will see a message saying the command was not found.
  1. How do I see what apps are installed?
To view the applications you have installed via Wine, you can go to the Wine prefix directory, which is under “.wine” in your home directory by default. To examine the installed applications, go to the “cd ~/.wine/drive_c/Program\ Files” directory in the terminal. To see the applications you have installed, list their contents with the “ls” command.
  1. Is Wine safe on Linux?
Wine is generally considered safe to use. However, always download Windows apps from reputable sources. Also, when downloading and installing tools from the Internet, make sure they come from trusted vendors. This way, you can avoid malware. Furthermore, be careful when running unknown applications. Plus, keep Wine and your installed applications up to date to get the latest security improvements and bug fixes.

Conclusion

By installing Wine Stable 9.0 on your Ubuntu system, you will have many advantages. This installation will help you run basic Windows applications and games without any problems.

First of all, by following the steps carefully, you can integrate Windows software into your Ubuntu environment. For example, Wine is a reliable solution for software like Microsoft Office or Adobe Photoshop.

Moreover, with its user-friendly configuration, Wine is a valuable resource for Linux users. As a result, you can enjoy the benefits of both worlds by embracing the flexibility of your Ubuntu system.

7 Comments

Add a Comment

Your email address will not be published. Required fields are marked *