I wanted to upgrade my nvidia-drivers from nvidia-drivers-legacy-390 to the newest stable nvidia-drivers.
By upgrading the drivers i got this errors:
msauer@t520:~$ sudo apt-get install nvidia-driver ... The following NEW packages will be installed: nvidia-driver 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. 1 not fully installed or removed. ... Selecting previously unselected package nvidia-driver. .... Preparing to unpack .../nvidia-driver_460.91.03-1_amd64.deb ... Unpacking nvidia-driver (460.91.03-1) ... dpkg: dependency problems prevent configuration of nvidia-driver: nvidia-driver depends on xserver-xorg-video-nvidia (= 460.91.03-1); however: Package xserver-xorg-video-nvidia is not installed. dpkg: error processing package nvidia-driver (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: nvidia-driver E: Sub-process /usr/bin/dpkg returned an error code (1) As far as i can see, i will need to install the xserver-xorg-video-nvidia packages (should be done automatically, because its a dependency). When i try to install the package manually, its exactly the same problem, event that the package nvidia-driver is not installed, yet.
So, the nvidia-driver package is still breaking the install process. When i try to remove both packages:
msauer@t520:~$ sudo apt-get remove nvidia-driver ... The following packages will be REMOVED: nvidia-driver xserver-xorg-video-nvidia 0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded. 2 not fully installed or removed. ... Do you want to continue? [Y/n] Y (Reading database ... 593804 files and directories currently installed.) Removing nvidia-driver (460.91.03-1) ... Removing xserver-xorg-video-nvidia (460.91.03-1) ... dpkg: error processing package xserver-xorg-video-nvidia (--remove): installed xserver-xorg-video-nvidia package post-removal script subprocess returned error exit status 20 dpkg: too many errors, stopping Errors were encountered while processing: xserver-xorg-video-nvidia Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) Also, when i manually select the xserver-xorg-video-nvidia package.
Unfortunately, i cant append a list of my installed packages, because StackExchange things about spam.
I dont see any problem on installing the requested packages. The dependencies could get fullfilled. Also, i use the official debian stable repositories.
What can i do to install the nvidia-driver package? Do i have to remove / purge all other nvidia libs and packages beforehand?