I wanted to install Wine in Elementaryos Hera and followed this site. The only mistake which I did was, I installed wine from Ubuntu Repositories then followed by trying to install wine from official wine repositories. Then, I installed wineHQ stable using the command
sudo apt-get install --install-recommends winehq-stable Because I installed wine twice, it didn't work as it should. So I went to the terminal and used the command
dpkg --list to see what wine based software are installed and uninstalled them using the command
sudo apt-get --purge remove program I literally uninstalled everything that had wine in its name. Now, I reinstalled Wine from official repositories and then added the key for WineHQ Stable and then tried installing it using the first command mentioned above. But I received this message
thenotorious@T430:~$ sudo apt-get install --install-recommends winehq-stable [sudo] password for thenotorious: 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: winehq-stable : Depends: wine-stable (= 5.0.1~bionic) E: Unable to correct problems, you have held broken packages.
How do I fix this up? Someone help me out. I've already searched how to remove broken packages, but just couldn't find the package which I should Delete because I already uninstalled and possibly deleted every folder of wine, and also searched forums regarding not being able to install wineHQ stable due to broken packages, but nothing really helped.