+3 votes
6.8k views
How to install Wine on Linux Mint 20

in Linux / Unix by (552k points)
reopened | 6.8k views

1 Answer

+4 votes
Best answer

1. Install Wine on Linux Mint 20 graphically
2. Install Wine on Linux Mint 20 with terminal
3. Configure Wine in Linux Mint 20
4. Use Wine in Linux Mint 20

WINE (Wine Is Not an Emulator) is the ideal solution for those users who want to run Windows applications (.exe) on Linux operating systems. We know very well that this is not possible by default since the Linux file system is not compatible with that of Windows and vice versa, therefore we must resort to Wine for this method. Wine is in charge of creating a compatibility layer in Linux with Windows 10 thus allowing the execution of Windows applications and this is possible not only in Linux but also in macOS and BSD systems..

 

Wine does not use the simulation of internal Windows logic, just like a virtual machine does, Wine what it does is translate the API calls of the Windows system and convert them into POSIX calls, this optimizes the execution, performance and compatibility of the applications Windows on Linux. In this way we can open Windows programs in Linux by installing Wine in Linux Mint.

 

 

Wine Advantages
Some of the advantages of using Wine are:

 

  • Allows you to access Windows applications remotely
  • Wine makes use of Linux resources and can dedicate them to Windows applications
  • Wine makes Windows applications available on the network through VNC and the Java / HTML5 client.
  • It is an open source software with which it is constantly updated
  • Enables the possibility of accessing Windows applications from any X terminal

 

 

Let's see how to install Wine in Linux Mint 20..

 


1. Install Wine on Linux Mint 20 graphically

 

Step 1

For this method we must access the Linux Mint Software administrator, for this we search for "software" and in the displayed results select "Software manager":

 

image

 

Step 2

In the manager we look for “wine” and we locate the option “Wine-stable”:

 

image

 

Step 3

We select this option and the following will be displayed:

 

image

 

Step 4

We click "Install" to start the process and we will see that the use of some additional plugins is needed:

 

image

 

Step 5

We click "Continue" and it will be necessary to enter the administrator password:

 

image

 

Step 6

We click on “Authenticate” and the Wine installation process begins in Linux Mint 20:

 

image

 

Step 7

When this ends we will see the following. There it will be possible to run Wine or delete it.

 

 

image

 

Step 8

Before its execution, we must know that Wine will be installed in the / opt / wine-stable / directory, we must add the path / opt / wine-stable / bin / to the path (PATH) of the Linux Mint 20 user, for this we execute the following:
 nano ~ / .profile 
image

 

Step 9

We enter the password and at the end of the file we will enter the following:
 export PATH = "$ PATH: / opt / wine-stable / bin" 
image

 

 

Step 10

We save the changes using the following key combination:

 

Ctrl + O

 

We exit the editor using:

 

Ctrl + X

 

 

So we have installed Wine in Linux Mint from the software manager graphically.

 


2. Install Wine on Linux Mint 20 with terminal

 

Now we are going to learn how to install Wine directly from the terminal in Mint 20..

 

Step 1

The first step to take will be to determine the architecture of the team, for this we execute the following:
 uname -p 
Step 2

If the equipment is 32 bits we will see "x86", while if it is 64 bits we will see "x86_64":

 

 

 

image

 

 

Step 3

Once this is defined, if the equipment is 64-bit, we must enable the 32-bit architecture since many applications will only be available for it, in this case we execute the following:
 sudo dpkg --add-architecture i386 
image

 

 

Step 4

It is time to download the public key of Wine, for this we execute the following:
 wget -nc https://dl.winehq.org/wine-builds/winehq.key 
image

 

 

Step 5

Now we add this key:
 sudo apt-key add winehq.key 
image

 

 

Step 6

After this we are going to add the Wine repository by executing the following line:
 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' 
Note
In this case, the “bionic” repository of Mint 19.1 is used since Wine has not yet developed the Linux Mint 20 Ulyana repository.

 

 

 

image

 

 

 

Step 7

We update the repositories:
 sudo apt update 
image

 

 

Step 8

After this we will install the latest stable version of Wine by running:
 sudo apt install --install-recommends winehq-stable 
image

 

 

Step 9

We enter the letter S to confirm the download and installation of Wine in Linux Mint 20, when this ends we will see the following:

 

image

 

 


3. Configure Wine in Linux Mint 20

 

Step 1

If we want we can validate the version of Wine installed with the following command:
 wine –version 
image

 

 

Step 2

Now it will be necessary to make some adjustments to the Wine configuration in Linux Mint 20, to process them, we will execute the following:
 winecfg 
image

 

 

Step 3

This will create a directory.wine in the user's home directory, after this we must install the Wine mono and Wine gecko packages:

 

image

 

 

Step 4

We click "Install" for it:

 

 

image

 

 

Step 5

After these two packages are installed the information in the .wine file will be updated again:

 

image

 

 

Step 6

When this ends, the following window will be launched where we can make the respective adjustments:

 

image

 

 

Step 7

There it will be possible:

 

Units
It is possible to access the virtual drives created or manage the ones that are available:

 

image

 

 

Bookstores
In this section it is possible to enter Windows .dll libraries

 

image

 

 

 

Graphics
Allows management of how application windows work in Mint 20

 

image

 

 

 

Desktop integration
there we can validate the Linux paths of the Windows libraries

 

image

 

 

 

Audio
from here it is possible to manage audio devices in Linux for Windows

 

image

 

 

 

 


4. Use Wine in Linux Mint 20


After this we have two methods to run Windows applications in Mint 20.

 

Step 1

The first is to right-click on the executable and select "Open with Wine program loader"

 

image

 

 

Step 2

The second option is to access the terminal and execute the following there:
 wine programa.exe 
image

 

Step 3

Using any of these options we will see that the selected installer is run:

 

image

 

Step 4

We follow the steps as if we were in Windows:

 

image

 

Step 5

The application installs correctly on Linux Mint 20:

 

image

 

Step 6

After this we see that the application we have installed runs correctly in Mint 20 as it happens in a Windows operating system:

 

image

 

Thanks to Wine we will not miss Windows applications when using Linux Mint 20.

 


by (3.5m points)
Too cumbersome for a newcomer. Why doesn't Linux Mint come with Wine pre-installed? This would make it much easier for a newcomer to work. Zorin Os comes pre-installed, so just click on the .exe file and Wine will configure itself and start installing the program.
On the other hand, in the previous version, Linux Mint 19.3, you just have to click on the recommended version from the software store and it installs, without having to do the final steps that you indicate.
Anyway, thanks for your contribution.
This particular method gives you a connection to official winehq repositories, so you're using the latest STABLE version.
Repositories maintained by distributions are usually a couple versions behind.
It seems that I managed to install WINE on Linux Mint 20 but I had to do it using the console. It asked me to install the Wine mono and Wine gecko  packages when I entered the command "wine –version" not after I entered the command "winecfg".

I installed an old game I had bought from GOG and the installation process spat out error messages about some runtime error I don't remember exactly which one. Meanwhile, despite these error messages, the installation went through and I can play the game.

I would be glad if you had any idea about what had happened.

Thanks for this tutorial anyway! :thumbup:
This didn't work for me . I got to sudo apt install --install-recommends winehq-stable.
I got E: Unable to locate package winehq-stable
DO NOT follow #9 in Section #1.

Look for a better tutorial where it will actually tell you a correct instruction.

This instruction will mess up your system.

I found a perfect instruction on the Linux Mint Forum it had a sticky topic telling exactly how to do this easily, but I had to do that after I had to reinstall because this DUMB tutorial messed up my system. Who would even put spaces all over a file path like that and make it mess up a critical system file. Obviously the writer has not even done these instructions or they would see it breaks the system down.

Related questions

+5 votes
1 answer
asked Jun 19, 2020 in Linux / Unix by backtothefuture (552k points) | 2k views
+3 votes
1 answer
asked Jun 22, 2020 in Linux / Unix by backtothefuture (552k points) | 2.7k views
+5 votes
1 answer
asked Jun 15, 2020 in Linux / Unix by backtothefuture (552k points) | 455 views
+3 votes
1 answer
asked May 12, 2020 in Linux / Unix by backtothefuture (552k points) | 4k views
+4 votes
1 answer
asked Feb 13, 2020 in Linux / Unix by backtothefuture (552k points) | 14k views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users