Error updating linux-libc-dev on A04

linux-libc-dev/hirsute 22.02.1 arm64 [upgradable from: 21.08.6]

Unpacking linux-libc-dev:arm64 (22.02.1) over (21.08.6) ...
dpkg: error processing archive /var/cache/apt/archives/linux-libc-dev_22.02.1_arm64.deb (--unpack):
 trying to overwrite shared '/usr/include/asm-generic/fcntl.h', which is different from other instances of package linux-libc-dev:arm64
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-libc-dev_22.02.1_arm64.deb

Now apt keeps telling me

You might want to run 'apt --fix-broken install' to correct these.

Which of course fails with the same error.

Any advice?

I may have horribly broken something, but I did

sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-libc-dev_22.02.1_arm64.deb

and that overwrote a bunch of headers. Apt is happy now.

Coincidentally (?) I had the same issue yesterday, and this post was a big help! You have my thanks.

1 Like