I have a problem with my graphics driver under Ubuntu 22.04 and with the official NVIDIA driver. Due to an error, I have installed the server version. There seems to have been a conflict and I cannot resolve it. The NVIDIA drivers cannot be removed or another driver installed using either remove or purge. I also cannot switch to another driver, as apt always informs me of the missing dependencies and then cancels. Unfortunately, I have too little idea how to identify the cause of the problem and would be grateful for any further ideas.
sudo apt-get upgrade Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: nvidia-driver-550-server : Depends: libnvidia-gl-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: nvidia-dkms-550-server (<= 550.54.15-1) Depends: nvidia-dkms-550-server (>= 550.54.15) Depends: nvidia-kernel-common-550-server (<= 550.54.15-1) but it is not installed Depends: nvidia-kernel-common-550-server (>= 550.54.15) but it is not installed Depends: nvidia-kernel-source-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: libnvidia-compute-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: libnvidia-extra-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: nvidia-compute-utils-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: libnvidia-decode-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: libnvidia-encode-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: nvidia-utils-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: xserver-xorg-video-nvidia-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: libnvidia-cfg1-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Depends: libnvidia-fbc1-550-server (= 550.54.15-0ubuntu0.22.04.2) but it is not installed Recommends: libnvidia-compute-550-server:i386 (= 550.54.15-0ubuntu0.22.04.2) Recommends: libnvidia-decode-550-server:i386 (= 550.54.15-0ubuntu0.22.04.2) Recommends: libnvidia-encode-550-server:i386 (= 550.54.15-0ubuntu0.22.04.2) Recommends: libnvidia-fbc1-550-server:i386 (= 550.54.15-0ubuntu0.22.04.2) Recommends: libnvidia-gl-550-server:i386 (= 550.54.15-0ubuntu0.22.04.2)E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
and if I try to fix the problem or remove the drive completely In get something like:
sudo apt --fix-broken install Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCorrecting dependencies... DoneThe following additional packages will be installed: libnvidia-cfg1-550-server libnvidia-compute-550-server libnvidia-decode-550-server libnvidia-encode-550-server libnvidia-extra-550-server libnvidia-fbc1-550-server libnvidia-gl-550-server nvidia-compute-utils-550-server nvidia-dkms-550-server nvidia-firmware-550-server-550.54.15 nvidia-kernel-common-550-server nvidia-kernel-source-550-server nvidia-utils-550-server xserver-xorg-video-nvidia-550-serverThe following packages will be REMOVED: libnvidia-cfg1-550 libnvidia-compute-550:i386 libnvidia-compute-550 libnvidia-decode-550:i386 libnvidia-decode-550 libnvidia-encode-550:i386 libnvidia-encode-550 libnvidia-extra-550 libnvidia-fbc1-550:i386 libnvidia-fbc1-550 nvidia-compute-utils-550 nvidia-dkms-550-open nvidia-firmware-550-550.54.15 nvidia-kernel-common-550 nvidia-kernel-source-550-open nvidia-utils-550 xserver-xorg-video-nvidia-550The following NEW packages will be installed: libnvidia-cfg1-550-server libnvidia-compute-550-server libnvidia-decode-550-server libnvidia-encode-550-server libnvidia-extra-550-server libnvidia-fbc1-550-server libnvidia-gl-550-server nvidia-compute-utils-550-server nvidia-dkms-550-server nvidia-firmware-550-server-550.54.15 nvidia-kernel-common-550-server nvidia-kernel-source-550-server nvidia-utils-550-server xserver-xorg-video-nvidia-550-server0 upgraded, 14 newly installed, 17 to remove and 38 not upgraded.2 not fully installed or removed.Need to get 0 B/282 MB of archives.After this operation, 137 MB of additional disk space will be used.Do you want to continue? [Y/n] y(Reading database ... 729339 files and directories currently installed.)Preparing to unpack .../libnvidia-gl-550-server_550.54.15-0ubuntu0.22.04.2_amd64.deb ...Unpacking libnvidia-gl-550-server:amd64 (550.54.15-0ubuntu0.22.04.2) ...dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-550-server_550.54.15-0ubuntu0.22.04.2_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libnvidia-gpucomp.so.550.54.15', which is also in package libnvidia-compute-550:amd64 550.54.15-0ubuntu1dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/libnvidia-gl-550-server_550.54.15-0ubuntu0.22.04.2_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to change to the open driver via the GUI, but it refuses any changes. Also apt remove or even purge fail.
sudo ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0 ==modalias : pci:v000010DEd00002783sv00001462sd00005138bc03sc00i00vendor : NVIDIA Corporationdriver : nvidia-driver-550 - third-party non-free recommendeddriver : nvidia-driver-550-server-open - distro non-freedriver : nvidia-driver-550-open - third-party non-freedriver : nvidia-driver-550-server - distro non-freedriver : xserver-xorg-video-nouveau - distro free builtin