Software & AppsOperating SystemLinux

How To Install Wine on Lubuntu 18.04: Troubleshooting Unmet Dependencies Error

Ubuntu 12

In this article, we will be discussing how to install Wine on Lubuntu 18.04 and troubleshooting the common ‘unmet dependencies’ error. Wine is a free and open-source compatibility layer that allows computer programs developed for Windows to run on Unix-like operating systems.

Preparing for Installation

Before we get started, make sure your system is up-to-date by running the following commands:

sudo apt update
sudo apt upgrade

The apt update command updates the package list from the repositories, while apt upgrade upgrades all upgradable packages on your system.

Installing Wine

To install Wine, we will be using the WineHQ repository. First, we need to add the repository key:

wget -nc
sudo apt-key add winehq.key

The wget command fetches the repository key from the WineHQ website, and apt-key add adds it to your system.

Next, we add the repository:

sudo apt-add-repository 'deb bionic main'

This command adds the WineHQ repository to your system’s list of repositories.

Finally, we can install Wine:

sudo apt update
sudo apt install --install-recommends winehq-stable

The --install-recommends option ensures that recommended packages are also installed, which can help prevent issues with missing dependencies.

Troubleshooting Unmet Dependencies Error

If you encounter an error message stating “Unable to correct problems, you have held broken packages”, there are several steps you can take to resolve this.

Fix Broken Packages

Firstly, you can try fixing any broken packages on your system by running:

sudo apt -f install

The -f or --fix-broken option attempts to correct a system with broken dependencies.

Check Architecture

Ensure you are using the correct architecture for your system. If you are on a 64-bit machine, make sure you have selected the 64-bit architecture when adding the WineHQ repository.

Use a Different Repository

The error message may suggest that the package wine-stable is not available in the Ubuntu repository. You can try using a different repository, such as the OpenSuse Build Service repository, to install the required dependencies.

Install Previous Version

As a temporary solution, you can try installing a previous version of Wine:

apt-get install -y --install-recommends winehq-stable=4.0.3~bionic wine-stable=4.0.3~bionic wine-stable-amd64=4.0.3~bionic wine-stable-i386=4.0.3~bionic

This command installs the 4.0.3 version of Wine and its dependencies. You can upgrade to the latest version once the repository issue is resolved.


Installing Wine on Lubuntu 18.04 can be a straightforward process, but the ‘unmet dependencies’ error can cause difficulties. By following the steps outlined in this article, you should be able to successfully install Wine and resolve any issues encountered during the installation process. If you continue to experience problems, consider reaching out to the WineHQ community for further assistance.

How do I check the version of Wine installed on my system?

To check the version of Wine installed on your system, you can run the following command in the terminal: wine --version. This will display the version number of Wine installed on your system.

Can I run all Windows programs on Lubuntu using Wine?

While Wine allows many Windows programs to run on Unix-like operating systems, not all programs are compatible. Wine has a compatibility database called the Wine AppDB where you can check the compatibility of specific programs. It is recommended to check the AppDB before attempting to run a Windows program on Lubuntu using Wine.

How can I uninstall Wine from my Lubuntu system?

To uninstall Wine from your Lubuntu system, you can run the following command in the terminal: sudo apt remove --autoremove winehq-stable. This command will remove Wine along with any dependencies that are no longer needed.

Can I use PlayOnLinux with Wine on Lubuntu?

Yes, you can use PlayOnLinux with Wine on Lubuntu. PlayOnLinux is a graphical front-end for Wine that makes it easier to install and manage Windows programs. You can install PlayOnLinux using the following command: sudo apt install playonlinux. Once installed, you can use PlayOnLinux to install and run Windows programs on your Lubuntu system.

How can I configure Wine on Lubuntu?

Wine can be configured using the winecfg command. This command opens the Wine Configuration window where you can customize various settings, such as audio, graphics, and Windows version compatibility. To open the Wine Configuration window, simply run winecfg in the terminal.

Leave a Comment

Your email address will not be published. Required fields are marked *