如何从软件更新程序中删除nvidia驱动程序?


5

我已经从笔记本电脑中完全删除了NVidia驱动程序,因为它不能与我的视频卡正常工作,并已切换到Intel图形。

sudo apt-get purge nvidia*

但是,在软件更新期间,总是建议我再次安装nvidia依赖项。我该如何避免呢?

在此处输入图片说明

dpkg -l | grep nvidia 给我相关的库,这些库在卸载后还剩下:

ii  libnvidia-cfg1-390:amd64                             390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA binary OpenGL/GLX configuration library 
ii  libnvidia-common-390                                 390.48-0ubuntu0~gpu18.04.1                     all          Shared files used by the NVIDIA libraries 
ii  libnvidia-compute-390:amd64                          390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA libcompute package 
ii  libnvidia-compute-390:i386                           390.42-0ubuntu1+gpu18.04.1                     i386         NVIDIA libcompute package 
ii  libnvidia-decode-390:amd64                           390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA Video Decoding runtime libraries 
ii  libnvidia-decode-390:i386                            390.42-0ubuntu1+gpu18.04.1                     i386         NVIDIA Video Decoding runtime libraries 
ii  libnvidia-encode-390:amd64                           390.42-0ubuntu1+gpu18.04.1                     amd64        NVENC Video Encoding runtime library 
ii  libnvidia-encode-390:i386                            390.42-0ubuntu1+gpu18.04.1                     i386         NVENC Video Encoding runtime library 
ii  libnvidia-fbc1-390:amd64                             390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library 
ii  libnvidia-fbc1-390:i386                              390.42-0ubuntu1+gpu18.04.1                     i386         NVIDIA OpenGL-based Framebuffer Capture runtime library 
ii  libnvidia-gl-390:amd64                               390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD 
ii  libnvidia-gl-390:i386                                390.42-0ubuntu1+gpu18.04.1                     i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD 
ii  libnvidia-ifr1-390:amd64                             390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library 
ii  libnvidia-ifr1-390:i386                              390.42-0ubuntu1+gpu18.04.1                     i386         NVIDIA OpenGL-based Inband Frame Readback runtime library 
ii  xserver-xorg-video-nvidia-390                        390.42-0ubuntu1+gpu18.04.1                     amd64        NVIDIA binary Xorg driver

您如何“删除NVidia驱动程序”?好像您没有更新包装系统,该包装系统仍认为NVidia东西仍在安装中,需要更新。
waltinator

我用sudo apt-get purge nvidia *完成了此操作,之后所有应用程序和ubuntu本身都切换到了英特尔图形卡。
亚历山大·蒂亚科夫

该命令的输出是什么dpkg -l | grep nvidia
阿里·拉兹米德

@AliRazmdideh输出被添加到问题中
Alexander Tyapkov

运行这些命令将其删除sudo apt purge libnvidia* xserver-xorg-video-nvidia-390
Ali Razmdideh

Answers:


3

根据dpkg -l | grep nvidia输出,没有删除某些nvidia库。

因此,运行以下命令清除它们:

sudo apt purge libnvidia* xserver-xorg-video-nvidia-390

运行autoremove以删除不必要的软件包也很不错:

sudo apt autoremove

谢谢!我做到了,它几乎解决了问题。但是,libnvidia-compute-390仍然在这里。它以dpkg显示,但不能通过清除将其删除
Alexander Tyapkov

sudo apt purge libnvidia-compute-390 命令的输出是什么?
阿里·拉兹米德

好。这就对了。我必须使用sudo删除它,删除libnvidia-compute-390:i386
Alexander Tyapkov,

您的问题解决了吗?
阿里·拉兹米德

是的,谢谢您的帮助!现在,所有依赖项都已删除。
亚历山大·季亚科夫
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.