最近不得不重新安装我的系统,因为 nvidia 驱动程序的更新阻止了系统启动。我不想每次更新 nvidia 驱动程序时都重新开始。
我不确定如何阻止驱动程序更新并找出我需要保留的每个项目的名称以防止再次发生。
任何完整的说明将不胜感激。
亲切的问候
安德鲁
TL;DR使用此命令:
sudo apt-mark hold nvidia-346
Run Code Online (Sandbox Code Playgroud)
例子:
% sudo apt-mark hold nvidia-346
nvidia-346 set on hold.
Run Code Online (Sandbox Code Playgroud)
和unhold:
sudo apt-mark unhold nvidia-346
Run Code Online (Sandbox Code Playgroud)
例子:
% sudo apt-mark unhold nvidia-346
Canceled hold on nvidia-346.
Run Code Online (Sandbox Code Playgroud)
从 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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5178 次 |
| 最近记录: |