How to uninstall an old installation of nvidia

Kernels & Hardware, configuring network, installing services

How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-06 15:18

I loadaded nvidia form an alternative source, because wiki not yet updated, lame excuse.
Probem is that it is not compatible with Debian version.
I need help to uninstall this installation and install nvidia-driver from repo.
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby phenest » 2019-09-06 18:13

What version of Debian are you running, and where did you get the driver from?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D
User avatar
phenest
 
Posts: 1703
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-07 15:36

I am running buster+backports.
Driver came from script sgfxi, I think that it downloads form nvidia site directly, all I know is that when I run
Code: Select all
apt install --reinstall nvidia-driver
, it reports an incompatibility with Debian, and prompts to uninstall but the uninstall cannot complete because it stops when I check the default not to change X configuration.
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-07 15:40

Code: Select all
ckosloff@crosshair:~$ su -
Password:
root@crosshair:~# apr intall --reinstall nvidia-driver
-bash: apr: command not found
root@crosshair:~# apt install --reinstall nvidia-driver 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@crosshair:~# dpkg --congfigure -a
dpkg: error: unknown option --congfigure

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
root@crosshair:~# dpkg --configure -a
Setting up glx-alternative-mesa (1.0.0) ...
Setting up nvidia-installer-cleanup (20151021+9) ...

WARNING: The '--no-runlevel-check' option is deprecated:  nvidia-installer will
         ignore this option.


Welcome to the NVIDIA Software Installer for Unix/Linux

Detected 8 CPUs online; setting concurrency level to 8.

If you plan to no longer use the NVIDIA driver, you should make sure that no X
screens are configured to use the NVIDIA X driver in your X configuration file.
If you used nvidia-xconfig to configure X, it may have created a backup of your
original configuration. Would you like to run `nvidia-xconfig
--restore-original-backup` to attempt restoration of the original X
configuration file?
  [default: (N)o]: No
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby sunrat » 2019-09-07 15:49

I haven't used smxi for ages but doesn't it provide an option to uninstall?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2796
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: How to uninstall an old installation of nvidia

Postby stevepusser » 2019-09-07 15:58

The system was attempting to do the right thing with nvidia-installer-cleanup, but it seems you didn't follow through.

Description: cleanup after driver installation with the nvidia-installer
This package ensures that no remnants of the non-free NVIDIA graphics
drivers that were installed with the nvidia-installer remain on the
system. Such an installation conflicts with the packaged drivers.
.
Furthermore using the nvidia-installer to install a new version of the
drivers is prevented as long as this package is installed.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-07 16:20

I could not follow through, after selecting default option No system stopped.
I want to do the cleanup and reinstall
Code: Select all
ckosloff@crosshair:~$ su -
Password:
root@crosshair:~# nvidia-installer-cleanup
-bash: nvidia-installer-cleanup: command not found
root@crosshair:~#
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-07 16:57

sunrat wrote:I haven't used smxi for ages but doesn't it provide an option to uninstall?

I would have to run sgfxi again to answer that, I don't think that an option is present since I just type sgfxi at the prompt.
Thank you.
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby Dai_trying » 2019-09-07 18:32

Can't you take a backup copy of xorg.conf and then answer yes to the question to complete un-installation and then simply copy it back afterwards?
Dai_trying
 
Posts: 752
Joined: 2016-01-07 12:25

Re: How to uninstall an old installation of nvidia

Postby stevepusser » 2019-09-07 20:42

Sgfxi has a large amount of options. You just need to enter "sgfxi -h" to get help for them.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-08 22:04

Dai_trying wrote:Can't you take a backup copy of xorg.conf and then answer yes to the question to complete un-installation and then simply copy it back afterwards?

Yes, did that, thanks for suggestion, but the same thing happened, process is halted, I think that I have to submit bug.
FYI, this is what happens when typing Y or N:

Code: Select all
Welcome to the NVIDIA Software Installer for Unix/Linux

Detected 8 CPUs online; setting concurrency level to 8.

If you plan to no longer use the NVIDIA driver, you should make sure that no X screens
are configured to use the NVIDIA X driver in your X configuration file. If you used
nvidia-xconfig to configure X, it may have created a backup of your original
configuration. Would you like to run `nvidia-xconfig --restore-original-backup` to
attempt restoration of the original X configuration file?
  [default: (N)o]: N

Progress: [  0%] [..................................................................]
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-12 01:25

stevepusser wrote:Sgfxi has a large amount of options. You just need to enter "sgfxi -h" to get help for them.

I followed suggestion and ran sgfxi -n to cleanup with no effect.
I think I have to submit bug because I am continuously being prompted to run dpkg --configure -a which yields the same result of stopping the system after asking the above-mentioned questions.
I don't know how to uninstall previous installation of nvidia and I cannot even update system because commands apt-update && apt dist-upgrade fail also.
So, report bug?
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: How to uninstall an old installation of nvidia

Postby ckosloff » 2019-09-17 23:45

I got tired of trying to solve this problem with gentle manners, so finally I had to use brute force because I was left without video and desktop.
SO i decided to reinstall system from the netinst CD, this time i installed it with generic drivers and selected KDE as desktop environment, system booted into nouveau , which gave me a quite satisfactory experience of using a desktop with two monitors although it still seems a bit weak because it crashed video more often, anyway I will stick with it, mostly because there is no maintainer in Debian for nvidia.
User avatar
ckosloff
 
Posts: 456
Joined: 2011-12-29 15:08
Location: South Florida, USA


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable