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


If your system is 64 bit, you will see


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.


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


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: 8 Average: 4.9]

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

  • Carolina
    6 months ago


    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.

    • 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

      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
        6 months 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

  • 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 months 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!

    • 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
      2 mins ago

      Ya i am having the same problem someone please help!

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.