How to solve unmet dependencies when installing Nvidia drivers?

Solution 1:

To solve

E: Unable to correct problems, you have held broken packages.

Try:

sudo apt-get install --fix-broken xorg-video-abi-11 xserver-xorg-core -y

This trick worked for me

Another option will be:

sudo apt-get remove --purge nvidia-* -y
sudo ubuntu-drivers autoinstall
sudo service lightdm restart

Then reboot machine