Nvidia 570 drivers conflict / deps issues in 24.04 why's it so hard :\
https://askubuntu.com/questions/1562776/nvidia-570-drivers-conflict-deps-issues-in-24-04-whys-it-so-hardI have recently set up a new 24.04LTS machine with the 3rd party 570 open drivers (from software&updates) and Cuda 12.8 on a 3060 and spent a while getting it how I had it in 22.04 and now it all works fine.
Then I made the mistake of running apt upgrade and now its a world of strange issues and and the usual stuff I have tried just doesn't work. (fix-broken install etc). I think its started an upgrade (0ubuntu0 to 0ubuntu1??) and stopped half way and now doesn't know which way to turn. Every suggestion I have tried comes back to this error.
At this stage I just want to remove all NVIDIA drivers and start again but even that is failing!trying in safe mode: sudo apt-get remove --purge '^nvidia-.*' and similar just dumps back to this!
I read somewhere I should be trying on something newer than LTS but even an upgrade wouldn't work with deps issues. Just trying to avoid having to rebuild everything yet again!
n@am-inet2:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
dkms libllvm19 libntfs-3g89t64 libnvidia-common-570 libnvidia-encode-570 libnvidia-extra-570 libnvidia-fbc1-570 libnvidia-gl-570 libpkgconf3
libxnvctrl0 nvidia-dkms-570-open nvidia-firmware-570-570.195.03 nvidia-kernel-source-570-open nvidia-settings pkg-config pkgconf pkgconf-bin
screen-resolution-extra xserver-xorg-video-nvidia-570
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libnvidia-cfg1-570 libnvidia-compute-570 libnvidia-decode-570 nvidia-firmware-570 nvidia-persistenced xserver-xorg-video-nvidia-570
The following packages will be REMOVED:
nvidia-compute-utils-570 nvidia-utils-570
The following NEW packages will be installed:
nvidia-firmware-570 nvidia-persistenced
The following packages will be upgraded:
libnvidia-cfg1-570 libnvidia-compute-570 libnvidia-decode-570 xserver-xorg-video-nvidia-570
4 upgraded, 2 newly installed, 2 to remove and 2 not upgraded.
170 not fully installed or removed.
Need to get 0 B/114 MB of archives.
After this operation, 92.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 172801 files and directories currently installed.)
Preparing to unpack .../nvidia-firmware-570_570.195.03-0ubuntu1_amd64.deb ...
Unpacking nvidia-firmware-570 (570.195.03-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-firmware-570_570.195.03-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/lib/firmware/nvidia/570.195.03/gsp_ga10x.bin', which is also in package nvidia-firmware-570-570.195.03 570.195.03-0ubuntu0.24.
04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-firmware-570_570.195.03-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am guessing I want to upgrade all of the below but I haven't found a command to just do it without mithering on about the above; need a --force-yes-really type thing.
n@am-inet2:~$ apt list -i | grep 0ubuntu0 | grep nvidia
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnvidia-cfg1-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
libnvidia-compute-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
libnvidia-decode-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
libnvidia-encode-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
libnvidia-fbc1-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
nvidia-compute-utils-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
nvidia-firmware-570-570.195.03/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,auto-removable]
nvidia-utils-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
xserver-xorg-video-nvidia-570/noble-updates,noble-security,now 570.195.03-0ubuntu0.24.04.1 amd64 [installed,upgradable to: 570.195.03-0ubuntu1]
Odd thing is despite all this everything works fine (not a big gamer but heavy graphics apps).
Any thoughts that might help?
cheers
A



