I remember this started when I was trying to install wine. I tried following the instructions on the page, that involved adding the i386 architecture, and installing the winehq-devel package, with the --install-recommends option.
Except it didn't work at the time, and it gave me some errors:
The following packages have unmet dependencies:
winehq-devel : Depends: wine-devel (= 2.0~rc1~ubuntu16.04.1)
E: Unable to correct problems, you have held broken packages.
If I try to install it, I get the same error with wine-devel-i386:
The following packages have unmet dependencies:
wine-devel-i386:i386 : Depends: libgphoto2-6:i386 (>= 2.5.9) but it is not going to be installed
Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
Recommends: libosmesa6:i386 (>= 10.2~) but it is not going to be installed
Recommends: libsane:i386 (>= 1.0.24) but it is not going to be installed
Recommends: libxslt1.1:i386 (>= 1.1.25) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried searching for answers regarding the broken packages and tried a bunch of stuff:
dpkg --configure -a
apt-get clean
apt-get autoclean
apt-get install -f
apt-get upgrade
apt-get dist-upgrade
(not by this order, but I found different solutions that mentioned them)
dpkg --get-selections | grep hold
doesn't give me any packages either.
I also tried istalling synaptic to check the broken packages, which didn't show me anything.
I also tried installing with aptitude, it gives me options, if I understand how it works, but it either doesn't install the package, or it requires me to remove 1500+ packages, which doesn't seem like a solution to me.
I kinda gave up on it, until I tried to install nvidia drivers. I removed the old version and when I tried to install the 375:
The following packages have unmet dependencies:
nvidia-375 : Depends: lib32gcc1 but it is not going to be installed
Depends: libc6-i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I get this again. And if I try to install it individually, with apt-get install libc6-i386 :
The following packages have unmet dependencies:
libc6-i386 : Depends: libc6 (= 2.23-0ubuntu3) but 2.23-0ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.
Is there anything I could do to try and fix this, or should I just reinstall and get it over with?