(EDIT: this question was suggested to be answered with this one but, although the problem is the same one, I see the given solution in this post better than the other one (more efficient)! So please keep this question, or move the solution to the other one, so other users can know this solution!)
For some unknwon reason, wine stuck when loading any Windows program. So I uninstalled it for reinstalling it again. I have Ubuntu 18.04.5 LTS.
When I try to reinstall it, following the winehq.org steps, in the last step, it says:
winehq-stable : Depends: wine-stable (= 5.0.2~bionic) E: Unable to correct problems, you have held broken packages.
I've tried to install manually the dependencies, but arrived to a lot of packages that "won't be installed". Of course, googled it. Tried, then:
sudo dpkg --configure -a sudo apt-get install -f sudo apt-get autoremove sudo apt-get autoclean sudo apt-get update
Tried as well unholding two packages that have anything to do with this, but nothing.
sudo aptitude -f install winehq-stable
I'm grateful because aptitude made an effort to solve this, but all the solutions that it proposes include:
Keep the following packages in the current version: 2) wine-stable [not installed] 3) wine-stable-i386:i386 [not installed] 4) winehq-stable [not installed]
I don't know how to say it that I want to update those from "not installed" to any that requires to be installed.
I've tried, as well, fixing broken packages through Synaptics (and said that succeeded), and some other solutions I've found on the Internet that I can't remember now, but I'll tell you if suggested.
The package is not installed now (every attemp to purge or something won't work because this).
Any ideas? I want to believe this can be solved without reinstalling the whole OS.