Wine 5.0 Stable Released. Wine team has announced the latest stable release 5.0 on Jan 21, 2020. Its source code is available for download from its official site. You may also use the package manager to install wine. Wine is an Open Source implementation of the Windows API and will always be free software. Approximately half of the source code is written by its volunteers, and remaining effort sponsored by commercial interests, especially CodeWeavers.

Advertisement

An official PPA is available to install Wine on Ubuntu systems. You just need to enable the PPA in your Ubuntu system and install latest Wine packages using apt-get.

winehq_logo_glass

This tutorial described you to how to install Wine on Ubuntu 18.04 LTS Linux systems.

Step 1: Setup PPA

First of all, If you are running with a 64-bit system enable 32-bit architecture. Also, install the key which was used to sign packages of wine.

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Use one of the following commands to enable the Wine apt repository in your system based on your operating system and version.

### On Ubuntu 19.10 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'

### On Ubuntu 18.04 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

### On Ubuntu 16.04 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'

Step 2: Install Wine on Ubuntu

Use below commands to install Wine packages from the apt repository. The --install-recommends option will install all the recommended packages by winehq stable versions on your Ubuntu system.

sudo apt update
sudo apt install --install-recommends winehq-stable

If you face unmet dependencies error during installation, use the following commands to install winehq using aptitude.

sudo apt install aptitude
sudo aptitude install winehq-stable

Step 3: Check Wine Version

Wine installation successfully completed. Use the following command to check the version of wine installed on your system.

wine --version

wine-8.0

How to Use Wine (Optional)?

To use wine we need to login to the GUI desktop of your Ubuntu system. After that Download a windows .exe file like PuTTY on your system and open it with Wine as below screenshot or use following command.

wine putty.exe

You can also launch by right click on the application and click Open With Wine Windows Program as shown in the below screenshot.

Conclusion

This tutorial helped you to install Wine on Ubuntu systems.

Share.

78 Comments

  1. thank.
    When stucks on window “Bezig met configureren van ttf-mscorefonts-installer” (Sorry for dutch)
    You can trie pressing Shift+Tab so is high lighted and enter that should work. it worked for me.

  2. Hi Rahul,

    I installed wine 5 as you said. But when I run the code(wine –version), it comes out the message: it looks like wine32-development is missing, you should install it.
    as root, please execute “apt-get install wine32-development”
    wine-3.6 (Ubuntu 3.6-1)

    I don’t know how to fix it.

    Thank you for your time!

    Kind Regards,
    Jianfang

  3. When I try to install it says:

    Couldn’t find any package whose name or description matched “winehq-stable”
    Unable to apply some actions, aborting

    I am new to Ubuntu 18.04 LTS any idea on how I can fix this?

  4. edwin carmell on

    RAHUL……you’re the best
    thank you , you saved my peace of mind ! and God bless you, always
    I one through a turmoil until I encounter this tutorial

  5. bruh when i enter last command (sudo aptitude install winehq-stable)
    the output is((( sudo: aptitude: command not found))
    now plzz tell what can i do

  6. Thank you so much! Every other guide I used to try and install Wine ended in a lot of broken dependencies messages.

  7. I tried it, but I got:
    sudo apt install –install-recommends winehq-stable
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    winehq-stable is already the newest version (3.0.4~xenial).

  8. no matter what i do it keeps saying this:

    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.
    wine-stable : Depends: wine-stable-amd64 (= 4.0.2~disco) but it is not going to be installed
    Depends: wine-stable-i386 (= 4.0.2~disco)
    E: Unable to correct problems, you have held broken packages.

  9. Installed fine! But, I am prompted to go through the “First startup wizard” and asked to input “Console application settings” fields of “Binary” and Argument.” I have no idea what to enter in these fields – any help would be greatly appreciated! Running Ubuntu 18.04 on a fresh install.

  10. jean carlos oliveira on

    muito bom cara, resolveu os meus problemas, outros tutoriais sempre davam erros, o seu funciona perfeitamente no 18.04LTS

  11. Faruk Rahman on

    Hi Rahul,
    Thanks for your tech post, I am newbie for ubuntu and trying to install WineHQ in my Ubuntu desktop and finally success to read your post. thanks

  12. prashant gautam on

    wine PangoBright.exe
    Command ‘wine’ not found, but can be installed with:

    sudo apt install wine-development
    sudo apt install wine-stable

    sudo apt install wine-stable
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    wine-stable is already the newest version (4.0~bionic).
    0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.

  13. Hi Rahul:

    Apparently winehq doesn’t like my computer.
    https://dl.winehq.org/wine-builds/Release.key is blocked to me.File ‘Release.key’ already there; not retrieving.
    sudo apt-get update
    E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
    E: The list of sources could not be read.

    Apparently something has changed with Winehq.

    But thanks for the tip.

  14. Hi Rahul,

    I went through the steps you explained,

    wine –version
    wine-3.0.1

    then

    wine putty.exe

    USER@USER-notbook32bit:~$ wine putty.exe

    I got 2 wine windows one of them asking me to install another software, then a second wine window asking me to install geco, which I did

    I got
    wine: configuration in ‘/home/USER/.wine’ has been updated.

    after that it was waiting too long then hit ^C

    wine: configuration in ‘/home/USER/.wine’ has been updated.
    ^C

    tried
    wine putty.exe

    got

    wine: cannot find L”C:\\windows\\system32\\putty.exe”

    Regards,
    Sal

  15. Did not work for me. Got to the Make Install and it said:
    $ sudo make install
    make: *** No rule to make target ‘install’. Stop.

    What am I suppose to add to this command?

  16. Hi Rahul, on search for a howto for installing Wine 2.0 (or above), I found Your article. Thank You very much for this article, It works great !

  17. Hi Rahul,
    Running Linux Mint 17.3 Rosa xfce 64-bit
    Windows 7 pro 64-bit in a dual boot

    I downloaded wine-1.8.1.tar.Bz2.si in folder winebld.
    The terminal is telling me it can’t find the wine download.
    sudo apt-get install wine1.8.1-amd64

    I am very green using Linux Mint so please understand.
    Old Windows user trying to dump windows and having a
    hard time of it.
    Regards,
    Jack Shankle
    djsjpsfl@gmail.com

Exit mobile version