Comment 2 for bug 1973285

Revision history for this message
theofficialgman (theofficialgman) wrote (last edit ): Re: broken package on 22.04 libraspberrypi0

I can give some extra insight. the problem is with attempting to install the libraspberrypi0:armhf dependency in addition which users might want to do in a multiarch arm64 and armhf scenario.

The problem is that both the armhf and arm64 package contain the `/usr/share/lintian/overrides/libraspberrypi0` file. This files contents do not match on the armhf and arm64 package, causing apt to error saying that there is a conflicting file (which there is).

```
dpkg: error processing archive /tmp/apt-dpkg-install-UXjmv9/250-libraspberrypi0_0~20200520+git2fe4ca3-0ubuntu5~21.10.1_armhf.deb (--unpack):

 trying to overwrite shared '/usr/share/lintian/overrides/libraspberrypi0', which is different from other instances of package libraspberrypi0:armhf

Errors were encountered while processing:

 /tmp/apt-dpkg-install-UXjmv9/250-libraspberrypi0_0~20200520+git2fe4ca3-0ubuntu5~21.10.1_armhf.deb

needrestart is being skipped since dpkg has failed
```

The fix is to add the lintian overrides from armhf to arm64 and vice versa so the files match and update in all ubuntu releases, since its a problem on every release since the raspberrypi-userland package package was added (focal and up). the official raspbian/raspberrypi foundation packages do not have this issue.