Install Wine

September 10, 2020

Compile the Source Code of Wine to install it on CentOS 8: Now we need to compile this downloaded source code of Wine so that it can be installed on our CentOS 8 system. For that, we will first have to change the default path of the terminal by navigating to the ' tmp ' directory (the directory in which the source code files of Wine have been. Then, install Wine using: yum install wine. Verify installation was successful by checking the Wine version: wine -version. The output should display Wine 4.0 is installed on CentOS 7, as in the image above. Install Wine on Linux Distribution. By Jithin on July 11th, 2020. In this tutorial, we can check how to Install Wine on Linux Distribution. Wine is an open-source compatibility layer that helps the Linux and Unix based operating systems to run the Microsoft Windows applications.

Remote file
content-ubuntu-20.04.html
does not exist.

Consider sharing your experience

Did you find this page helpful? Have constructive feedback? Wisdom to share?

Send email to Email Address
Privacy Policy

S.K.November 23, 2020

Hi David,

I have the following error while installing wine.

devil@devil:~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focalmain'
E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

Any help ?
Thank you.

T.C.November 24, 2020

Hi David

I am getting this error trying to add wine repository

trey@trey:~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
[sudo] password for trey:
E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

davidbNovember 25, 2020

S.K.'s error message is caused by a typo in his add-apt-repository command. A space is needed between focal and main.

T.C., on his own, listed the contents of /etc/apt/sources.list

$ cat /etc/apt/sources.list

which revealed a typo in its line 58. In this case, a space between …/ubuntu/ and focal was missing.

D.J.October 12, 2020

yes this page helped me install wine on Ubuntu 20.04 no hitches. wonderful :) thank you

W.B.August 1, 2020

… [On Linuxfx 10] I followed your instructions for updating WINE, and everything went OK until it came time to reload the Repositories. At that point I got several error messages such as this from Synaptic Package Manager …

Install wineth

davidbAugust 3, 2020

Linuxfx 10.4 is derived from Ubuntu 20.04, but the Ubuntu 20.04 procedure for installing Wine does not work for Linuxfx 10.4, so I made a page specifically for Linuxfx 10.4.

R.K.July 25, 2020

Hi David,
Really like your page on WINE install here: https://wine.htmlvalidator.com/install-wine-on-ubuntu-20.04.html
However it does not work for me :(

After following the commands I get this error …

~$ sudo apt install --install-recommends winehq-stable
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.
winehq-stable : Depends: wine-stable (= 5.0.1~focal)
E: Unable to correct problems, you have held broken packages.

I also see around the net that others experience this problem too.

davidbJuly 26, 2020

I am very familiar with the error you encountered. I did re-check my Ubuntu 20.04 page by installing Wine on a fresh copy of Ubuntu 20.04, and the procedure given here remains correct.

WineHQ offers the following advice.

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

If your system is 64 bit, enable 32 bit architecture (if you haven't already).

If apt complains about missing dependencies, install them, then repeat the last two steps (update and install). See the FAQ entry on dependency errors for tips on troubleshooting dependency issues.

To remove Wine, I suggest the following.

$ sudo apt list --installed | grep wine

That will list all installed packages which have 'wine' in the package name. Then you can do

$ sudo apt purge packagename

for each package in the list that you want to remove (replacing packagename in the above command by names from the list, of course). Probably all listed packages will relate to Wine, but use your discretion.

If you installed Wine through Ubuntu's Software app, first use Software's uninstall option, and follow up with the above Terminal commands.

davidbAugust 1, 2020

After much unsuccessful effort, a clean install of the OS seemed the only way forward. Subsequent to the clean install of the OS, R.K. successfully installed Wine following the method on this page.

The Wine team announced the new development release Wine 6.4 with new features and various bug-fixes.

Wine 6.4 added support for the DTLS protocol. Datagram Transport Layer Security (DTLS) is a protocol designed to secure data over UDP and is used for applications such as media streaming, VOIP, and online gaming for communication.

Other changes in the release include:

  • Fontset support in DirectWrite.
  • Dialog for editing Access Control entries.
  • Theming support for a few more common controls.
  • Support for Korean Wansung encoding.

And there are various bug-fixes to Windows applications including RTG Bills 2.x, Acrobat Reader XI, Soldiers of Anarchy, The Witcher 3, and more.

How to Install Wine 6.4 in Ubuntu:

The new release package will be available in next a few days for Ubuntu 18.04, Ubuntu 20.04, and Ubuntu 20.10.

Open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching for ‘terminal’ from system application menu. When it opens, run following steps one by one.

Install Wine Development version via following commands will replace the latest stable Wine release package if installed.

1.) Run command to enable 32 bit architecture (if you don’t have it):

Install Wine Mono

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2.) Install the repository key by running command:

Mint

3.) Add wine repository via command:

IMPORTANT: In this command, you have to replace focal with:

Install Winexe

  • focal for Ubuntu 20.04, Linux Mint 20.x
  • groovy for Ubuntu 20.10.
  • bionic for Ubuntu 18.04 and Linux Mint 19.x

Don’t know your system edition? Run lsb_release -a command in terminal to check out.

4.) For Ubuntu 18.04 and Linux Mint 19.x only, libfaudio0 library is required to install from a third-party repository by running command:

5.) Finally install Wine 6.4 via command:

If you get unmet dependency issue, try aptitude command instead:

Wine Emulator

Uninstall wine:

Install

You may remove the PPA by launching Software & Updates utility and navigating to Other Software tab.

Install Wine Ubuntu 20.04

To remove wine 6.4, run command in terminal: