+4 votes
13.9k views
How to install Wine on Ubuntu 20.04

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

1 Answer

+5 votes
Best answer

1. How to download Wine Linux repositories and password
2. How to install Wine on Ubuntu 20.04
3. How to configure and use Wine on Ubuntu 20.04
4. How to install Wine on Ubuntu 20.4 without internet

Wine (Wine Is Not an Emulator) is one of the most useful ways to run programs that are compatible with Linux (such as Windows programs) with almost 100% of its operation. This is very useful when a traditional Windows user migrates to Linux and realizes that when he runs his .exe file, he will simply get an error message. Do not lose your mind or stop using Linux because Wine is the solution to this..

Wine has been developed as an application that creates a compatibility layer in which we can run Windows applications on POSIX-compatible operating systems, such as Linux, macOS and BSD.
Its operation is based on the simulation of the internal logic of Windows, as happens when we create a virtual machine , in this case Wine translates the Windows API calls and converts them into POSIX calls, this gives advantages such as: improves performance, allows integrate Windows applications on the desktop and is fully compatible with .exe applications

characteristics
Some of the advantages of using Wine are:
  • Allows access to Windows applications remotely
  • It will be possible to call Windows applications using scripts
  • Integrate Linux functions such as stability, flexibility, remote administration and more
  • Allows access from any terminal X
  • With Wine we can enable Windows applications to be available on the Internet using VNC and the Java / HTML5 client
  • It is an open source software constantly updated

Now we will see how to install Wine on Ubuntu 20.04 clarifying that Wine is currently available until Ubuntu 19.10, but its packages are compatible with this new version of Ubuntu about to leave.

Ubuntu 20.04 architecture settings
We know that Windows 10 is available in 32-bit and 64-bit architectures, so if the system is 64-bit, we must enable the 32-bit architecture by running the following line in the terminal:
 sudo dpkg --add-architecture i386 

image


1. How to download Wine Linux repositories and password

Step 1

Now we must download and install the Wine repositories, for this we first download them with the following order:
 wget -nc https://dl.winehq.org/wine-builds/winehq.key 
image
Step 2

Next we enter the following order to add this key:
 sudo apt-key add winehq.key 
image
Step 3

Now we are going to add the Wine repositories which are available in the following link:
WINE Repositories

There the options to use are the following:

Ubuntu 19.10
 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main' 
Ubuntu 18.04 and Linux Mint 19.x
 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' 
Ubuntu 16.04 and Linux Mint 18.x
 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' 
Step 4

In this case we will use the Ubuntu 19.10 repository: image
Step 5

We update the packages added in Ubuntu 20.04:
 sudo apt Update 
image

2. How to install Wine on Ubuntu 20.04

Step 1

Once the packages have been updated we have the following options to install Wine on Ubuntu 20.04:
Wine Stable
 sudo apt install --install-recommends winehq-stable 
Wine in development
 sudo apt install --install-recommends winehq-devel 
Wine testing
 sudo apt install --install-recommends winehq-staging 
Step 2

In this case we will use the stable version:
 sudo apt install --install-recommends winehq-stable 
image
Step 3

Enter the letter "S" to confirm and start the installation of Wine on Ubuntu 20.04: image
Step 4

Once this process is finished we will see the following: image
Step 5

We can check the installed version of Wine by executing the following:
 wine –version 
Step 6

By the way we confirm that it works correctly in Ubuntu 20.04: image

3. How to configure and use Wine on Ubuntu 20.04

Step 1

Once Wine is installed we will configure it, for this we will use the following order:
 winecfg 
image
Step 2

Normally we will see the following: image
Step 3

There we must click on the “Install” button to download and install this Wine function: image
Step 4

Also, we may have to install some more packages: image
Step 5

After this the following will be displayed:

image

Step 6

There we have different tabs where we can configure aspects such as:
  • Windows Compatibility (Available from Windows XP to Windows 10)
  • Add system libraries
  • Configure the graphics
  • Integrate desktop
  • Audio settings and more
Step 7

To check the operation of Wine we download a Windows application and to execute it we will right click on it and select "Open with another application":

image

Step 8

In the displayed window we select the Wine option:

image

Step 9

By selecting this option we can see that the Windows application runs smoothly in Ubuntu 20.04: image
Step 10

We finish the installation successfully: image
Step 11

We access the installed application: image

4. How to install Wine on Ubuntu 20.4 without internet


Alternatively, TechnoWikis will give you the steps to install Wine on Ubuntu 20.4 without internet, for this you must execute each of the following steps using the Internet on some other Ubuntu computer.

Repository download:

 sudo add-apt-repository ppa: wine / wine-builds sudo apt-get update Package adjustment: sudo apt-get clean sudo apt-get --download-only install winehq-devel sudo apt-get --download-only dist-upgrade 
Copy the .deb files in the path / var / cache / apt / archives to a USB to move them to the computer without a network:
 cp -R / var / cache / apt / archives / / media / usb-drive / deb-pkgs / 
In the machine without network we execute the following:
 cd / media / usb-drive / deb-pkgs sudo dpkg -i * .deb 
From here, Wine will be installed on the device.

With Wine it will be possible to make use of Windows applications in a Linux environment with full use of its benefits and with the same performance as if we were facing a Windows computer..


by (3.5m points)
edited
Worked first time: thanks very much.
Using Ubuntu 20.04 on an old HP Probook 6470b laptop
Thank you for this accurate and very comprehensive guide! I tried it on Ubuntu 20.04 and tested wine with EAC. It works flawlessly! :)
You are welcome!
Installed OK. Buen trabajo y 1k gracias por la informacion (Good job and 1k thanks for the info).

Using Wine for Winamp-Stereo Tool+Line In 1.8 for my "amateur FM station". On various PCs, like this souped-up Asus K53e. Alternative Wine use also using Stereo Tool Stand Alone on Windows or directly with Linux code. Again, thanks... ciao for now.
Hey Howard, quick question for you. I too have an HP ProBook6470b that I am about to put ubuntu 20.04 on (once it finishes downloading.) Was just wondering if I need any specific drivers to get the various peripherals working, like the fingerprint sensor, webcam, gpu, sound card, things like that. I'm a newbie when it comes to linux, so your input on how ubuntu works on the 6470b would be greatly appreciated. thank you! Eric
this actually worked the first time
running ubuntu 20.04(fresh upgrade)
wasn't sure if the solution above will work without a hitch and it worked seemlesly
It works like a dream but I have only a problem, I need Wine for running some learning applications , for some of them works for some not, I wonder that it has worked before reinstalling Ubunto due to some reasons,,, Now I have this strange problem.. My device is macbook pro 2012
It was perfect the installation. Thanks a lot.
This works perfectly after new install of Ubuntu 20.04. Many thanks,
This worked like a champ. I was glad I picked this one to follow after a long internet search.
It works, thank you, but how do I get it to run netlimiter? It installed but doesn't run.
Perfect install instructions for Focal. If you are having issues with certain programs working, check out winehq.org homepage for help and/or report your problem there.

Related questions

+3 votes
1 answer
asked Nov 6, 2020 in Linux / Unix by backtothefuture (552k points) | 791 views
+4 votes
1 answer
asked Oct 25, 2019 in Linux / Unix by backtothefuture (552k points) | 361 views
+3 votes
1 answer
asked Sep 29, 2020 in Linux / Unix by backtothefuture (552k points) | 3.8k views
+3 votes
1 answer
asked May 12, 2020 in Linux / Unix by backtothefuture (552k points) | 4k views
+3 votes
1 answer
asked Sep 28, 2020 in Linux / Unix by backtothefuture (552k points) | 505 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