[SOLVED] How Do I Remove Proprietary GPU Drivers I Just Installed?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

[SOLVED] How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

I installed DXVK to give it a try. I used sudo add-apt-repository ppa:graphics-drivers/ppa.
I then selected Nvidia driver 415 within Driver Manager. I tested out a game & I couldn't tell much if any difference. Now I want to go back to my previous driver 390 but all options are grayed out now except for the selected "Continue using a manually installed driver".
Can you guide me in removing the packages I installed & changing drivers?


I basically followed these instructions though I could not get the last one to install:

Ubuntu / Linux Mint / Other Ubuntu-based distros:
Nvidia:
Enable 32-bit architecture:

sudo dpkg --add-architecture i386
To get the latest Nvidia drivers it is necessary to add the Proprietary GPU Drivers PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa
Update to refresh packages:

sudo apt update
Install the 415.27 driver (latest as of January 15th 2019):

sudo apt-get install nvidia-driver-415

*UPDATE- After tinkering around a bit I was able to get 415 installed & it did make a difference in Doom 2016 so I guess I'll keep it installed but would still like to know how to remove the ppa graphics-drivers or ant packages I add using terminal.
Screenshot from 2019-02-14 03-22-38.png
Last edited by MadMAUL on Fri Feb 15, 2019 12:31 am, edited 1 time in total.
deepakdeshp
Level 18
Level 18
Posts: 8249
Joined: Sun Aug 09, 2015 10:00 am

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by deepakdeshp »

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 20 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB
User avatar
trytip
Level 13
Level 13
Posts: 4851
Joined: Tue Jul 05, 2016 1:20 pm

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by trytip »

you went about it the wrong way. first ALWAYS install the driver manager then use the ppa to upgrade.
dkms status will tell you which drivers are using what kernels
dpkg -l nvidia* will tell you which drivers you have installed

but i don't understand what you mean by remove the ppa graphics-drivers or ant packages I add using terminal
removing the ppa drivers will take you back to 390. if you mean leftovers, the above commands will tell you what you have and what you are using
Image
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

Thanks for the help.
I typed "remove the ppa graphics-drivers or ant packages I add using terminal" wrong. Sorry about that. I was just asking how I should remove things I installed but I guess the Synaptic Package Manager is the place for that? After adding the driver repository it seems like there's a bunch of other drivers I don't need. This is probably just general stuff but a lot of it is still mysterious to me & I get nervous when going outside the Software Manager to install things & also when it comes to removing things.
I'll read over the link deepakdeshp provided & use those commands & try not to remove something important :).
User avatar
trytip
Level 13
Level 13
Posts: 4851
Joined: Tue Jul 05, 2016 1:20 pm

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by trytip »

put these line in Terminal and comment the output here. it will tell you what you have.

Code: Select all

dkms status
dpkg -l nvidia*
the selections you see in the driver manager can't be removed they are only there to show you what is available but not necessarily installed
Image
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

nvidia, 415.27, 4.15.0-45-generic, x86_64: installed


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un nvidia-304 <none> <none> (no description available)
un nvidia-340 <none> <none> (no description available)
un nvidia-384 <none> <none> (no description available)
un nvidia-390 <none> <none> (no description available)
un nvidia-common <none> <none> (no description available)
rc nvidia-compute 390.87-0ubun amd64 NVIDIA compute utilities
ii nvidia-compute 415.27-0ubun amd64 NVIDIA compute utilities
rc nvidia-dkms-39 390.87-0ubun amd64 NVIDIA DKMS package
ii nvidia-dkms-41 415.27-0ubun amd64 NVIDIA DKMS package
un nvidia-dkms-ke <none> <none> (no description available)
ii nvidia-driver- 415.27-0ubun amd64 NVIDIA driver metapackage
un nvidia-driver- <none> <none> (no description available)
un nvidia-driver- <none> <none> (no description available)
un nvidia-kernel- <none> <none> (no description available)
rc nvidia-kernel- 390.87-0ubun amd64 Shared files used with the kernel
ii nvidia-kernel- 415.27-0ubun amd64 Shared files used with the kernel
un nvidia-kernel- <none> <none> (no description available)
un nvidia-kernel- <none> <none> (no description available)
ii nvidia-kernel- 415.27-0ubun amd64 NVIDIA kernel source package
un nvidia-libopen <none> <none> (no description available)
un nvidia-opencl- <none> <none> (no description available)
un nvidia-persist <none> <none> (no description available)
ii nvidia-prime 0.8.8.2 all Tools to enable NVIDIA's Prime
ii nvidia-prime-a 1.0.7 all An applet for NVIDIA Prime
ii nvidia-setting 415.27-0ubun amd64 Tool for configuring the NVIDIA g
un nvidia-setting <none> <none> (no description available)
un nvidia-smi <none> <none> (no description available)
un nvidia-utils <none> <none> (no description available)
ii nvidia-utils-4 415.27-0ubun amd64 NVIDIA driver support binaries
User avatar
trytip
Level 13
Level 13
Posts: 4851
Joined: Tue Jul 05, 2016 1:20 pm

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by trytip »

MadMAUL wrote:
Thu Feb 14, 2019 10:26 pm
nvidia, 415.27, 4.15.0-45-generic, x86_64: installed


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un nvidia-304 <none> <none> (no description available)
un nvidia-340 <none> <none> (no description available)
un nvidia-384 <none> <none> (no description available)
un nvidia-390 <none> <none> (no description available)
un nvidia-common <none> <none> (no description available)
rc nvidia-compute 390.87-0ubun amd64 NVIDIA compute utilities
ii nvidia-compute 415.27-0ubun amd64 NVIDIA compute utilities
rc nvidia-dkms-39 390.87-0ubun amd64 NVIDIA DKMS package
ii nvidia-dkms-41 415.27-0ubun amd64 NVIDIA DKMS package
un nvidia-dkms-ke <none> <none> (no description available)
ii nvidia-driver- 415.27-0ubun amd64 NVIDIA driver metapackage
un nvidia-driver- <none> <none> (no description available)
un nvidia-driver- <none> <none> (no description available)
un nvidia-kernel- <none> <none> (no description available)
rc nvidia-kernel- 390.87-0ubun amd64 Shared files used with the kernel
ii nvidia-kernel- 415.27-0ubun amd64 Shared files used with the kernel
un nvidia-kernel- <none> <none> (no description available)
un nvidia-kernel- <none> <none> (no description available)
ii nvidia-kernel- 415.27-0ubun amd64 NVIDIA kernel source package
un nvidia-libopen <none> <none> (no description available)
un nvidia-opencl- <none> <none> (no description available)
un nvidia-persist <none> <none> (no description available)
ii nvidia-prime 0.8.8.2 all Tools to enable NVIDIA's Prime
ii nvidia-prime-a 1.0.7 all An applet for NVIDIA Prime
ii nvidia-setting 415.27-0ubun amd64 Tool for configuring the NVIDIA g
un nvidia-setting <none> <none> (no description available)
un nvidia-smi <none> <none> (no description available)
un nvidia-utils <none> <none> (no description available)
ii nvidia-utils-4 415.27-0ubun amd64 NVIDIA driver support binaries
you have nvidia, 415.27, 4.15.0-45-generic, x86_64: installed currently installed and running. you also have a few leftovers from nvidia-390 you can open synaptic and serch for nvidia find the 390 and completely remove them if you like. you also have some nvidia-prime which i didn't highlight, don't know if you need that

there's no easy solution of getting rid of the leftovers . i would recommend doing a timeshift snapshot before you attempt to remeove anything
Image
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

Will do. Thanks for the tips.
What are the <none> <none> (no description available) entries?

I see above it says: | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description

So they are Unpacked, Reinstallation Required, no Name Version Architecture Description but what does that mean? Can they be removed?
User avatar
trytip
Level 13
Level 13
Posts: 4851
Joined: Tue Jul 05, 2016 1:20 pm

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by trytip »

<none> means there's no drivers for that selection installed but they are in the repositories or ppa. if you maximize the Terminal window you will get the whole output and is not cut off to fit in a small window. TBH i don't know what most of the abbreviated state of each driver selection means. not sure what rc is but if it gives you anything other than <none> it means you tried installin it and is still lingering in your root
Image
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

I will create a snapshot using timeshift as you suggested before I try removing anything.
Maximizing the terminal window will be useful :). Thanks.

Maximized ...

Code: Select all

dpkg -l nvidia*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                      Version                   Architecture              Description
+++-=========================================-=========================-=========================-========================================================================================
un  nvidia-304                                <none>                    <none>                    (no description available)
un  nvidia-340                                <none>                    <none>                    (no description available)
un  nvidia-384                                <none>                    <none>                    (no description available)
un  nvidia-390                                <none>                    <none>                    (no description available)
un  nvidia-common                             <none>                    <none>                    (no description available)
rc  nvidia-compute-utils-390                  390.87-0ubuntu0~gpu18.04. amd64                     NVIDIA compute utilities
ii  nvidia-compute-utils-415                  415.27-0ubuntu0~gpu18.04. amd64                     NVIDIA compute utilities
rc  nvidia-dkms-390                           390.87-0ubuntu0~gpu18.04. amd64                     NVIDIA DKMS package
ii  nvidia-dkms-415                           415.27-0ubuntu0~gpu18.04. amd64                     NVIDIA DKMS package
un  nvidia-dkms-kernel                        <none>                    <none>                    (no description available)
ii  nvidia-driver-415                         415.27-0ubuntu0~gpu18.04. amd64                     NVIDIA driver metapackage
un  nvidia-driver-binary                      <none>                    <none>                    (no description available)
un  nvidia-driver-libs-i386                   <none>                    <none>                    (no description available)
un  nvidia-kernel-common                      <none>                    <none>                    (no description available)
rc  nvidia-kernel-common-390                  390.87-0ubuntu0~gpu18.04. amd64                     Shared files used with the kernel module
ii  nvidia-kernel-common-415                  415.27-0ubuntu0~gpu18.04. amd64                     Shared files used with the kernel module
un  nvidia-kernel-source                      <none>                    <none>                    (no description available)
un  nvidia-kernel-source-390                  <none>                    <none>                    (no description available)
ii  nvidia-kernel-source-415                  415.27-0ubuntu0~gpu18.04. amd64                     NVIDIA kernel source package
un  nvidia-libopencl1-dev                     <none>                    <none>                    (no description available)
un  nvidia-opencl-icd                         <none>                    <none>                    (no description available)
un  nvidia-persistenced                       <none>                    <none>                    (no description available)
ii  nvidia-prime                              0.8.8.2                   all                       Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                       1.0.7                     all                       An applet for NVIDIA Prime
ii  nvidia-settings                           415.27-0ubuntu0~gpu18.04. amd64                     Tool for configuring the NVIDIA graphics driver
un  nvidia-settings-binary                    <none>                    <none>                    (no description available)
un  nvidia-smi                                <none>                    <none>                    (no description available)
un  nvidia-utils                              <none>                    <none>                    (no description available)
ii  nvidia-utils-415                          415.27-0ubuntu0~gpu18.04. amd64                     NVIDIA driver support binaries
Last edited by MadMAUL on Fri Feb 15, 2019 12:35 am, edited 1 time in total.
User avatar
trytip
Level 13
Level 13
Posts: 4851
Joined: Tue Jul 05, 2016 1:20 pm

Re: How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by trytip »

first try to uninstall with synaptic first.
look in /var/lib/dkms/ you can delete the nvidia-390 folder. dpkg -l nvidia* might give you a <none> after removing it .
Image
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

Re: [SOLVED] How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

Not sure what /var/lib is nor can I locate it.
User avatar
trytip
Level 13
Level 13
Posts: 4851
Joined: Tue Jul 05, 2016 1:20 pm

Re: [SOLVED] How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by trytip »

ah, it's a place in your root file manager when you click the file system. this will tell you what you have
ls /var/lib/dkms/ put that in Terminal and it will list what's in that directory
Image
User avatar
MadMAUL
Level 1
Level 1
Posts: 20
Joined: Thu Feb 14, 2019 2:31 am

Re: [SOLVED] How Do I Remove Proprietary GPU Drivers I Just Installed?

Post by MadMAUL »

I got this output

dkms_dbversion nvidia

Hey, I also was able to get there using

Code: Select all

cd /var/lib/dkms/
I was just typing

Code: Select all

/var/lib/dkms/
before.


Just scratching the surface of moving around the file system with the terminal.

Entering

Code: Select all

ls -l
while there gave this output:

Code: Select all

total 8
-rw-r--r-- 1 root root    6 Aug 31  2016 dkms_dbversion
drwxr-xr-x 3 root root 4096 Feb 14 02:24 nvidia
Post Reply

Return to “Newbie Questions”