# Cannot apt --fix, potentially conflicting packages

**URL:** <https://deeptalk.lambda.ai/t/cannot-apt-fix-potentially-conflicting-packages/2120>\
**Category:** Technical Help\
**Created:** [January 23, 2021, 4:56am UTC](https://deeptalk.lambda.ai/t/cannot-apt-fix-potentially-conflicting-packages/2120 "2021-01-23T04:56:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drustsmith](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@drustsmith](https://deeptalk.lambda.ai/u/drustsmith)\
**Post date:** [January 23, 2021, 4:56am UTC](https://deeptalk.lambda.ai/t/cannot-apt-fix-potentially-conflicting-packages/2120/1 "2021-01-23T04:56:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![leonnowsden](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/leonnowsden/32/129_2.png) [@leonnowsden](https://deeptalk.lambda.ai/u/leonnowsden)\
**Post date:** [January 27, 2021, 7:02am UTC](https://deeptalk.lambda.ai/t/cannot-apt-fix-potentially-conflicting-packages/2120/2 "2021-01-27T07:02:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jeremy](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/jeremy/32/235_2.png) [@jeremy](https://deeptalk.lambda.ai/u/jeremy)\
**Post date:** [January 28, 2021, 6:15pm UTC](https://deeptalk.lambda.ai/t/cannot-apt-fix-potentially-conflicting-packages/2120/3 "2021-01-28T18:15:33Z")

</div>

Try this:

```auto
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.
