How to Install Wine on Ubuntu 18.04

When you first switch from Windows to Ubuntu, you find that there are software that you cannot install on your new operating system. The good news is, there is a piece of software that can help you do just that. It is called Wine. Installing Wine on your computer will allow you to install a number of Windows-only software.

Installing Wine

1. Open the Ubuntu Terminal by pressing Ctrl+Alt+T at the same time.

2. Enter the following to enable the 32-bit architecture:

$ sudo dpkg --add-architecture i386

3. Download and add the Wine repository key:

$ wget -nc
$ sudo apt-key add winehq.key

4. Add the Wine repository:

$ sudo apt-add-repository 'deb bionic main'

5. Update your repository and install Wine:

$ sudo apt-get update
$ sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
$ sudo apt-get install --install-recommends winehq-stable

6. Type in the following to verify the installation and check the installed version:

$ wine --version

7. Configure Wine:

$ winecfg

Uninstalling Wine

Type the following command in the Ubuntu Terminal:

$ sudo apt-get remove --autoremove wine-stable winehq-stable

Installing Software with Wine

To install a .exe file, right-click on the file and select Open With Wine Windows Program Loader. If this option is not available, select Open with Other Application and then choose Wine Windows Program Loader.

Uninstalling Software Installed with Wine

1. Press Alt+F2 at the same time.

2. A dialog box that says Enter a command will pop up. Type in wine uninstaller and press Enter.

3. The Add/Remove Programs window will appear. Choose the program that you want to uninstall.

4. Click Modify/Remove and wait for some seconds for the uninstallation to complete.

5. Click OK.