最近我不得不重新安装我的系统,因为 nvidia 驱动程序的更新导致系统无法启动。我不想每次 nvidia 驱动程序更新时都要重新开始。
我不确定如何阻止驱动程序更新,以及如何找出我需要保留的每个项目的名称以防止再次发生。
任何完整的说明都将不胜感激。
亲切的问候
安德鲁
答案1
总结使用此命令:
sudo apt-mark hold nvidia-346
例子:
% sudo apt-mark hold nvidia-346
nvidia-346 set on hold.
还有unhold
:
sudo apt-mark unhold nvidia-346
例子:
% sudo apt-mark unhold nvidia-346
Canceled hold on nvidia-346.
从man apt-mark
hold
hold is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed. The command is only a wrapper around dpkg --set-selections and the state is
therefore maintained by dpkg(1) and not affected by the --file option.
unhold
unhold is used to cancel a previously set hold on a package to allow all actions again.