I keep getting this error when I try running sudo apt-get install nvidia-current:
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: nvidia-current : Depends: xorg-video-abi-11 Depends: xserver-xorg-core (>= 2:1.10.99.901)
E: Unable to correct problems, you have held broken packages.How do I fix this?
56 Answers
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 -yThis trick worked for me
Another option will be:
sudo apt-get remove --purge nvidia-* -y
sudo ubuntu-drivers autoinstall
sudo service lightdm restartThen reboot machine
2sudo apt-get remove --purge nvidia-* -y
sudo apt autoremove
sudo ubuntu-drivers autoinstall
sudo service lightdm restart
sudo rebootThis is what worked for me!
This problem arises from an Xorg/nVidia bug where nVidia's driver is incompatible with some of the code in the latest Xorg version. You can try installing the drivers with Software Sources (Additional Drivers tab), or jockey-text in the terminal (which you can learn how to use with a quick Google search or jockey-text --help), or by checking for your drivers at the nVidia website at (use the Manual Driver Search). Installing the drivers using apt will not work until the issue is fixed sometime in the future.
If you need instructions for installing drivers from nVidia's website, follow the guide here:
As noted by 'rajagenupula' user. Special thanks to 'rajagenupula' user
Install older (12.04.1) version of xserver and you can install cuda with with the necessary driver (apt package nvidia-current).
sudo apt-get install xorg-video-abi-11 xserver-xorg-core
I had some leftover packages from a previous nvidia purge that caused issues.
sudo apt autoremovefixed it for me.
remove sources.list file.and create new sources.list...
sudo rm /etc/apt/sources.list Then, type in
sudo software-properties-gtk This will open software-properties-gtk and a newsources.list will be created automatically.
Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.
Tick all the boxes then click on Revert then click close.
Need to restore default repositories
sudo apt-get update && sudo apt-get dist-upgrade -y(it is good practice to backup this file before installing to recover if such things happen)