Cannot apt --fix, potentially conflicting packages - Technical Help - DeepTalk - Deep Learning Community
Cannot apt –fix, potentially conflicting packages
post by drustsmith on Jan 22, 2021
After a recent apt update on my lambda hardware I hit this issue. It looks like it may be a circular conflict between the ubuntu version of the drivers and the lambda version.
The following packages have unmet dependencies:
libnvidia-gl-460 : Breaks: libnvidia-gl-460:i386 (!= 460.32.03-0lambda0~20.04.1) but 460.32.03-0ubuntu0.20.04.1 is installed
libnvidia-gl-460:i386 : Breaks: libnvidia-gl-460 (!= 460.32.03-0ubuntu0.20.04.1) but 460.32.03-0lambda0~20.04.1 is installed
libnvidia-ifr1-460:i386 : Depends: libnvidia-gl-460:i386 (= 460.32.03-0lambda0~20.04.1) but 460.32.03-0ubuntu0.20.04.1 is installed
Then when I try doing apt --fix I get:
Do you want to continue? [Y/n] Y
dpkg: warning: downgrading libnvidia-gl-460:i386 from 460.32.03-0ubuntu0.20.04.1 to 460.32.03-0lambda0~20.04.1
(Reading database … 330961 files and directories currently installed.)
Preparing to unpack …/libnvidia-gl-460_460.32.03-0lambda0~20.04.1_i386.deb …
Unpacking libnvidia-gl-460:i386 (460.32.03-0lambda0~20.04.1) over (460.32.03-0ubuntu0.20.04.1) …
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-460_460.32.03-0lambda0~20.04.1_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libnvidia-gl-460/changelog.Debian.gz’, which is different from other instances of package libnvidia-gl-460:i386
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-460_460.32.03-0lambda0~20.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then trying to fix that:
david:~$ sudo dpkg -P libnvidia-gl-460:i386
dpkg: dependency problems prevent removal of libnvidia-gl-460:i386:
libnvidia-ifr1-460:i386 depends on libnvidia-gl-460 (= 460.32.03-0lambda0~20.04.1).
libnvidia-gl-455:i386 depends on libnvidia-gl-460.
dpkg: error processing package libnvidia-gl-460:i386 (--purge):
dependency problems - not removing
Errors were encountered while processing:
libnvidia-gl-460:i386
Any advise would be excellent. I’m intending to just run the lambda versions.
post by leonnowsden on Jan 27, 2021
Please try this: sudo apt-get update && sudo apt-get dist-upgrade. This should upgrade it properly then restart via: sudo reboot and it should work perfectly fine again.
post by jeremy on Jan 28, 2021
Try this:
sudo apt install --fix-broken
Then reboot.
We have seen this issue crop up with other users recently, and are current looking into the potential causes.