Download Article
Use Wine to install Windows software and games on Ubuntu Linux
Download Article

Whether you want to use Adobe Photoshop, play World of Warcraft, or use Microsoft Word 365 on Ubuntu, it's easy to install Windows programs using Wine. There are two ways to install Wine—through the Ubuntu Software Center, and through the developer's repository. This wikiHow article will walk you through installing Wine on Ubuntu, show you how to install and run Windows programs, and give you lots of helpful tips along the way.

Things You Should Know

  • You can easily install Wine through the Software Center, but it won't be the latest version. For the latest version, install directly from the Wine developers.
  • Once you've installed Wine, you can download a Windows application from the web and double-click the .exe file to install.
  • Not all Windows software works flawlessly on Wine, but lots of popular apps and games do.
Method 1
Method 1 of 3:

Installing Wine

Download Article
  1. Ubuntu recommends that you install the Ubuntu-specific version of Wine straight from their repositories in the Software Center.[1] But, the developers of Wine recommend that you install the latest version of Wine from their repositories (WineHQ).[2] So, which should you choose?
    • The Software Center version is always going to be older than the version from WineHQ. However, if you want a simpler install process that doesn't require typing any commands, you can quickly install a stable version of Wine through the Software Center.
      • With this installation method, Wine will only update if there's a newer version available the next time you update Ubuntu itself. You won't be able to update Wine separately.
      • To install the Ubuntu package, just open Software Center, type wine, and click Install. Then, skip down to step 8 to perform the final configuration steps.
    • If you want the latest Wine release with frequent updates, you'll want to install Wine from WineHQ. It's not hard to install, but there are a few more steps than using Software Center. We'll walk you through them!
  2. If you want the latest version of Wine from WineHQ, your first task is to find out if your system is 32-bit or 64-bit. If your system doesn't support 32-bit programs, there will be an extra installation step. An easy way to check is to open a Terminal window and run the command lscpu.[3]
    • Once you run the command, check the value of "CPU op-mode." You'll either see 32-bit, 64-bit, or both.
    Advertisement
  3. If the value of "CPU op-mode" does not include 32-bit, run this command to enable 32-bit architecture: sudo dpkg --add-architecture i386.[4]
    • If CPU op-mode displayed both 64-bit and 32-bit, there's no need to run this command.
  4. Now you'll need to run two commands that will allow you to easily install Wine:
    • First, run sudo mkdir -pm755 /etc/apt/keyrings to create a directory for the repository key.
    • Then, run sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key to add the repository key.
  5. The command you'll need to run will be a little different depending on your version of Ubuntu:
    • Ubuntu 22.04 (Jammy Jellyfish): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
      • If there is no stable version available for Jammy when you run this command, you can install the development version instead. To do so, use sudo apt install --install-recommends winehq-devel.
    • Ubuntu 20.04 (Focal Fossa): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
    • Ubuntu 18.04 (Bionic Beaver): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources.
    • Ubuntu 16.04 (Xenial Xerus): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/xenial/winehq-bionic.sources
    • Ubuntu 14.04 (Trusty Tahr): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/trusty/winehq-bionic.sources
  6. Once you do this, you'll be ready to install Wine.
  7. This installs Wine from the repository you've added.
    • The Wine files are installed in /opt/wine-(branch).
  8. No matter how you've installed Wine, you'll want to run this command before you start installing Windows programs. This creates a directory called .wine in your home directory that contains a virtual Windows-style C drive (called drive_c) with the typical Windows file structure, including folders like Program Files, Program Files (x86), Windows, and ProgramData. It also opens a panel that lets you change your Wine preferences.
    • On the Applications tab, you'll see that Wine can mimic different Windows versions for each application. The default Windows version is Windows 7, but you'll probably want to select a newer version of Windows (such as Windows 10).
    • On the Desktop Integration tab, you can choose to add Windows-style theme and link Windows-like folder structure (e.g., Desktop, My Documents) to directories in Ubuntu.
    • You can customize the behavior of windows and mouse movements on the Graphics tab and sound on the Audio tab.
    • Once you're finished making configuration changes, click OK to save.
  9. Advertisement
Method 2
Method 2 of 3:

Installing Windows Apps

Download Article
  1. Now that Wine is installed, you can easily run any Windows installer that ends with the .exe extension.
    • While lots of popular Windows software titles will work great in Wine, you might run into problems with some apps. Check out the Wine Application Database to see which apps will run flawlessly, with minor flaws, or not at all on Ubuntu.
  2. Wine should automatically detect the .exe and start the Windows program. If the program doesn't open in Wine, right-click its icon and select Run with > Wine.[5]
    • If the installer doesn't launch, you can also start it from the command line. In a Terminal window, use cd to enter the directory to which you saved the downloaded installer, then use wine filename.exe to launch it.
  3. The installation will look like a typical Windows installer. Many installers allow you to choose a location for installing the file. The location will be in your virtual C drive, which is actually located in the folder called .wine/drive_c in your home directory.
    • If prompted to choose an installation location, choose C:\Program Files.
    • You can configure any apps you install in the winecfg tool. Just run wincfg at the prompt, click Add Application on the Applications tab, and select the newly installed app. Then, with the new app selected, go through the tabs and make modifications specifically for that app.
  4. Advertisement
Method 3
Method 3 of 3:

Running Windows Apps

Download Article
  1. If the installer you ran prompted you to add an icon to your desktop, you'll now see a shortcut to that app that you can easily double-click to launch with Wine. If not, you can run it from your file manager.
    • First, open Files and make sure hidden files are visible. If you don't see the .wine folder, press Ctrl + H to toggle showing hidden files.[6]
    • Double-click the .wine folder and then navigate to the location to which you installed the Windows program.
    • Right-click the .exe file and choose Open with > Wine.
  2. If you're having trouble running programs from the GUI or just want to use the command line, start by navigating to the directory to which you installed the program using the cd command. You'll need to surround the path with single quotes.
    • For example, if you installed it in the virtual C:\Program Files\Game\Risk directory, you'd use cd '.wine/drive_c/Program Files/Games/Risk'.[7]
    • You can start Windows programs from the full path if you'd prefer, but you'll need to start them with wine start. For example, wine start 'C:\Program Files\Game\Risk.exe'
    • Start the program using wine appname.exe. For example, if the Windows application file is called Risk.exe, you'd use wine Risk.exe to open it from the current directory.
  3. If you're missing certain libraries required to install programs, you might be able to fix the issue with this easy-to-install tool. For example, if you're trying to run Adobe programs and seeing errors about Adobe Type Manager or "atmlib," Winetricks can fetch the DLLs you'll need to run the program.
    • You can install Winetricks from Ubuntu Software or using sudo apt-get install winetricks. However, if you want to get help from the Wine team, they may not provide assistance if you're using Winetricks.[8]
    • Once Winetricks is installed, run it from the prompt using the command winetricks. You can then use the tool to install working packages of popular apps and libraries.
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    When I install an app on my computer, it asks for a password. Why is this?
    Living Concrete
    Living Concrete
    Top Answerer
    Some applications require administrator permissions in order to be installed. Simply enter your account password to continue.
  • Question
    What can I do if I don't have an internet connection to download the software?
    Living Concrete
    Living Concrete
    Top Answerer
    Download the Debian Package (*.dpkg) file onto a flash drive on another computer. Then, put the flash drive into the computer that doesn't have an internet connection. From here, you should be able to run the Debian Package by double clicking on it.
  • Question
    Will it be possible to run Windows games on Ubuntu?
    Somone
    Somone
    Community Answer
    Yes, but not all games work with Wine yet. You can check Wine's list of compatible programs to see if your game is listed.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • To uninstall Windows apps, use wine uninstaller to launch the software removal tool.
  • If the app you want to use won't run properly in Wine, search the web for the app name and "Ubuntu." Many Wine users share information about their experiences getting their favorite games and apps to run in Ubuntu and you're likely to find answers.
Submit a Tip
All tip submissions are carefully reviewed before being published
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Install Software in UbuntuUbuntu Software Installation: The Complete Beginner's Guide
Install Windows XP on Ubuntu with VirtualBoxInstall Windows XP on Ubuntu with VirtualBox
Install Ubuntu on VirtualBoxInstall Ubuntu on VirtualBox
Install Ubuntu LinuxHow to Install Ubuntu Linux: Dual Boot with Windows or macOS
Install Windows from UbuntuInstalling Windows After Ubuntu: A Step-by-Step Guide
Install Gnome on UbuntuHow to Install GNOME Desktop on Ubuntu: Full, Minimal, & Vanilla
Uninstall Ubuntu SoftwareUninstall Ubuntu Software
Become Root in UbuntuBecome Root in Ubuntu
Change Keyboard Layout in UbuntuChange Keyboard Layout in Ubuntu
Open a Terminal Window in UbuntuOpen a Terminal Window in Ubuntu
Format a USB Flash Drive in UbuntuFormat a USB Flash Drive in Ubuntu
Format a Hard Drive Using UbuntuFormat a Hard Drive Using Ubuntu
Enable the Windows Subsystem for LinuxEnable the Windows Subsystem for Linux
Change MAC Address on UbuntuChange MAC Address on Ubuntu
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 577,211 times.
How helpful is this?
Co-authors: 11
Updated: September 27, 2023
Views: 577,211
Categories: Ubuntu
Thanks to all authors for creating a page that has been read 577,211 times.

Is this article up to date?

Advertisement