How to install Wine on Ubuntu 18.04 LTS?

Wine

Wine is a popular free and open source software that allows users to run Windows applications on Linux and other Unix-like operating systems. To be a bit more technical, Wine it is a compatibility layer; translate system calls from Windows to Linux and it uses some Windows libraries, in the form of .dll files.

For those people who are migrating from Linux, they very possibly need some Windows software or game that is not available or has no equivalent in Linux. Wine makes it possible to run those Windows programs and games on your Linux desktop.

Wine it is one of the best ways to run Windows applications on Linux. In addition, the Wine community it has a very detailed application database, we find it as AppDB it contains more than 25,000 programs and games, ranked by their compatibility with Wine:

  • Platinum Applications- Installs and runs smoothly in a ready-to-use Wine installation
  • Gold Applications- work flawlessly with some special settings like DLL overrides, other settings, or with third party software
  • Silver applications- They run with minor issues that do not affect typical usage, for example a game can run in single player, but not in multiplayer.
  • Bronze applications- These apps work, but have noticeable problems, even for regular use. They may be slower than they should be, have UI issues, or lack specific features.
  • Junk apps- The community has shown that these apps cannot be used with Wine. They may not install, may not start, or may start with so many errors that it is impossible to use.

Before installing Wine, we must decide if we want the latest stable version or the development version.

The stable version has fewer bugs and higher stability, but it supports fewer Windows applications. The development version offers better compatibility, but has more unresolved bugs.

If you are looking to have the most recent version of the stable Wine series, for now we have version 3.0.

Installing Wine on Ubuntu 18.04

To install it in our system they must open a terminal pressing 'CTRL + ALT + T' or from the desktop and run the following commands to install it.

The first step will be to enable the 32-bit architecture, that even if our system is 64 bits, performing this step saves us many problems that usually occur, for this we write on the terminal:

sudo dpkg --add-architecture i386

Now we must import the keys and add them to the system with this command:

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key

Done this now we are going to add the following repository to the systemAt the moment there is no repository for Ubuntu 18.04 LTS but we can use the repository of the previous version that will work perfectly, for this we write in the terminal:

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

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

Finally, We just have to write the following command to install Wine on our computers, this is to install the stable version of Wine 3.0:

sudo apt-get install --install-recommends winehq-stable

Now we also have access to the Wine development branch, which contains many more features and improvements than 3.0, the problem being a development version is that we run the risk of having some bugs with the execution.

Flash and Linux logos
Related article:
Dependencies unfulfilled

However if you want to install it, which is currently in progress is the Wine 3.7 version, for installation you just have to run:

sudo apt-get install --install-recommends winehq-devel

Done the installation You just have to run this command to verify that it was installed successfully and know what version you have installed:

wine --version

Where it was the stable version you will receive an answer like this:

wine-3.0

How to uninstall Wine from Ubuntu 18.04 LTS?

If you want to uninstall Wine from your system for whatever reason, sYou just have to run the following commands.

Uninstall the stable version:

sudo apt purge winehq-stable

sudo apt-get remove wine-stable

sudo apt-get autoremove

Uninstall the development version:

sudo apt purge winehq-devel

sudo apt-get remove wine-devel

sudo apt-get autoremove

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Jorge Ariel Utello said

    The only application I want from Windows or does wine support ...

  2.   jesus said

    in the second step I get syntactic error near the unexpected element `newline 'how do I solve it? Thank you

  3.   July said

    point of clarification, the command «sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/»Cannot be used in 18.04 since the address lacks a Bionic folder, for that the command sudo« apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ artful main '»which replaces it.
    I tried the first command and it produced a permanent repository error which I had to manually remove from Software and Updates

    1.    Daniel Pérez said

      It happened to me the same as July and I got this in Ubuntu 18.04:

      daniel @ daniel-X45C: ~ $ sudo apt-get update

      Ign: 1 http://dl.google.com/linux/chrome/deb stable InRelease
      Des: 2 http://dl.google.com/linux/chrome/deb stable Release [1 189 B]
      Des: 3 http://dl.google.com/linux/chrome/deb stable Release.gpg [819B]
      Des: 4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Obj: 5 http://mx.archive.ubuntu.com/ubuntu bionic InRelease
      Ign: 6 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
      Des: 7 http://mx.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
      Des: 8 https://dl.winehq.org/wine-builds/ubuntu artful InRelease [4 701 B]
      Des: 9 http://dl.google.com/linux/chrome/deb stable / main amd64 Packages [1 370 B]
      Err: 10 https://dl.winehq.org/wine-builds/ubuntu Bionic Release
      404 Not Found [IP: 151.101.196.69 443]
      Err: 8 https://dl.winehq.org/wine-builds/ubuntu artful InRelease
      The following signatures could not be verified because their public key is not available: NO_PUBKEY 818A435C5FCBF54A
      Obj: 11 http://mx.archive.ubuntu.com/ubuntu bionic-backports InRelease
      Des: 12 http://security.ubuntu.com/ubuntu bionic-security / main amd64 DEP-11 Metadata [204 B]
      Des: 13 http://mx.archive.ubuntu.com/ubuntu bionic-updates / main i386 Packages [58.8 kB]
      Des: 14 http://security.ubuntu.com/ubuntu bionic-security / universe amd64 DEP-11 Metadata [2 456 B]
      Des: 15 http://security.ubuntu.com/ubuntu bionic-security / universe DEP-11 64 × 64 Icons [29 B]
      Des: 16 http://mx.archive.ubuntu.com/ubuntu bionic-updates / main amd64 Packages [59.3 kB]
      Des: 17 http://mx.archive.ubuntu.com/ubuntu bionic-updates / main Translation-en [21.6 kB]
      Des: 18 http://mx.archive.ubuntu.com/ubuntu bionic-updates / main amd64 DEP-11 Metadata [9 092 B]
      Des: 19 http://mx.archive.ubuntu.com/ubuntu bionic-updates / main DEP-11 64 × 64 Icons [8 689 B]
      Des: 20 http://mx.archive.ubuntu.com/ubuntu bionic-updates / universe i386 Packages [28.2 kB]
      Des: 21 http://mx.archive.ubuntu.com/ubuntu bionic-updates / universe amd64 Packages [28.2 kB]
      Des: 22 http://mx.archive.ubuntu.com/ubuntu bionic-updates / universe amd64 DEP-11 Metadata [5 716 B]
      Des: 23 http://mx.archive.ubuntu.com/ubuntu bionic-updates / universe DEP-11 64 × 64 Icons [14.8 kB]
      Reading package list ... Done
      E: The repository "https://dl.winehq.org/wine-builds/ubuntu bionic Release" does not have a Publish file.
      N: You cannot update from a repository like this safely and therefore it is disabled by default.
      N: See the apt-secure (8) man page for details on creating repositories and configuring users.
      W: GPG error: https://dl.winehq.org/wine-builds/ubuntu artful InRelease: The following signatures could not be verified because their public key is not available: NO_PUBKEY 818A435C5FCBF54A
      E: The repository "https://dl.winehq.org/wine-builds/ubuntu artful InRelease" is not signed.
      N: You cannot update from a repository like this safely and therefore it is disabled by default.
      N: See the apt-secure (8) man page for details on creating repositories and configuring users.
      daniel @ daniel-X45C: ~ $

  4.   Swamp said

    Do you mean that the second repository works? The same thing happened to me, I had to remove the repository manually because it wouldn't let me make updates, the only thing I couldn't do was remove the WineHQ packages provider in Software and Updates in "Authentication". Do you know how I can remove it?

  5.   aiolos said

    Thanks for the data, the truth was very useful

  6.   David mansilla said

    Hello, I have followed all the steps and Wine does not appear in the list of installed programs, although if I put $ wine –version
    then yes it appears

    wine-3.13
    So I don't know what the problem is, I tried the stable version first, then this one, and I can't see it

  7.   pipo said

    look that I was looking for help for kali linux not for ubuntu>: v atte el pipo: v

  8.   Alfonso said

    Grace comrade @, but for the Windos program that I need, it asks me .NET Framework

    you have another ace up your sleeve, 😉

    Thank you.

  9.   Guillermo Velazquez Vargas said

    Thanks for the contribution I am new to linux please help me look install the wine as you mention and it was installed .. only as it was through the terminal I did not create any direct access I already found it with locate but I want a direct access help me favor

  10.   Diego said

    Thank you very much, it has helped me a lot. Greetings from Uruguay

  11.   GIGY said

    HELLO: THANK YOU VERY MUCH, AMI SERVED ME TOTAL THANKS YOU WERE INSTALLED.

  12.   Matias said

    Hello, good to ask if someone has happened to him that when we run a win2 software and we want to drag and drop a file, it is not possible, I explain: I already have the program installed, it is a music player (radioboss) with wine, I have the music in the discs and I want to find it, drag and drop it on the player and it won't let me. If anyone knows the solution, I thank you.

    And greetings from Mendoza, Argentina.

  13.   Manuel Beltran said

    when I want to install a windows program in wine I get the following message;

    fatal error
    installation ended prematurely because of an error

    Is there something I did wrong when installing wine or what failure will it be?

  14.   snowyshadows322 said

    This helped me thanks

  15.   Jose Vega said

    Goodnight

    I did the whole procedure but when you give it the code to install the result is:

    * the following packages have broken dependencies:
    winehq-stable: Depends: wine-stable (= 5.0.0 bionic)
    E: Problems could not be corrected, you have retained broken packages.

    1.    Diego said

      José, how's it going? I have had the same problem. Have you managed to fix it?

  16.   samfurted said

    WHAT E ACHIEVED YEHHHHHHHH YOLO # XD 🙂 😉

    1.    Jenia PS said

      How did you finally do it?

  17.   Thomas said

    After executing all the processes, the last command line says:

    wine: cannot find L »C: \\ windows \\ system32 \\ PROGRAM.exe»

    And Wine does not appear installed. Which may be?

  18.   kenshura said

    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt-add-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main '
    wget -nv https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key
    sudo apt-key add - <Release.key
    sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./ '
    sudo apt-get update
    sudo apt install --install-recommends winehq-stable

    fixed for LUBUNTU 18.04 LTS
    SOURCE: https://askubuntu.com/questions/1205550/cant-install-wine-on-ubuntu-actually-lubuntu-18-04

  19.   paul said

    Reading package list ... Done
    Creating dependency tree
    Reading the status information ... Done
    Do not can instal some pack. This may mean that
    you asked for an impossible situation or, if you are using the distribution
    unstable, that some required packages have not yet been created or are
    They have taken from "Incoming."
    The following information can help resolve the situation:

    The following packages have unmet dependencies:
    winehq-stable: Depends: wine-stable (= 5.0.0 ~ bionic)
    E: Problems could not be corrected, you have retained broken packages.
    why do I get this?

    1.    daniel said

      The same thing happens to me, have you been able to solve it?

    2.    Pablo said

      The exact same thing happened to me, I'll leave you the fix

      if you don't have aptitude install it with sudo apt-get aptitude and then sudo apt-get update

      finally install wine:

      sudo aptitude install winehq-stable

      then run this guide

      https://help.ubuntu.com/community/Wine - winecfg

  20.   shimmy said

    Hi, I have ubuntu mate 18.04 and I can't install wine, I get this:

    shimmy @ shimmy-Aspire-A315-33: ~ $ sudo apt-key add winehq.key
    OK
    shimmy @ shimmy-Aspire-A315-33: ~ $ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main '
    Obj: 1 http://es.archive.ubuntu.com/ubuntu bionic InRelease
    Obj: 2 http://ppa.launchpad.net/gregory-hainaut/pcsx2.official.ppa/ubuntu bionic InRelease
    Obj: 3 http://es.archive.ubuntu.com/ubuntu bionic-updates InRelease
    Ign: 4 https://dl.winehq.org/wine-builds/ubuntu great InRelease
    Obj: 5 https://brave-browser-apt-release.s3.brave.com bionic InRelease
    Obj: 6 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease
    Obj: 7 http://es.archive.ubuntu.com/ubuntu bionic-backports InRelease
    Obj: 8 http://security.ubuntu.com/ubuntu bionic-security InRelease
    Obj: 9 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
    Obj: 10 https://dl.winehq.org/wine-builds/ubuntu artful InRelease
    Obj: 11 http://ppa.launchpad.net/lah7/ubuntu-mate-colours/ubuntu bionic InRelease
    Err: 12 https://dl.winehq.org/wine-builds/ubuntu great release
    404 Not Found [IP: 151.101.134.217 443]
    Obj: 13 http://repository.spotify.com stable InRelease
    Reading package list ... Done
    E: The repository "https://dl.winehq.org/wine-builds/ubuntu great Release" does not have a Publish file.
    N: You cannot update from a repository like this safely and therefore it is disabled by default.
    N: See the apt-secure (8) man page for details on creating repositories and configuring users.

    How can I fix it?
    Thank you!

    1.    muflus said

      Hello! did you solve it ??
      the same happens to me…

  21.   CoffeeRobot said

    What command do I need to open wine from the terminal? I had used it before but I no longer remember it and it is not registered in the terminal. if someone knows the command could you help me?

  22.   cease said

    yusmar @ yusmar-Intel-powered-classmate-PC: ~ $ sudo apt-get install –install-recommends winehq-stable
    Reading package list ... Done
    Creating dependency tree
    Reading the status information ... Done
    Do not can instal some pack. This may mean that
    you asked for an impossible situation or, if you are using the distribution
    unstable, that some required packages have not yet been created or are
    They have taken from "Incoming."
    The following information can help resolve the situation:

    The following packages have unmet dependencies:
    winehq-stable: Depends: wine-stable (= 5.0.1 ~ bionic)
    E: Problems could not be corrected, you have retained broken packages.

    How can i correct it?

    1.    Roberto said

      Hi I tried 3 times and always mention, E: Couldn't fix problems, you have held broken packets. I installed Synaptic so I can remove them but it doesn't do it correctly. If you know of anything to overcome the problem, I will appreciate it.

  23.   JSTB said

    Is there a problem with installing Wine from the ubuntu software? excuse the ignorance, i'm new to linux.

  24.   official.salgado said

    Thanks <3
    I used your method in 2020 and it worked perfectly for me

  25.   Golden said

    I did everything the same and I skipped the error and continued the same and a lot of things are being downloaded to me.
    I hope it's not malicious at all.

    1.    lycos said

      Do you use the lts version? in case you have the flies installed on the 18.10, go to the 18.04 lts, ​​it has long-term support.
      Wine gave me a lot of drama when I was at 18.10, I went to 18.04 lts and it's a gem

  26.   Lucas Levaggi said

    but I get this look at E: dpkg execution was interrupted, you must manually execute "sudo dpkg –configure -a" to correct the problem

  27.   JOSEPH said

    THANK YOU SO MUCH

  28.   ghostgamer said

    I really liked it, I installed it and I am playing fnaf for that, bro, thanks

  29.   enzyipro said

    I get this The following packages have unfulfilled dependencies:
    winehq-stable: Depends: wine-stable (= 6.0.0 ~ bionic-1)
    E: Problems could not be corrected, you have retained broken packages.

  30.   Pablo said

    Hello I have finally been able to install Wine on my linux ubuntu 18.04

    I was getting the error depends on bionic etc when trying to install so I had to install it through aptitude with the command

    sudo aptitude install winehq-stable

    and it worked for me 😀

    then follow the steps of this guide

    https://help.ubuntu.com/community/Wine

    It was when I ran winecfg in the terminal that I was relieved to finally be able to enjoy it.

    Anyway, I just wanted to contribute this knowledge, greetings

  31.   juanpablo said

    I get wine 6.0 and in the app bar I don't get wine

    1.    Benjamin said

      You must right click, open with another application and choose wine 😀

  32.   rafacg said

    It is true that Wine is not perfect, but it helps me to run the programs I work with in Windows here in Linux.

  33.   Benjamin said

    needs a lot of things to function and you eat storage ...

  34.   hhewhehwh said

    yes i have wine on my windors pc