Archives For wine

To run Microsoft Windows applications in Ubuntu Linux, Wine or CrossOver (paid version) is a good choice. And here’s how to install and use Wine in Ubuntu 22.04 LTS.

In this tutorial, you’ll see 2 ways to install Wine in Ubuntu. Choose either one that you prefer.

Install Wine from Ubuntu repository:

Ubuntu included Wine package in its own repository, though it’s old. User may simply press Ctrl+Alt+T on keyboard to open terminal and run command to install it:

sudo dpkg --add-architecture i386 && sudo apt install wine

Type user password (no asterisk feedback) and hit Enter to authentication for sudo.

After installed package run winecfg in terminal to generate configuration file. And, run command to make link the .desktop file:

sudo ln -s /usr/share/doc/wine/examples/wine.desktop /usr/share/applications/

Finally, you may right-click on an EXE file to run via “Wine Windows Program Loader” option:

Install Wine from its official repository:

The Wine developer team provides an official apt repository for Debian/Ubuntu based systems. By releasing v7.6, it added Ubuntu 22.04 support.

1. Install Wine key

The repository now has updated with new method to install the key to follow Debian policy, as apt-key is deprecated. However, it’s still ASCII-armored key so far.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, create the directory for storing the keys:

sudo mkdir -p /etc/apt/keyrings

Then, run the single command to download the key, dearmor, and move to “/etc/apt/keyrings” directory:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /etc/apt/keyrings/winehq-archive.key

Type user password and hit Enter if the command stuck with blinking cursor. And, it will output un-readable text as the picture shows:

2. Add Wine repository:

Next run the commands below one by one to download the repository setup file and move to “/etc/apt/sources.list.d” directory.

  • Download the source file:
    wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources
  • Move it into “/etc/apt/sources.list.d”:
    sudo mv winehq-$(lsb_release -sc).sources /etc/apt/sources.list.d/

NOTE: This command is for Ubuntu only. “$(lsb_release -sc)” returns system’s code-name. For Linux Mint and other Ubuntu based system, replace it with jammy (22.04), focal (20.04) or bionic (18.04) depends on which Ubuntu edition your system is based on.

3. Update cache

Before installing any package from that repository, you need to refresh system cache by running command in terminal:

sudo apt update

4. Install Wine:

The Wine repository provides three Wine packages:

  • winehq-stable – the stable version (v8.0 so far)
  • winehq-devel – the latest development release.
  • winehq-staging – the testing version with patches applied on top of the corresponding wine-devel

Select install one of the packages by running command below in terminal:

  • To install the stable edition use command:
    sudo apt install winehq-stable
  • Install wine development release via:
    sudo apt install winehq-devel
  • Or install wine-staging via command:
    sudo apt install winehq-staging

NOTE: It does not re-build old packages for new Linux systems. winehq-stable so far is not available for Ubuntu 22.04, since the new LTS is released after wine stable 7.0. User may wait for the next stable release (v7.0.1 or v8.0).

After installation, right-click on your EXE file and start it via Wine program loader option. See if your app works with wine.

How to Remove Wine:

1. To remove the Wine package, simply open terminal and run commands:

sudo apt remove wine winehq-stable winehq-staging winehq-devel

There will be local configuration files and app data left under .wine and .local/share/applications. They are hidden folders, press Ctrl+H in file manager to toggle display and remove them as you want.

2. To remove the Wine repository, open terminal (Ctrl+Alt+T) and run command:

sudo rm /etc/apt/sources.list.d/winehq-*.sources

And remove the repository key via command:

sudo rm /etc/apt/keyrings/winehq-archive.key

Finally apply changes by running sudo apt update to refresh system package cache.

Wine 7.4, the new development of the compatibility layer capable of running Windows apps on Linux, is out.

The new release bundled Vkd3d, 3D graphics library built on top of Vulkan, for its implementation of Direct3D 12.

Other changes include defaults to ‘Light’ theme, WineD3D, D3D12 and DXGI modules converted to PE, more large scale cleanups to support ‘long’ type. And, there more than a dozen of bug-fixes. See more here.

How to install Wine 7.4 in Ubuntu:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

NOTE: Installing Wine Dev release will replace the stable package (if installed from same repository) in your system if any.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository (replace focal accordingly!):

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • impish for Ubuntu 21.10.

Say you’re running Ubuntu 21.10, the command will be:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

4. Install Wine 7.4:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.4 via:

sudo apt install --install-recommends winehq-devel

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-devel

Uninstall Wine 7.4:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-devel

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!

The first development release after Wine stable 7.0 was out. Here’s what’s new and how to install in Ubuntu Linux.

Wine 7.1 comes with the latest Vulkan 3D graphics v1.3 support for running high-performance real-time 3D graphics applications. The new driver features dynamic rendering, additional dynamic state, improved synchronization API, and device profiles.

Other changes include:

  • A number of theming fixes.
  • WebSocket improvements.
  • Improved cursor clipping on macOS.
  • IDL compiler fixes for C++.

There are as well a total of 42 bug-fixes for Windows apps including Siemens SIMATIC STEP 7, Final fantasy 7, Arx Fatalis, Rising Kingdoms, Far Cry 5, Age of Empires 3, and more!

Wine 7.1 configuration

How to install Wine 7.1 in Ubuntu:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

NOTE: Installing Wine Dev release will replace the stable package (if installed from same repository) in your system if any.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • hirsute for Ubuntu 21.04.
  • impish for Ubuntu 21.10.

Say you’re running on Ubuntu 21.10, the command will be:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

4. Install Wine 7.1:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.1 via:

sudo apt install --install-recommends winehq-devel

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-devel

Uninstall Wine 7.1:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-devel

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!

After a year of development, Wine, the software for running Windows apps on Linux finally released new stable 7.0 version with over 9,100 individual changes.

What’s New in Wine 7.0:

In Wine 7.0, most modules have been converted to PE format (Portable Executable, the Windows binary format) instead of ELF. This helps various copy protection schemes that check that the on-disk and in-memory contents of system modules are identical.

This release also implemented 64-bit Windows-on-Windows (WoW64) architecture, enables ability to run a 32-bit Windows application inside a 64-bit Unix host process. Once all modules converted to PE format, it will be possible to run 32-bit applications without installing 32-bit Unix libraries.

All the builtin applications and common controls now support theming, as well as High DPI rendering. A “Light” theme is included, with the color variants “Blue” and “Classic Blue”.

The 7.0 release also introduced the new kernel side Win32u graphics library. The graphics drivers (e.g., winex11.drv and winemac.drv) will be migrated to this library in next releases.

Other changes in Wine 7.0 include:

  • Some initial support for Direct2D effects.
  • Multiple displays support for Direct3D apps.
  • More graphics cards recognized via Direct3D database:
    • AMD Radeon RX 5500M
    • AMD Radeon RX 6800/6800 XT/6900 XT
    • AMD Van Gogh
    • Intel UHD Graphics 630
    • NVIDIA GT 1030
  • Vastly improved HID stack and joystick support.
  • Update Mono to v7.0.0 with many improvements.
  • The ‘faudio’ now bundled in the source, which means Ubuntu 18.04 no longer needs adding separate PPA for the dependency (NOT tested as I don’t have 18.04 at hand).
  • See announcement for more details.

How to Install Wine 7.0 in Ubuntu & Linux Mint:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • hirsute for Ubuntu 21.04.
  • impish for Ubuntu 21.10.

Say you’re running on Ubuntu 21.10, the command will be:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

4. Install Wine 7.0:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.0 via:

sudo apt install --install-recommends winehq-stable

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-stable

Uninstall Wine 7.0:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-stable

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!

The first release candidate for the upcoming Wine 7.0 was released a few days ago. Here’s what’s new and how to install it in Ubuntu.

Wine is a free open-source software allows to run Windows apps in Linux, macOS and BSD. The latest development release now is Wine 7.0 RC1 that features:

  • Reimplementation of the WinMM joystick driver.
  • All Unix libraries converted to the syscall-based interface.
  • Various bug fixes to win apps including Sea of Thieves, EVE Online Client, World of Warships, and more.

How to Install Wine 7.0 RC1 in Ubuntu:

Press Ctrl+Alt+T key combination on keyboard to open terminal, then run the commands below one by one to get the Wine package in Ubuntu 20.04, Ubuntu 21.04, and Ubuntu 21.10. Ubuntu 18.04 is also supported, though user has to first add the faudio PPA.

1. Enable 32 bit architecture support.

While modern computers now have 64-bit CPU architecture, Wine is a 32-bit software. So you may first enable the 32 bit architecture support by running command in terminal:

sudo dpkg --add-architecture i386

2. Add Wine repository to your system:

You may add the Wine repository by creating a config file and writing a line into it. And, it can be done by running the single command in terminal:

sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/winehq.gpg] https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -sc) main" >> /etc/apt/sources.list.d/winehq.list'

NOTE: the command above is only for Ubuntu user. For Linux Mint, Elementary OS, Zorin OS and other Ubuntu based systems, you have to replace $(lsb_release -sc) with the Ubuntu code-name (e.g., focal and bionic) that your system based on.

3. Install the key for Wine repository.

Since apt-key command is deprecated for security reason, here I’m going to tell the new method to install the third-party repository key in Ubuntu. Though apt-key is more effective and still works, you may use it if not care about cyber security!

Open terminal and run single command below to download the key, convert it into un-readable gpg file, and finally store in “/usr/share/keyrings”.

wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /usr/share/keyrings/winehq.gpg

4. Install Wine package:

Finally refresh system package cache via command:

sudo apt update

And install the Wine 7.0 RC1 by running command:

sudo apt install winehq-devel

NOTE: Wine 7.0 RC1 staging package is also available. It contains bug fixes and features, which have not been integrated into the development branch yet. You may install the it by replacing winehq-devel with winehq-staging in last command.

After installation, use winecfg command to bring up configuration editor. And, right-click on EXE file and choose “Open with Other Application -> Open With Wine Windows Program Loader” to get start installing a Windows app.

Clean up or Remove Wine:

After installing the repository key, two useless files (“winehq.key” and “winehq-keyring.gpg”) are left in home directory. You may remove them via the file manager.

To remove Wine 7.0 RC1, run command in terminal:

sudo apt remove --autoremove winehq-devel

To remove the Wine repository, simply remove the file under “/etc/apt/sources.list.d” via the command below or use “Software & Updates” utility via “Other Software” tab.

sudo rm /etc/apt/sources.list.d/winehq.list

And remove the key if you want via command;

sudo rm /usr/share/keyrings/winehq.gpg