6

I have completely removed NVidia drivers from my laptop because it doesn't work correctly with my video card and switched to Intel graphics.

sudo apt-get purge nvidia*

However, during software update, I am always suggested to install nvidia dependencies again. How can I avoid it?

enter image description here

dpkg -l | grep nvidia gives me related libraries which are left after uninstall:

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
5
  • How did you "removed NVidia drivers"? It looks like you didn't update the packaging system, which still thinks NVidia stuff is still installed, and needs updates. – waltinator Mar 29 '18 at 14:26
  • I did it with sudo apt-get purge nvidia*, after that all the apps and ubuntu itself switched to intel graphic card. – Alexander Tyapkov Mar 29 '18 at 14:28
  • What is output of this command dpkg -l | grep nvidia ? – Ali Razmdideh Mar 29 '18 at 14:40
  • @AliRazmdideh the output is added to the question – Alexander Tyapkov Mar 29 '18 at 14:49
  • Run these commands to remove them sudo apt purge libnvidia* xserver-xorg-video-nvidia-390 – Ali Razmdideh Mar 29 '18 at 14:58
6

According to dpkg -l | grep nvidia output some libraries of nvidia are not removed.

So run this command to purge them:

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

And its also good to run autoremove to remove unnecessary packages:

sudo apt autoremove
6
  • 1
    thanks! I did it and it almost solved the issue. However, libnvidia-compute-390 is still here. It is shown in dpkg but cannot be removed with purge – Alexander Tyapkov Mar 29 '18 at 15:09
  • What is the output of sudo apt purge libnvidia-compute-390 command ? – Ali Razmdideh Mar 29 '18 at 15:11
  • Ok. that is it. I had to remove it with sudo apt remove libnvidia-compute-390:i386 – Alexander Tyapkov Mar 29 '18 at 15:12
  • Is your problem solved ? – Ali Razmdideh Mar 29 '18 at 15:15
  • yes, thanks for help! Now all the dependencies are removed. – Alexander Tyapkov Mar 29 '18 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.