今天升级了以下内核,发现cuda驱动没了,使用下面的命令自动安装驱动的时候结果报错:

sudo ubuntu-drivers autoinstal


ARNING:root:_pkg_get_support nvidia-driver-515: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-510-server: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-510: package has invalid Support PBheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-515-server: package has invalid Support PBheader, cannot determine support level
.....
Unable to Correct Problems ‘You have Held Broken Packages’

解决方法

sudo apt-get install aptitude
sudo aptitude install nvidia-driver-470
sudo reboot

装完以后重启就行了。

参考文献

[1]. ​​解决Unable to Correct Problems ‘You have Held Broken Packages’​