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: 1 Average: 4]

report this ad

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

  • Carolina
    3 days 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.

    • 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
        1 min ago

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

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.
  • If my answer helped you, please consider supporting this site. Thanks :)