2 Ways to Install Wine on Linux Mint 19.1 (Terminal and GUI)

This tutorial is going to show you how to install Wine on Linux Mint 19.1 Tessa. Wine (which stands for Wine Is Not an Emulator) is a free and open-source compatibility layer that aims to run Windows programs on Linux and Unix platforms.

Install Wine on Linux Mint 19.1 From the Graphical User Interface (GUI)

Open software manager from the Mint menu.

linux mint winehq stable

Search wine in the software repository and select wine-stable.

linux mint 19 wine stable

Click the Install button to install wine on your system.

wine 4.0 linux mint 19

If the installer tells you that additional software are going to be installed, click the continue button. Then enter your password.

uinstall wine linux mint 19

Wine will be installed in /opt/wine-stable/ directory. After the installation is complete, we need to add /opt/wine-stable/bin/ to the user PATH. Run the following command to open the .profile file. Nano is a command line text editor. The ~ (tilde) represents your home directory.

nano ~/.profile

Press Ctrl+W, then Ctrl+V to move the cursor to the bottom. Add the following line at the end of the file.

export PATH="$PATH:/opt/wine-stable/bin"

To save the file, press Ctrl+O, then press Enter to confirm. To exit the file, press Ctrl+X. After that, log out and log back in for changes in .profile to take effect.

Install Wine on Linux Mint 19.1 in Terminal

Open up a terminal window by pressing the keyboard shortcut Ctrl+Alt+T, or by clicking the terminal icon in the tool bar.

wine linux mint 19

Then run the following command to check if you have a 32 bit or 64 bit system.

uname -p

If your system is 32 bit, you will see

x86

If your system is 64 bit, you will see

x86_64

install wine linux mint 19 64 bit

If your system is 64 bit, enable 32 bit architecture with the following command.

sudo dpkg --add-architecture i386

Next, run the following command to download the public key for the Wine repository.

wget -nc https://dl.winehq.org/wine-builds/winehq.key

And import this key to the system keyring.

sudo apt-key add winehq.key

Then, issue the following command to add Wine repository.

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

Update package repository cache and install Wine stable version.

sudo apt update

sudo apt install --install-recommends winehq-stable

Things to Do After Installing Wine

Before you download any Windows .exe file and use Wine to install Windows program, you need to run the Wine configuration program by issuing the following command in the terminal.

winecfg

It will create a .wine directory, also known as wine prefix or wine bottle, under you home directory. The virtual C drive will be created in this directory. Also this command will help you install Wine mono and Wine gecko package.

wine linux mint 19 terminal

After Wine Mono and Wine Gecko are installed, you can close the Wine configuration window.

wine configuration winecfg

Basic Steps of Installing Windows Programs on Linux with Wine

To install a Windows program on Linux with Wine, first you need to download the .exe installer file to your hard drive. Then open your file manager, right-click on that file and select Open with Wine Windows Program Loader in the context menu. After that, follow the install instructions.

install windows .exe on linux mint

If you can’t see this option in the context menu, you can open up a terminal window, use the cd command go to the directory that contains the .exe file and run the following command. Replace program-name with the real program name.

wine program-name.exe

install windows programs on LInux mint

Conclusion

I hope this article helped you install Wine on Linux Mint 19.1. As always, if you found this post useful, then subscribe to our free newsletter to get new tips and tricks 🙂

Rate this tutorial
[Total: 15 Average: 4.8]

30 Responses to “2 Ways to Install Wine on Linux Mint 19.1 (Terminal and GUI)

  • Carolina
    5 years ago

    Hello,

    I am grateful for the information posted on: 2 Ways to Install Wine on Linux Mint 19.1 (Terminal and GUI), I followed the instructions but I guess I did something wrong because Wine never got installed with either method, so I uninstalled it using the Software Manger (since I had installed with it).

    I don’t mind not being able to install it, I think I can carry on without Wine, but every time start the laptop after booting I get a message that says: “Error found when loading home/carolina/.profile: line 33: Ctrl+O: command not found. As a result the session will not be configured correctly. You should fix the problem as soon as feasible.”
    I think I created the problem when I was following the instructions “After the installation is complete, we need to add /opt/wine-stable/bin/ to the user PATH…”

    Can you please help me, by telling me how to fix the problem (that line 33 thing), so I can get my system working as before I tried the installation of Wine?

    Kind regards,

    Carolina M.

    PS: I have a 32bit dell laptop with Linux Mint 19.1, linux kernel 4.15.0-51-generic

    My intention is not to have this message posted for the public, but I didn’t find an email to write to, so my intention is for the administrator to read this.
    Thank you.

    • Xiao Guo An (Admin)
      5 years ago

      Hi, you have this problem because you didn’t edit the ~/.profile file correctly. If you don’t know how to use the nano command line text editor, you can use the xed graphical text editor instead. Run the following command to edit the file in xed.

      xed ~/.profile

      The end of the file should look like below.

       # set PATH so it includes user's private bin if it exists
      if [ -d "$HOME/bin" ] ; then
          PATH="$HOME/bin:$PATH"
      fi

      If you find any extra characters below these lines, delete them. Then save and close the file. This will restore the original content in the file.

      • Carolina
        5 years ago

        Problem solved, thank you for your help. Now the path corresponds to my profile.

        • 9-10-2019
          Wow! You made it easy!!
          I now able to load a few window games and office 2000….
          Linux is the bomb
          Thank you
          Doug

  • Hello, what is the difference between “wine-stable” and “winehq-stable”?

  • I had problems installing Wine this way. I found that you have to install the “Wine-Installer” just above and it will install the wine stable and the rest. When you use it the fist time it will configure itself and will prompt to install the Mono installer and two times the Gecko installer. After that all is OK. I installer it that way on three different computers.

    • I can concur that installing the “wine-installer” is much easier. I installed it. Then, I double clicked a Windows executable. Three clicks later and under of a couple of minutes and the program ran. I am running Linux Mint 19.1.

  • Thanks! Very helpful!

  • Mario Sinaí
    4 years ago

    Thank you very much! Greetings from Mexico! 🙂

  • Terminal installation worked great on Linux Mint 19.2 for me, thank you so much!

  • Hi!
    I tried following the steps using the terminal to install wine, but when I get to
    sudo apt update
    I get the following error
    Reading package lists… Done
    E: Could not get lock /var/lib/apt/lists/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock directory /var/lib/apt/lists/

    And if i try to run
    sudo apt install –install-recommends winehq-stable
    I get the same error

    That file does exist in my pc, so i dont know if i should do something manually to it, besides running the commands. What could I do to fix that?

    Thanks in advanced!
    Gis

    • Xiao Guo An (Admin)
      4 years ago

      This message

      E: Could not get lock /var/lib/apt/lists/lock – open (11: Resource temporarily unavailable)
      E: Unable to lock directory /var/lib/apt/lists/

      means that the OS is performing package upgrade in the background. You simply need to wait several minutes for it to finish.

      After that, you can use apt package manager to install software.

  • getting this error.

    The following packages have unmet dependencies:
    winehq-stable : Depends: wine-stable (= 4.0.3~disco)
    E: Unable to correct problems, you have held broken packages.

    • Jeremiah
      4 years ago

      Ya i am having the same problem someone please help!

  • Paul van Oss
    4 years ago

    Hello,
    thanks for the *very* clear instructions, but I could not solve a problem:

    paul@paul-HP:~$ 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 (= 4.0.3~bionic)
    E: Unable to correct problems, you have held broken packages.

    ** so I copy pasted and sudo apt the missing app…**

    paul@paul-HP:~$ sudo apt install wine-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:
    wine-stable : Depends: wine-stable-amd64 (= 4.0.3~bionic) but it is not going to be installed
    Depends: wine-stable-i386 (= 4.0.3~bionic)
    E: Unable to correct problems, you have held broken packages.
    ****
    **
    I don’t want to go down the rabbit hole, I don’t know what I am doing, maybe you know what I should do?
    **

    BTW. I’m running Linux Mint 19.3, cinnamon version 4.4.5

    Thanks a lot for the perfect instruction, even if it didn’t work.

  • Zeke Krahlin
    4 years ago

    I installed WINE via the package manager, including the additional files it requested. WINE did not show up in the start menu, and when I open a terminal and type “wine” plus [enter] I get this error:


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

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

    The ~./profile file already has this at the end:


    # set PATH so it includes user’s private bin if it exists
    if [ -d “$HOME/bin” ] ; then
    PATH=”$HOME/bin:$PATH”
    fi

    At this point, I have no idea what went wrong. Using Linux Mint 19.3.

  • User Kali
    4 years ago

    Thank You

  • This is wine-stable for LinuxMint/Ubuntu. For my ubuntu 19 this is codes work at normal.
    Thanks for afters this codes!!!

  • BTW, After install wine from Software Manager you need to run
    source ~/.profile – for be able to run winecfg

  • antonio
    4 years ago

    Hello All. I found this response which fixed my issue. I’m a novice user. There appears to be an issue with repository link and package dependencies that allows the package to full install and link correctly. Read through carefully as the small approach doesn’t work for every version of Linux.
    https://askubuntu.com/questions/1100351/broken-packages-fix-problem-for-wine

  • mostafa shaaban
    4 years ago

    I faced the follow issue: please support

    /Downloads$ wine apowermirror-setup.exe
    0009:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
    0009:err:winediag:load_gssapi_krb5 Failed to load libgssapi_krb5, Kerberos SSP support will not be available.
    0009:fixme:win:EnumDisplayDevicesW ((null),0,0x33f804,0x00000000), stub!
    0009:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
    0009:err:wgl:init_opengl OpenGL support is disabled.
    0009:fixme:kernelbase:AppPolicyGetProcessTerminationMethod 0xfffffffa, 0x33fe3c

  • None of these approaches worked for me and aptitude command only came as a soul saver !

    sudo aptitude -f install wine-installer

    unlike the regular apt-install which keeps complaining of broken dependencies and endless dependency missing errors, aptitude intelligently figures out all dependencies be it broken or cyclic, it won’t give up so easily and comes up with recommendation and finishes the job in perfection !

  • Xenhysics
    4 years ago

    Editing the actual profile file was a disaster, because it somehow corrupted something and now every time the OS boots it asks me to put in my password, and if i put in the correct one then the screen goes black for a couple of seconds and then asks me for the password AGAIN, and now i can’t log in.

  • I successfully installed wine but when I open .exe file it says there must be Drive C on your hardware. How can I move on? Help me

  • I installed wine but when i run bluestacks installer first there screen shows extracting when extracting 100 % completed in windows a another dailog box open and there we select install path and installing procces happen ut here when 100% it it closes and another dialog box did open

  • Charles Downing
    3 years ago

    I have tried installing Wine on my laptop running Linux Mint Cinnamon, but each time it looks like it is installing but ends up just setting there and never ending. Can you help

  • Used GUI Installer
    Using xed my 19.3 had double (don’t know why)
    ———-
    # set PATH so it includes user’s private bin if it exists
    if [ -d “$HOME/bin” ] ; then
    PATH=”$HOME/bin:$PATH”
    fi
    ———–
    Deleted end of file as instructed from .profile
    then added command line
    ———–
    export PATH=”$PATH:/opt/wine-stable/bin”
    ———–
    everything finally ran smooth errors gone

  • Wine Installer is not on Software Manager anymore, where can I find wine installer at so I can install it on my linux mint pc?

  • Or even who has Wine Installer before it was removed from Linux Mint Software Manager?

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here