In this article, we will examine how to set up Wine Stable 7.0, which allows you to run and use Windows-based programs on Ubuntu 22.10 (Kinetic Kudu) distribution, and how to run an exe software.
How to Set Up and Use WineHQ 7.0 on Ubuntu 22.10
If you are using a Linux-based Ubuntu operating system and need to use an application supported by a Windows operating system, 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 distributions of Ubuntu. After installing this program, you can also install programs such as Microsoft Office, and Adobe PhotoShop on your computer and run them easily.
The latest version of Wine software is 7.0. The WineHQ team released versions of Wine 7.0 Stable, Devel, and Staging on January 18, 2022.
How to Install Wine 7.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 32-Bit architecture. To do this, execute the “sudo dpkg –add-architecture i386” command in the terminal.
ping -c 2 www.google.com
sudo dpkg --add-architecture i386
Step 2
Before downloading Wine Key from WineHQ, edit the folder permissions by using the “sudo mkdir -pm755 /etc/apt/keyrings” command in the terminal. Then execute the “sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key” command 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
Step 3
According to the version of your Ubuntu system you are using, you need to add one of the addresses in the table below to specify the WineHQ source in your software repository.
Linux Mint 21.x
Linux Mint 20.x
Linux Mint 19.x
If you are using Ubuntu after version 22.10, import the Kinetic Kudu sources file to the/etc/apt/sources.list file so that you can install the latest version of WineHQ without any problems.
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/kinetic/winehq-kinetic.sources
Step 4
Run the sudo apt update command to update the Ubuntu package list.
sudo apt update
Step 5
After updating the repo list, execute the “sudo apt install –install-recommends winehq-stable” command in the terminal to install WineHQ Stable 7.0 version.
sudo apt install --install-recommends winehq-stable
Step 6
Press Y and then Enter to confirm the installation of dependent packages for Wine.
Step 7
After installing Wine on Ubuntu, execute the “winecfg” command in the terminal to start the program. Some necessary files may need to be configured at this stage, so wait for the process to complete.
Click the Install button to install the Wine Mono package, which enables the applications that need the .NET framework to run correctly.
winecfg
Step 8
After installing the Wine Mono package, you can check the Wine version with the “wine –version” command in the terminal or from the GUI interface.
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 the Notepad program 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, then click Open With Other Application and then select Wine Windows Program Loader as in the image below.
NOTE: If you want to install via terminal, copy the download link of the program and download it using the wget command, and 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
Step 2
When the Notepad setup wizard opens, select the language of the program and click the OK button.
Step 3
Continue by clicking the Next button in the Wizard window.
Step 4
Click the I Agree button to accept the Notepad++ license agreement.
Step 5
You can manually select the installation location or select the location configured by default. Just click Next at this step to install to the default location specified during the installation phase.
Step 6
Since you will be installing it on the Linux distribution in the components selection window, you may not see some options here, but this is not a problem that will prevent the program from running. Therefore, continue the installation by clicking the Next button.
Step 7
After installing the Windows-based program, select the Create Shortcut on Desktop option and click the Install button to create a desktop shortcut.
Step 8
After the Notepad++ installation is complete, start it.
Step 9
You can now see a Windows program running smoothly on the Ubuntu distribution.
NOTE: Finally, to make the desktop shortcut icon visible, right-click on it and then click Allow Launching. In the right part of the image below, you can see that the icon is now visible and working.
How to Uninstall Wine
If you want to uninstall or delete Wine from your Linux computer, we recommend that you first backup your projects.
Step 1
Execute the “sudo apt remove wine*” command in the terminal to remove all WineHQ-related packages from your system.
sudo apt remove wine*
Step 2
Press Y followed by Enter to confirm removing all dependent packages related to Wine-Stable, WineHQ-Stable-AMD64, and WineHQ-Stable.
Step 3
After completely uninstalling Wine, execute the “sudo apt autoremove && sudo apt autoclean” command in the terminal to automatically clean unnecessary residual files and packages on your system.
sudo apt autoremove && sudo apt autoclean
Step 4
The total size of unnecessary residual files on your Ubuntu PC is 1 GB. Press Y and Enter if you confirm deleting all files from your system.
Step 5
Finally, to delete WineHQ resources from your system’s repo list, execute the commands below in the terminal and then check that the program is uninstalled 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
Video
Installing Old Versions
Related Articles
♦ How to Install WineHQ on Debian
♦ How to Install Ubuntu on VMware
♦ How to Install WineHQ on Kali
♦ How to Install WineHQ on Mint
♦ How to Install VMware on Ubuntu
This didnt work for me. Tried following all the recommendations from here too (https://askubuntu.com/questions/988145/how-to-install-wine-on-ubuntu-17-10), but they didnt work. Have the same problem as the person who asked the question and nothing has solved it so far.
Got an error trying to add the Winehq repository for 18.04.
Is it a script error ?
Brings the installation to a halt.
Can u help ?
Thank You !!! ;-D
Installed winehq-stable on 22.04, It just worked.
Claus
You’re welcome. Thank you.
Such clear, thorough instructions! Thanks so much! This helped a ton.
Glad to be of help. Thanks for your comment.
please turn off the unselectable feature on your website. Besides that, good tutorial