Problem with apt and nvidia 440 on ubuntu 20.04

I used sudo apt --fix-broken install
(Reading database … 673239 files and directories currently installed.)
Preparing to unpack …/libnvidia-compute-440_440.64.00-0ubuntu1_amd64.deb …
Unpacking libnvidia-compute-440:amd64 (440.64.00-0ubuntu1) over (440.64-0ubuntu0
~0.20.04.1) …
dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-440_440
.64.00-0ubuntu1_amd64.deb (–unpack):
trying to overwrite ‘/usr/lib/x86_64-linux-gnu/libnvidia-allocator.so’, which i
s also in package libnvidia-common-440 440.64-0ubuntu0~0.20.04.1
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-compute-440_440.64.00-0ubuntu1_amd64.deb
====== How can you help? (doc: how-can-i-help - Debian Wiki ) ======

----- Show old opportunities as well as new ones: how-can-i-help --old -----
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Like

I guess some nasty mess is going on with drivers upgrade. After an upgrade in Ubuntu 18.04 I got nvidia drivers messed up and, as a consequence, my cudnn and tensorflow production machine reverted to nouveau drivers. Let us wait for some hours that repositories get updated.

My 18.04 had the same issue since last week after I did the update. If anyone out there know a solution, please help.

I had that problem, too, and it’s solve by force overwrite the package by following command

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

After that, you can continue to fix other broken installs

sudo apt --fix-broken install

25 Likes

Finally, this was what worked for me. Thanks!

1 Like