Problem with apt and nvidia 450 on ubuntu 20.04

(This bug is a replica of Problem with apt and nvidia 440 on ubuntu 20.04).

Installing nvidia-driver-450 throws the following error on Ubuntu 20.04;

sudo apt-get install nvidia-driver-450
Preparing to unpack .../03-libnvidia-compute-450_450.36.06-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-450:amd64 (450.36.06-0ubuntu1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-CThYsd/03-libnvidia-compute-450_450.36.06-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/', which is also in package libnvidia-extra-440:amd64 440.82+really.440.64-0ubuntu6
 	"trying to overwrite '/usr/lib/x86_64-linux-gnu/"

kim-kim found a workaround to this bug;

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libnvidia-compute-450_450.36.06-0ubuntu1_amd64.deb
sudo apt --fix-broken install
1 Like