What Wine does and why you might need it

Wine is a compatibility layer that lets you run Windows programs directly on Ubuntu without needing Windows itself. It translates Windows program instructions into commands your Linux system understands, so the program runs as if it were native to Ubuntu. You do not need a virtual machine or a separate Windows license — Wine sits between the program and your operating system and handles the translation in real time.

Wine works best with older Windows programs and many modern ones, but not all. Games, productivity software, and utilities often run well. Some programs that rely heavily on Windows-specific features or recent graphics libraries may not work at all, or may work partially. Before you install Wine, check whether your specific program has been tested — the WineHQ AppDB database lists thousands of programs and reports from real users about how well they run.

The installation itself takes about ten minutes if your internet connection is steady. You will use Ubuntu's package manager to read Wine and a few supporting libraries, then test it by running a Windows program.

Key Takeaways

  • Wine translates Windows program instructions so they run on Ubuntu without needing Windows or a virtual machine.
  • Installation requires opening a terminal and running four commands to add Wine's repository and install the package.
  • After installation, you can run a Windows program by right-clicking its .exe file and selecting Wine, or by typing a command in the terminal.
  • Some programs run perfectly; others run partially or not at all, so checking the WineHQ AppDB before installing saves time.
  • Wine stores program settings and files in a hidden folder in your home directory, separate from your regular Ubuntu programs.

Adding Wine's repository and installing the package

Wine is not in Ubuntu's default repository, so you need to add the official Wine repository first. Open the terminal — press Ctrl+Alt+T, or search for "Terminal" in your process menu and click it. The terminal window will open with a blinking cursor ready for commands.

Type or paste this command and press Enter:

sudo apt-get update

This refreshes Ubuntu's list of available packages. It will ask for your password — type it (you will not see the characters appear) and press Enter. Wait for the command to finish; you will see the cursor return when it is done.

Next, add Wine's official repository by typing or pasting this command:

sudo add-apt-repository ppa:wine/wine-builds

Press Enter and confirm by pressing Enter again when prompted. Ubuntu will read information about Wine packages from this repository. This step takes a minute or two.

Now update your package list again to include Wine:

sudo apt-get update

Finally, install Wine itself:

sudo apt-get install --install-recommends winehq-stable

Press Enter. Ubuntu will show you how much space Wine will use and ask you to confirm — type y and press Enter. The read and installation will take several minutes depending on your internet speed. When the cursor returns, Wine is installed.

Verifying the installation worked

To confirm Wine installed correctly, type this command in the terminal:

wine --version

Press Enter. You should see a version number like "wine-9.0" or similar. If you see that, Wine is ready to use. If you see "command not found", the installation did not complete — scroll back through the terminal output to see if there were any error messages, or try the installation commands again.

Wine also creates a hidden folder called .wine in your home directory the first time you run it. This folder holds all the settings, libraries, and program data for Windows programs you run through Wine. You do not need to open it or change anything in it — Wine manages it automatically. If you ever want to completely remove Wine and all programs you installed through it, you can delete this folder and uninstall Wine from the terminal.

Running a Windows program through Wine

Once Wine is installed, running a Windows program is straightforward. Find the program's .exe file — usually on a USB drive, in a read folder, or on a CD. Right-click the .exe file and look for an option that says "Open With" or "Open With Other process". Select Wine from the list. The program will launch.

If you do not see Wine in the right-click menu, you can run the program from the terminal instead. Open a terminal, navigate to the folder containing the .exe file, and type:

wine program-name.exe

Replace "program-name.exe" with the actual filename. Press Enter and the program will start. The first time you run any program through Wine, it may take longer to launch because Wine is setting up its environment for that program.

Some programs will ask you to install additional components — fonts, libraries, or runtime environments — the first time they run. Wine will offer to install these automatically. Let it do so; these are compatibility pieces that help the program run correctly on Ubuntu.

Troubleshooting programs that do not start or crash

If a program starts but crashes when ready, or if it will not start at all, check the WineHQ AppDB first. Search for your program's name and read the user reports. Many programs have known issues with specific Wine versions, and the AppDB often lists workarounds — usually small configuration changes or installing an older version of Wine.

If the AppDB shows your program should work but it does not, try running it from the terminal instead of right-clicking. The terminal will show error messages that explain what went wrong. Copy those messages and search for them online — other Wine users have likely encountered the same problem and posted solutions.

Some programs need additional Windows libraries or fonts to run properly. Wine has a tool called winetricks that installs these automatically. If you need it, install it with:

sudo apt-get install winetricks

Then run:

winetricks dotnet48

Replace "dotnet48" with whatever library the program needs — the AppDB entry for your program will tell you which one. Winetricks will read and install it into Wine's hidden folder.

Understanding Wine's limitations

Wine is powerful, but it is not perfect. Programs that use recent graphics features, copy protection systems, or Windows-specific hardware access often do not work. Games that require DirectX 12 or newer may run slowly or not at all. Programs that phone home to verify they are licensed may refuse to run under Wine because they detect it is not real Windows.

If a program absolutely will not work in Wine, your only other option is a virtual machine — a full copy of Windows running inside Ubuntu. Virtual machines are slower and use more disk space, but they run Windows programs with no compatibility layer. That is a separate process, and you would need a Windows license to do it legally.

For most older programs and many modern ones, Wine works well enough that you will not notice the difference. The best way to find out is to try — if the program is free or you have a copy already, install Wine and test it. The worst that happens is the program does not work and you uninstall Wine.

Keeping Wine updated

Wine is updated regularly with bug fixes and support for new programs. To update Wine, open the terminal and run:

sudo apt-get update && sudo apt-get upgrade

This command updates all your Ubuntu packages, including Wine if a new version is available. Run it every few weeks, or whenever you notice a program that was not working before. Sometimes a Wine update will fix a program that was broken in the previous version.

If you want to try a newer version of Wine than the stable release, you can install the development version instead. The WineHQ website has instructions for this, but the stable version is recommended for most users because it is tested more thoroughly.

Frequently Asked Questions

Do I need Windows installed to use Wine?

No. Wine is a compatibility layer that replaces Windows, not a way to run Windows inside Ubuntu. You do not need a Windows license or a Windows installation. Wine translates Windows program instructions directly to Linux instructions.

Will Wine slow down my programs?

Wine adds a small amount of overhead because it is translating instructions, but most programs run at nearly native speed. Games and graphics-heavy programs may be noticeably slower than they would be on Windows, but productivity software usually runs at the same speed.

Can I uninstall Wine and all my Windows programs at once?

Yes. Uninstall Wine with sudo apt-get remove winehq-stable, then delete the .wine folder in your home directory. This removes Wine and all programs you installed through it. Your Ubuntu programs are unaffected.

What if a program needs a specific version of Wine?

The WineHQ AppDB entry for your program will say which version works best. You can install multiple versions of Wine side by side, or downgrade to an older version if a newer one breaks your program. The WineHQ website has instructions for installing specific versions.

Can I run Windows programs from a USB drive through Wine?

Yes. Plug in the USB drive, find the .exe file, right-click it, and open it with Wine. The program will run from the USB drive just as it would from your hard drive. Some programs may run slower from USB because of the slower read speed.