On Sat, 27 Nov 2021 18:58:53 +0000 Ray Dillinger <b...@sonic.net> wrote:
> Package: dpkg
> Version: 1.20.9
> Distribution: Bookworm
> Architecture: AMD64
> 
> Relevant because this could have something to do with which utilities
> are statically linked to bash or exactly which coreutils we're talking
> about: 
> bash is version 5.1-3.1 and coreutils is version 8.32-4.1
> 
> 
> [...]
> 


Hi Ray,

This is a consequence of the currently incomplete "/usr-merge"
transition, where /bin has been merged into /usr/bin without dpkg's back.

As such, dpkg knows those paths only by their "officially declared"
paths in /bin.  It is obviously confusing to you as a user because you
then have to "know" whether to search for /usr/bin/P or /bin/P.

As a work around you can use a wild card search, such as:

   dpkg -S '*/bin/ls'

Which will work in both cases (but can also provide false matches
because the '*' can match other directories as well).

Please note that /usr-merge is a controversial point in Debian.  As such
you are likely to meet conflicting views on it when reviewing
personal/unofficial Debian guides or interacting with Debian
maintainers.  There are no official ones yet as the transition is still
being worked out and the transition is unfortunately not "trivial"
(there are no "couldn't you just do X" without its own undesirable
side-effects or controversies).

Thanks,
~Niels

Reply via email to