3

After upgrading from Ubuntu 20.10 to 21.04, I get the following error:

sudo dpkg --configure -a
Setting up usrmerge (24ubuntu3) ...

FATAL ERROR: Both /lib/udev/hwdb.bin and /usr/lib/udev/hwdb.bin exist.

You can try correcting the errors reported and running again /usr/lib/usrmerge/convert-usrmerge until it will complete without errors. Do not install or update other Debian packages until the program has been run successfully.

dpkg: error processing package usrmerge (--configure): installed usrmerge package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: usrmerge

I searched for posts and articles about this specific error but I can't find anything. Any ideas to solve it ?

1 Answers1

1

hwdb.bin is a generated file. I did check it in Ubuntu 20.04, /lib/udev/hwdb.bin and /usr/lib/udev/hwdb.bin using stat same exact size and confirmed with vbindiff. They are identical copy, so no need to be merged.

A quick fix would be deleting one of them:

sudo rm /lib/udev/hwdb.bin

It is still bug that better get reported. I should look why such generated file is not put in /var.

user.dz
  • 49,176