+3 votes
791 views
How to install Wine on Ubuntu 21.04

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

1 Answer

+4 votes
Best answer

How to install Wine on Ubuntu 21.04

Has it ever happened to you that you try to run a Windows application (.exe) in Linux and you simply get a message saying that it is not possible? The reason is simple, because of the Linux file system we cannot install Windows applications and vice versa. This because the Windows file system is NTFS while Linux is ext4, but even with this we have the ability to run our applications on Linux . In this case in Ubuntu 21.04, in a functional way, this if we assure you that not all applications are compatible or will be executed as on a Windows computer. We achieve this thanks to Wine..

 

What is Wine
Wine (Wine Is Not an Emulator) basically has the task of creating a compatibility layer in Ubuntu which gives us the opportunity to run Windows applications on all POSIX-compatible operating systems (Linux, macOS and BSD). Wine works by simulating the internal logic of Windows, so it is possible to open .exe applications, for this Wine translates the Windows API calls and turns them into POSIX calls avoiding the use of methods such as virtual machines.

 

 

Wine Features
Its advantages of use are:

 

  • Integrates Linux functions for Windows applications
  • It gives us the possibility to access Windows applications remotely
  • Allows access from any X terminal
  • Windows applications can be run through scripts
  • Enables Windows applications to be available on the network via VNC and the Java / HTML5 client

 

 

Let's see how to install Wine on Ubuntu 21.04.

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

How to install Wine on Ubuntu 21.04

 

Step 1

We execute the following command to add the 32-bit architecture (x86) in Ubuntu:
 sudo dpkg –add-architecture i386 

image

 

 

Step 2

After this, we are going to download the Wine repository:
 wget -nc https://dl.winehq.org/wine-builds/winehq.key 

image

 

 

Step 3

We install this key locally:
 sudo apt-key add winehq.key 

image

 

 

Step 4

We update the system and its repositories:
 sudo apt update 

image

 

Step 5

Once Ubuntu 21.04 is updated, we are going to install Wine with the following command:
 sudo apt install wine64 

image

 

 

Step 6

We must enter the letter S to confirm the download and installation of all Wine packages in Ubuntu 21.04:

 

image

 

 

Step 7

At the end of this process we will see the following:

 

image

 

 

Step 8

We are ready to configure Wine, for this we execute the following in the terminal.
 winecfg 
image

 

 

Step 9

This will start a configuration process which displays the following window:

 

image

 

 

Step 10

There it is possible, for example, in Applications, to determine on which version of Windows the applications should be run, in other tabs such as Desktop integration we can see the directories that point to the Windows options:

 

image

 

 

Step 11

In Units we can view the network accesses created:

 

image

 

 

Step 12

Now, in the terminal we execute the following:
 wine –version (lists the installed version of Wine ” lsb_release -a (list Ubuntu version) 

image

 

 

Step 13

To open an application with Wine we have two options:
Right-click on the executable and select "Open with another application." Then we select Wine.

 

 

image

 

 

Step 14

Another method is from the terminal by executing the following syntax:
 wine app.exe 

image

 

 

Step 15

We can see that the installation wizard of the selected application opens, there we continue the installation process normally:

 

image

 

We have seen how Wine is a key feature to run numerous Windows applications on Ubuntu 21.04 without losing their quality and performance, which is ideal for productivity issues or personal use..

 


by (3.5m points)
Wine64 installs but Wine32 does not install. Error message:
sudo apt install wine32
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libxml2:i386 : Depends: libicu67:i386 (>= 67.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

And Wine-devel also does not install.

How can we install wine development version and wine32 on 21.04?

Related questions

+5 votes
1 answer
asked May 6, 2021 in Linux / Unix by backtothefuture (552k points) | 341 views
+4 votes
1 answer
asked Feb 13, 2020 in Linux / Unix by backtothefuture (552k points) | 14k views
+4 votes
1 answer
asked Oct 25, 2019 in Linux / Unix by backtothefuture (552k points) | 366 views
+4 votes
1 answer
asked Nov 13, 2020 in Linux / Unix by backtothefuture (552k points) | 355 views
+4 votes
1 answer
asked Nov 12, 2020 in Linux / Unix by backtothefuture (552k points) | 398 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