How to Install Wine on Debian, Ubuntu and Linux Mint

Wine is an open-source, free and easy-to-use program that enables Linux users to run Windows-based applications and games on Unix-like operating systems. Wine is a compatibility layer for installing almost all versions of Windows programs.

Wine 7.0 is finally released and it comes with an array of numerous enhancements and a total of 40 bug fixes. You can find out all the new features and changelog of this new release on the Wine announcement project page.

This article describes a few easy steps to install the latest stable version of Wine 7.0 under Debian 11/10, Ubuntu 22.04-18.04, and Linux Mint 20-19 systems, and also we will see how to configure wine, install windows software, and Un-install.

[ You might also like: How to Install Wine on RHEL-based Linux Distributions ]

Installation of Wine on Debian, Ubuntu, and Linux Mint

If you are looking to have the most recent version of the Wine 7.0 stable series, you have to use a new Wine repository PPA which offers both development versions and stable versions of Wine for Debian, Ubuntu, and Linux Mint.

Install Wine on Ubuntu and Linux Mint

To install Wine 7.0 on Ubuntu and Linux Mint, open the terminal by hitting 'CTRL + ALT + T‘ from the desktop and run the following commands to install it:

$ sudo dpkg --add-architecture i386    [Enable 32-bit Arch]
$ sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Add the repository:

For this version: Use this command:
Ubuntu 22.04 sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Ubuntu 21.10 sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/impish/winehq-impish.sources
Ubuntu 20.04
Linux Mint 20.x
sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
Ubuntu 18.04
Linux Mint 19.x
sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources

Update packages and then install one of the following packages:

For this version: Use this command:
Stable branch sudo apt install --install-recommends winehq-stable
Development branch sudo apt install --install-recommends winehq-devel
Staging branch sudo apt install --install-recommends winehq-staging

Install Wine on Debian

To install Wine on Debian.

$ sudo dpkg --add-architecture i386
$ sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Download the WineHQ sources file:

For this version: Use this command:
Debian 11 (Bullseye) sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
Debian 10 (Buster) sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/buster/winehq-buster.sources

Now update the package repository database and install Wine as shown.

For this version: Use this command:
Stable branch sudo apt install --install-recommends winehq-stable
Development branch sudo apt install --install-recommends winehq-devel
Staging branch sudo apt install --install-recommends winehq-staging

Installing Wine Using Source Code on Debian, Ubuntu & Mint

Another way to get the most recent stable version of Wine (i.e. 7.0 as of now), is to build wine from source tarball using the following commands.

$ wget https://dl.winehq.org/wine/source/7.0/wine-7.0.tar.xz
$ tar -xvf wine-7.0.tar.xz
$ cd wine-7.0/
$ sudo ./configure 
$ sudo ./configure --enable-win64   [For 64-bit platform]
$ sudo make && sudo make install

How to Use Wine to Run Windows Apps & Games

To demonstrate how we can run Windows program using wine, we have downloaded Rufus .exe file from the official Rufus download page.

To run Windows Rufus executable file, run the command:

$ wine rufus-3.19.exe
Run Windows Program in Ubuntu
Run Windows Program in Ubuntu

Once you run the program, Wine will start creating a configuration file in the user’s home directory, in this case, ~/.wine as shown.

Wine Configuration
Wine Configuration

During Wine configuration, it will as you to install the wine-mono-package which is required by .NET applications, click the ‘Install’ button.

Wine Mono Installer
Wine Mono Installer

The download will soon start.

Downloading Wine Mono Installer
Downloading Wine Mono Installer

Additionally, it will also ask you to install the Gecko package which is required by applications embedding HTML.

Wine Gecko Installer
Wine Gecko Installer

Choose whether you want to check for application updates from time to time.

Rufus Update Policy
Rufus Update Policy

Finally, the Rufus will be displayed as shown.

Rufus Programe Running on Ubuntu
Rufus Program Running on Ubuntu

We have successfully installed Wine on Debian, Ubuntu, and Linux Mint and shown you a preview of how you can run Windows applications in a Linux environment.

Uninstalling Wine in Debian, Ubuntu, and Linux Mint

If you are not happy with the wine program, you can remove it completely by using the following command.

$ sudo apt purge winehq-stable

You can also download the Wine source package for other Linux distributions from the wine download page.

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

157 thoughts on “How to Install Wine on Debian, Ubuntu and Linux Mint”

  1. The included commands like "sudo apt install --install-recommends winehq-stable" seem to be not quite correct, as ‘winehq‘ does not exist. I used ‘wine-stable‘ as the target. Ubuntu 22.04.1

    Reply
  2. I’m a noob to Linux but am researching different distros for migration. I am running a 1-8400 chip at 2.81 GHz w/ 12 Gig of Ram. The four current Linux distros I have in a VM are Mint 20.1, RoboLinux 12.11, Manjaro 21.1.5, and MX Linux 19.4.1.

    MX seems to be the best fit, but I can’t seem to expand the workspace beyond its initial 6×8. This is not an issue with any of the other distros I’ve run. I’ve searched some of the forums, gone through the manual, and passed the conky lists but I’m still at a 6×8 on a 23″ monitor. What am I missing?

    Reply
  3. Would Wine 6.0 run a DOS program on a Raspberry Pi 4B, 64 bit, running Ubuntu-MATE 20.04?

    Would I just need to download the Ubuntu version for that, or does the Ubuntu download work for all the flavors?

    Reply
  4. I’m a new user of Linux and your screen-shop explaining installation instructions are very useful. Thank you.

    Reply
  5. Since I’m a Windows user, these things become confusing sometimes. But thank you for the explanation, currently trying this article way to do it.

    Reply
  6. I’m still a little confused when installing wine from version 3.0 to version 4.0, I’m a little overwhelmed and often fails, is there a solution

    Reply
  7. Hey, I used the commands given in this article to install Wine and this worked for me in Linux Mint 19.1, but it later also gave an annoying problem with the faulty release key, according to updates.

    Reply
  8. Hi,

    I use Debian 9.7 and try install wine4.0 but I get some errors, like:

    Err: 4 https://dl.winehq.org/wine-builds/debian jessie InRelease
    The following signatures could not be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
    Err: 6 https://dl.winehq.org/wine-builds/debian stretch InRelease
    The following signatures could not be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
    Err: 7 https://dl.winehq.org/wine-builds/debian buster InRelease
    The following signatures could not be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F

    If I use:

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

    I get:

    apt-key add winehq.key
    key 76F1A20FF987672F:
    1 signature not checked due to a missing key
    

    I try:

    apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 76F1A20FF987672F
    

    And

    key 76F1A20FF987672F:
    1 signature not checked due to a missing key
    gpg: key 76F1A20FF987672F: public key “WineHQ packages ” imported
    gpg: Total number processed: 1
    gpg: imported: 1

    But the command not finish…

    Please, any help…

    Thanks

    André

    Reply
  9. I totally agree with: Enrique Carlos Toomey message @ January 5, 2019 at 7:34 pm

    I used the commands given in this article to install Wine and this worked for me in Linux Mint 19.1, but it later also gave an annoying problem with the faulty release key, according to updates. The key is changed per 2018-12-19 as on the following page with the original info; https://wiki.winehq.org/Ubuntu > Please update this article!

    Reply
  10. I needed to add the following key for apt to be able to find winehq:

    $ wget -nc https://dl.winehq.org/wine-builds/winehq.key
    $ sudo apt-key add winehq.key
    
    Reply
  11. I tried to install Wine on Debian 9.6 and it bombed here when I tried to add the release key:

    gpg: WARNING: nothing exported
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0

    Reply
  12. This worked on my Mint 18.2 but on my laptop (18.0) Wine 3 was installed but there was no Wine or Wine Config in the menus – somewhat annoying for a linux Newbie!

    Reply
  13. Followed your terminal ‘Installation of Wine 3.0″ on Lubuntu18.04 All good.

    Wine auto suggested downloads, Wine Mono and Wine Gecko. All Successful.

    Cheers. Wine running.
    Thanks

    Reply
  14. In order to get extra functionality, more packages should be installed. The ‘configure‘ order retrieve the information needed. For Debian (testing), some of them (those that were missing in my system) can be installed with:

    sudo aptitude install libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libxcomposite-dev libosmesa-dev libpcap0.8-dev libdbus-1-dev libncurses-dev libsane-dev libv4l-dev libgphoto2-dev liblcms2-dev libpulse-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev libudev-dev libcapi20-dev libfontconfig1-dev libgsm1-dev libkrb5-dev libtiff-dev libmpg123-dev libopenal-dev libldap-dev libgettextpo-dev gettext libxrender-dev libxml2-dev libxslt1-dev libgnutls28-dev libjpeg-dev libjpeg62-turbo-dev

    I hope that this help someone.

    Reply
  15. I did the install to change to 3.0 as listed above without any problems or error message. But when I run wine –version it says “wine-2.04”. I was at “wine-2.8” before I started.

    Reply
    • @Ralph,

      Sorry to hear that, but on which Linux distribution have you tried? Have you added correct PPA wine repository to your distribution?

      Reply
  16. Hi, Very good guide very well explained.

    I have a problem though. I cannot find wine in the software menu.

    I have mint 18.3 Sylvia freshly installed.

    How do i connect it to the menu? For using it without command line?

    Last thing wouldn’t I need also gecko?

    Thanks..

    Reply
    • @Angelo,

      To add “wine” to software menu, first go to System → Preferences → Main Menu and make you sure there is item Wine is checked to show in the Menu item.

      The official wine instructions haven’t mentioned about Gecko package, so I don’t thing it required now..

      Reply
  17. I attempted to install Wine using your instructions at: https://www.tecmint.com/install-wine-on-ubuntu-and-linux-mint/ on a fresh install of Linux Mint Mate 18.2, but:

    jb@Acer-jb ~ $ dpkg –add-architecture i386
    dpkg: error: unable to create new file ‘/var/lib/dpkg/arch-new’: Permission denied

    I wonder if I should have tried earlier in the installation when I was a “superuser” but didn’t have Internet.

    The latest stable version seems to be 2.0.2, though the development versions are at least up to 2.13.

    I suppose that if Mint is designed to be friendly to Windows users, a particular interpretation of that would *not* make it easy to install Wine, because Windows doesn’t have Wine !

    Reply
    • @Berry,

      You must use sudo to run the following command to enable 32-bit architecture for 64-bit.

      $ sudo dpkg --add-architecture i386 
      
      Reply
  18. I just tried installing Wine’s current version and after entering all of the code precisely how it was typed here, it said “Unable to locate package winehq-stable”.

    Reply
    • @Ron,

      Have you executed these following commands correctly?

      $ sudo dpkg --add-architecture i386  [if you’re running a 64-bit version]
      $ sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
      $ wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key
      $ sudo apt update && sudo apt install winehq-stable
      
      Reply
  19. I did the following in Terminal:

    $ wine SophieSew_SetUp_1_13B42.exe
    

    and it opened. I want to open Wilcom but it is a .zip file. How do I unzip it?

    Clicking left or right button does nothing.

    I Tried ~$ wine WilcomEmbroideryStudio – ServicePack e3.0Z (Update 6) 19 Sep 2016 (345-7594).zip
    Thanks

    Reply
  20. Hi, I am new to Ubuntu and the terminal is greek to me. I installed Wine 2.0. Every thing installed and also winetricks.

    I then entered “wine notepad.exe” and a blank Notepad page open.

    Pressing Ctrl + H the .wine file is there.

    Now I still can not load window programs.

    What am I doing wrong?

    Thank You
    Pieter

    Reply
  21. When installing Wine on Ubuntu 16.04 a message pops up with “configure ttf-mscorefonts-installer” but even after scrolling down, I can’t do anything. I’ve tried clicking the OK button, but it doesn’t work. Any other button doesn’t work as well. What should I do?

    Screenshot: http://codenamenestfiles.c0.pl/error.png

    Reply
  22. ”sudo apt remove wine* && sudo apt autoremove’ destroyed mint. I got a warning in the terminal but these instructions are obviously not for mint. I mean even ‘sudo apt-get update’ is not recommended for mint.

    If you are going to advertise that these instructions are for mint you dam well better make sure the instructions don’t destroy the system.

    Reply
    • @Lucifer,

      I tried numerous times installing wine on my Linux Mint 17 box an these instructions were checked in Ubuntu and Linux Mint distributions, before publishing online these installation instructions..

      Reply
  23. Great information on WINE installation – well laid out and succinct
    However, the floating SHARE social media images are EXTREMELY annoying!!

    Reply
  24. Thanx Bro …. It’s working nicely .. Before reading this article I faced many problems while installing it. Really helped a lot. Thanks a lot

    Reply
  25. I installed Wine using terminal in linux mint 17.1. But when i try too run the wine app it keeps saying “Wineserver not found”. What is the problem if any one have the solution for this problem it will be nice of you to help….

    Reply
    • Having had the same problems after first trying to install the Wine (Version: 1:1.8.0-0ubuntu1) offered by the distribution I am (LinuxMint 17.3) using, I then did my level best to completely remove all vestiges of that installation.

      Then, recently, I happened upon an announcement that a new version of Wine had been released, Wine 1.8.5, and became hopeful that it might work well due to some of its listed improvements. I downloaded it and installed it whereby I each time agreed to let the installation programs download and install whatever they reported as being necessary to that Wine version’s proper functioning but not yet installed.

      Wish me luck. So far all seems to be functioning well (i.e. winecfg etc. Wine functions appear all to be performing normally). I have, however, yet to install any programs under Wine other than wordpad.exe and iexplorer.exe, both of which function quite normally, I am pleased to say. P.S. I recommend http://www.wikihow.com/Use-Wine-on-Linux which I found to be also very helpful.

      Reply
      • I also found very helpful https://help.ubuntu.com/community/Wine

        P.S. I am still trying to understand how to properly use symbolic links. winecfg already appears to function properly, nevertheless, when I run it in a terminal then the error message appears.

         
        p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
        
        Reply
        • @Robert,

          I have updated the installation instructions for Wine 1.8.5 recent release, hope it will fix all your Wine problems..

          Reply
  26. Wine not install using above commands. Only show winetricks, but when use $ sudo winetricks, it says “wineserver not found!”

    Reply
  27. Thanks a million, Ravi.
    Just installed IE8 by following your superb instructions – first ever Wine install, first ever time therefore with IE in LInux. Desperately needed for CSS tweaks to a project, though have to admit that Winetricks interface to IE won’t fool too many people. Great tute, keep up the great work!!!!

    Reply
  28. Hello,
    I have followed the installation process of Wine as follows :
    $ sudo add-apt-repository ppa:ubuntu-wine/ppa
    $ sudo apt-get update
    $ sudo apt-get install wine1.6
    $ sudo apt-get install winetricks

    I got stuck after the following step : sudo apt-get install wine1.6

    The install process went ok ; then I have a wysiwyg screen “Package configuration”

    Configuring ttf-mscorefonts-installer
    The “terminal screen” is blocked.

    If I enter the next command in another terminal, I got an error message :

    E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    I cannot go further.
    Could anyone help on this matter ?

    Thanks

    Reply
  29. This should be called Frankenware. I’m running Mint 16 and can’t install wine. I cut and paste the commands into the terminal and it keeps asking me for my damned password. I put my password in hit enter (enter, right or is it shift / tab for linux) and it asks again and again and again. I KNOW MY PASSWORD !

    Why don’t you just have an AUTOMATIC installer ? Q. Would you like to install this program ? Click on yes. ooooooooh, that would be too easy, right ?

    Why do I need Wine ? Because I’ve been using Windozzz for years and years and I’m old now, don’t have much money and don’t want to do the “LEARN MORE” thing. Besides, I have a lot of Windows things that I have on storage devices that I still need…. oops, sorry I meant DEV. Shoot me.

    Okay, Linux is different. It’s okay to be different (sort of like people) unless you’re a danger because you’re mentally ill. That’s why there are jails and mental institutions. This Frankenware IS like something deranged. I guess the Linux people are mostly younger and feel like some elite group. Why doesn’t the linux crowd lighten up. It’s okay to be a bit more like Windows. Linux needs a LOT of work and we can’t help you because we’re just trying to pay the bills and take care of everyday problems. Me and mine,

    Pat :-(

    Reply
    • Hey Pat,

      Good luck with your issues mate. I think if you need urgent help, you should post the issues on places where thousands of experts give advice quickly, check out these two places. As always, before you post, do a search first.

      serverfault.com
      askubuntu.com

      Also search for IRC support channels for your linux (what is it btw).

      Feel free to reply to me if I can help further.

      Cheers.

      Reply
  30. Hi
    Im having trouble with the first section of this article, as when I try to install wine 1.6.2. i get stopped by the error”Package wine has no installation candidate”
    I dont know what to do and i would like to get wine up as soon as possible.
    thanks,
    SwagMuffinz

    Reply
  31. I try the “sudo add-apt-repository ppa:ubuntu-wine/ppa” command but i get the reponse that add-apt-repository is not a command plz help.

    Reply
    • It seems you’ve installed Ubuntu minimal installation and seems that add-apt-repository not installed. You need to install python softwares to get it.

      $ sudo apt-get install python-software-properties
      
      Reply
  32. Any possible way on lan which connecting to other computer when having network connection on it…

    i.e sharing internet from my desktop which have reliance data card

    Reply
    • Yes that will do! you can share internet from other computer, but make sure your system is connected to internet before it downloads all required packages for Wine.

      Reply
  33. I Dnt hav network connection.

    then how can i do these steps.

    tell the steps clearly how to install wine in offline..

    Thanks in advance..

    Reply
    • No you can’t install Wine in offline mode, your system must have a active connection to fetch all the required packages before installing Wine on the system. So, basically no such a way…….

      Reply
  34. when i was installing wine 7
    i got this massage on terminal screen
    i.e. 386 1:1.7.16-0ubuntu1~saucy1 [26.3 MB]
    Get:4 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main wine1.7 amd64 1:1.7.16-0ubuntu1~saucy1 [2,478 kB]
    Get:5 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main wine-gecko2.24 amd64 2.24-0ubuntu1~ppa1 [23.5 MB]
    Err http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main wine-gecko2.24 amd64 2.24-0ubuntu1~ppa1
    Connection failed
    Get:6 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main wine-gecko2.24 i386 2.24-0ubuntu1~ppa1 [22.3 MB]
    Get:7 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main wine-gecko2.24 i386 2.24-0ubuntu1~ppa1 [22.3 MB]
    Get:8 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main wine-mono4.5.2 all 4.5.2-0ubuntu1~ppa1 [52.0 MB]
    Fetched 130 MB in 2h 51min 24s (12.6 kB/s)
    E: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/pool/main/w/wine-gecko2.24/wine-gecko2.24_2.24-0ubuntu1~ppa1_amd64.deb Connection failed

    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
    aditya@aditya-Studio-1555:~$

    how to solve it
    so i can install internet explorer,office

    Reply
    • I think it’s your network issue, the packages not able to fetch due to connection failure. Check your internet connection.

      Reply
  35. Always it shows me like this…………

    E: Could not open lock file /var/lib/dpkg/lock – open (2: No such file or directory)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

    Reply
  36. I have Wine 1.4 in use on Linux Mint-13, can I install a newer version of Wine along side that, or do I have to first remove the old version?

    Reply
    • Yes, you can install newer version in different directory, but this could be possible only if you compile it from source.

      Reply
  37. Hello Mr.Ravi Thanks for your support. I installed wine1.6 by using below 3 commands without any errors.

    $ sudo add-apt-repository ppa:ubuntu-wine/ppa
    $ sudo apt-get update
    $ sudo apt-get install wine1.6

    Then I tried to install winetricks by using this command $ sudo apt-get install winetricks .

    E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    But it gives me error like this. So what should I do. Hope I’ll get response from you as soon as possible. Thanks

    Reply
  38. Thanks Ravi, this allowed me to install wine 1.7 on ubuntu 13, and then install python (winecfg -> use a windows newer than Vista and use 32-bit python .msi file)

    Reply
  39. Tried to use your suggestion for installing Wine on Linux Mint 15. Here is the response on the terminal.

    The following packages have unmet dependencies:
    wine1.6 : Depends: wine1.6-i386 (= 1:1.6.1-0ubuntu1~ppa1~precise1)
    Recommends: ttf-mscorefonts-installer but it is not installable
    Recommends: fonts-horai-umefont but it is not installable
    Recommends: fonts-unfonts-core but it is not installable
    E: Unable to correct problems, you have held broken packages.

    This way above my understanding. Is there a fix? Thanks for your time.

    Reply
  40. when i type in terminal
    $ sudo winetricks

    then wine says

    wine: /home/vidhya/.wine is not owned by you

    can u solve this, i’m unable to start any windows program !

    kindly help me

    Reply
  41. Hi, thanks for the instructions but I’m having an issue finalizing the installation. After running “wine notepad.exe” for v1.6 I get the following:

    Warning: memory above 0x8000000 doesn’t seem to be accessible.
    Wine requires a 3G/1G user/kernel memory split to work properly.

    I’ve seen this error come up on discussion boards years ago but nothing recent. This is my first time using ChrUbuntu and I would consider myself a newbie when it comes to things like this.

    Reply
  42. # sudo add-apt-repository ppa:ubuntu-wine/ppa
    when I type above cmd
    it’ll be show sudo: add-apt-repository: command not found

    what I do??

    Reply
  43. i have ubuntu13.04 and at downloading is this —– : sha1sum mismatch! Rename /tmp/guest-aIkuB1/.cache/winetricks/flash/install_flash_player_ax.exe and try again.what commands to give it for fixing?thank you.

    Reply
  44. Hi

    I am new to Linux and am using Ubuntu. I went on the WINE website to get Wine but when i click on the link it tells me to choose what program to lunch the installation. I went to Ubuntu Software center and searched for wine, got many results, chose one and told it to install. I left the room and when i came back either the download had finished or failed i don’t know. i tried looking in installed applications but could not find it. i then went back to ubuntu software center and tried to search for wine but it did not pop up. What do i do?

    Reply
  45. Doesn’t work ………

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    You are about to add the following PPA to your system:
    Welcome to the Wine Team PPA. Here you can get the latest available Wine betas for every supported version of Ubuntu. This PPA is managed by Scott Ritchie and Maarten Lankhorst.
    More info: https://launchpad.net/~ubuntu-wine/+archive/ppa
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 551, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 99, in run
    self.add_ppa_signing_key(self.ppa_path)
    File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 132, in add_ppa_signing_key
    tmp_keyring_dir = tempfile.mkdtemp()
    File “/usr/lib/python2.7/tempfile.py”, line 322, in mkdtemp
    name = names.next()
    File “/usr/lib/python2.7/tempfile.py”, line 141, in next
    letters = [choose(c) for dummy in “123456”]
    File “/usr/lib/python2.7/random.py”, line 274, in choice
    return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty
    ValueError: cannot convert float NaN to integer

    Reply
  46. hi!
    pleas help me.

    morteza@ubuntu:~$ sudo apt-get install aircrack-ng
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following extra packages will be installed:
    iw
    The following NEW packages will be installed:
    aircrack-ng iw
    0 upgraded, 2 newly installed, 0 to remove and 70 not upgraded.
    E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock the download directory
    morteza@ubuntu:~$

    Reply
    • Delete these two lock file with the following commands:

      # sudo rm /var/lib/apt/lists/lock
      # sudo rm /var/cache/apt/archives/lock
      

      After that, try running command again..

      Reply
  47. Hello there,
    i am in search of English dictionary that works on Ubuntu. when surfing the web, I came across an idea that says you can use Wine to open windows software. I have Cambridge Advanced Learner’s Dictionary installed on Widows. Can any body help me how to use wine to open this dictionary.

    Reply
  48. Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package wine1.7
    E: Couldn’t find any package by regex ‘wine1.7’

    Reply
    • Have you executed below command correctly?

      $ sudo add-apt-repository ppa:ubuntu-wine/ppa
      $ sudo apt-get update
      $ sudo apt-get install wine1.7
      
      Reply
      • I found this thread useful, but in Ubuntu 11.10, i had to use a space between “wine” and “1.6” in your instructions “$ sudo apt-get install wine1.6”. Without the space, I received a repeated error similar to “E: Couldn’t find any package by regex ‘wine1.6′”

        And thank you for the post. I think in the 15 years I’ve thought about installing Wine, this is the closest I have been to doing it!

        Reply
  49. Hi!
    Ubuntu as my home computer, I’m not online and off-line installation.
    After copying the files, how do I install?
    If i get the installation files from another computer

    Reply
    • Simply issue below command to install them all at once.

      $ sudo dpkg -i *.deb
      

      Once these required packages installed, you can follow the article.

      Reply
    • Dear Ady,

      No, it’s not possible to install offline, because Wine requires lots of other dependency modules that will install during online.

      Reply
  50. When I run winetricks with sudo , I get the below error:

    wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string

    Why can’t it be run with sudo?

    Reply
  51. Hi Ravi

    I installed 3 different versions of the internet explorer 6,7 and 8. But I don’t see seperate programs for these 3 browsers under my home directory

    When I run ‘ls’ from the below directory, I get the output as shown. There is only one exe file for IE. It corresponds to which version?

    ravbholua@ravbholua-Aspire-5315:~/.wine/drive_c/Program Files/Internet Explorer$ ls

    custsat.dll en-US hmmapi.dll iedw.exe ieproxy.dll iexplore.exe SIGNUP

    Reply
  52. Ravi,

    Attempting to install wine 1.7.3 on Ubuntu 13.04 as user root. apt-get install shows that wine1.7, wine1.7-amd64, wine1.7-dbg, and wine1.7-dev but I still receive this error from apt-get install:

    15:14:45:–> apt-get install wine
    wine1.6 wine1.7 winefish wine-gecko2.21
    wine1.6-amd64 wine1.7-amd64 wine-gecko1.4 wine-gecko2.24

    wac@xapted:[~/downloads/corsair/k50keyboard]
    15:14:45:–> apt-get install wine1.7
    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:
    wine1.7 : Depends: wine1.7-amd64 (= 1.7.4-0ubuntu4) but it is not going to be installed
    Depends: wine1.7-i386 (= 1.7.4-0ubuntu4)
    E: Unable to correct problems, you have held broken packages.

    Do you have any suggestions?
    (Nice article, by the way, simple and to the point)
    -wc

    Reply
    • Got the same error on LinuxMint15,
      to fix it I had to purge wine1.6
      sudo apt-get purge wineX.X
      (where x.x is the vertion you have already installed in my case it was wine1.6)
      once uninstalled, retry from the beginning.

      Reply
  53. Hi Ravi

    I followed the way you told but when I am running http://www.kotak.com, the site is opening but soon an error message is displayed: internet explorer has caused an error and will be closed. What may be the issue? I am using Ubuntu13.04. I am able to surf other sites like youtube, rediffmail.com, google.com,etc. But the issue comes when opening kotak.com
    I think I should contact kotak bank.

    My wine version : wine-1.7.3

    Also when I am running :
    wine ‘/home/ravbholua/.wine/drive_c/Program Files/Internet Explorer/iexplore.exe’
    in the terminal many messages are getting displayed continously.

    Also when I run : sudo wine ‘C:\Program Files\Internet Explorer\iexplore’wine: it’s messaging : ‘/home/ravbholua/.wine is not owned by you’

    Can’t it be run with sudo!!!!

    Reply
      • Hi Ravi
        I 1st installed ie8 and got error as mentioned above: ‘internet explorer has caused an error and will be closed’

        Then I deleted the folder and installed ie7. Now, when I run, I don’t get any error message but the page isn’t getting displayed properly / completely. In http://www.kotak.com (bank site) home page I am not getting ‘login’ button, so can’t proceed ahead. Tried many times but to no avail. Also with ie7, when I open moneycontrol.com it messages that the page can’t be displayed properly.

        I called kotak bank customer care to ask whether ie8 is compatible and she says yes, it should work.

        Regarding your other question, with wine I have used only ie7 and ie8 browser. As such in Ubuntu13.04 I have been using flawlessly firefox which runs perfect.

        Also, when I install browser using winetricks and select “install a windows DLL or component”, I see by default a few other options are also selected. Once I deselected all these options and selected only ie7, then the folder ‘internet explorer’ failed to create. Then next time, I kept all these default options selected and proceeded and it installed.

        Reply
  54. Also, one more thing I would like to point: if you don’t need wine as you don’t want to use it again, you can use the purge option rather than remove as purge would delete all the configuration files even also.

    Reply
  55. Hi
    Seems to be a very good what you posted. I would try shortly. But one thing: you told in the end a command to delete internet explorer directory. Will it deleted the executable as well as other related files for the internet explorer? In other words, when a program is installed all the related files and folders would be installed under one directory, say for example: here under internet explorer directory.
    This I as as there is difference between installing in Linux as compared to Windows. In linux when you install , the related files are installed in different different folders and not only one. But I think in Windows all the related files and folders are installed under one directory and so to remove the application (in case you don’t need any more) simply you can delete the respective directory. I hope what I wrote here is right! Please confirm, Ravi.

    Reply
    • Yes! that right in Linux files are installed under different location, if you aware of those directories you can remove manually any application in Linux. But in Wine case, all files are installed under User’s Home “.wine” directory. If you go inside this folder you will see a folder called “Program Files” similar to Windows style. You can manually remove the folder from hereon.

      Reply
  56. On screens there is no use of sudo, but in textual examples sudo is included as a part of command which must be typed by user. In general tutorial is helpful but also a little bit inconsistent.

    Reply
    • Hi
      Based on your comment, I tried to run the commands without sudo but my system (ubuntu13.04) didn’t proceed and required a root to run. When I ran the below:

      $ add-apt-repository ppa:ubuntu-wine/ppa

      $ apt-get install wine1.7

      it denied running without root and so I need to run as root only.

      How you say to run without root!!!!

      Reply
      • You should run command using sudo command or as a root. If you use sudo command you should also know the root password. If you don’t have root credentials then it’s not possible to install.

        Reply
        • I have been using Wine for years and the ONLY time you need to use sudo is when installing Wine, never for installing any Windows based software.

          Reply
  57. Why are you running all your wine stuffs with sudo??? That is not necessary and a security risk. Please do some research before you publish how tos.

    Reply
    • Thanks for helping me out with installation of wine1.7 Mr. Ravi. I agree with you so far as installation of wine or winetricks goes, but to execute a windows program we don’t need to run the wine command with sudo and probably we should not. Here I agree with Mr/Miss anon. My windows game runs well without using sudo. in fact i have added the game to the panel as a button (right click the program in the application launcher Menu and select Add to panel) and i just click the button to start my game. I take care to unmount all my drives and mounted partitions to protect my system from any virus or spyware before i run my game(wine is trustable but windows programs are not). Also I have set my system to ask for a password when i mount my partitions or drives as I can not afford to lose my data which is precious to me. Just google to learn how to do this.

      Reply
  58. After adding the ppa in linux mint 14, when I do apt-cache policy wine1.5 it shows

    wine1.5:
    Installed: (none)
    Candidate: 1.5.26-0ubuntu1
    Version table:
    1.5.26-0ubuntu1 0
    500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ quantal/main amd64 Packages

    I can’t install 1.5.27 for some reason

    Reply
    • Something is wrong with their repository index, because even on 4/4/13, with that repo defined, it still doesn’t offer 1.5.27 as an upgrade (I have 1.5.26 installed already). The package is there, it should offer it up, but it just isn’t working.

      Reply

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.