当我尝试运行时,我不断收到此错误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.
我该如何解决?
答案1
解决
E: Unable to correct problems, you have held broken packages.
尝试:
sudo apt-get install --fix-broken xorg-video-abi-11 xserver-xorg-core -y
这个技巧对我有用
另一个选择是:
sudo apt-get remove --purge nvidia-* -y
sudo ubuntu-drivers autoinstall
sudo service lightdm restart
然后重启机器
答案2
sudo apt-get remove --purge nvidia-* -y
sudo apt autoremove
sudo ubuntu-drivers autoinstall
sudo service lightdm restart
sudo reboot
这对我有用!
答案3
之前的 nvidia 清除过程中遗留了一些软件包,导致了一些问题。
sudo apt autoremove
帮我修好了。
答案4
正如“rajagenupula”用户所说。特别感谢“rajagenupula”用户
安装旧版本(12.04.1)的 xserver,然后您可以使用必要的驱动程序(apt 包nvidia-current
)安装 cuda。
sudo apt-get install xorg-video-abi-11 xserver-xorg-core