I can also confirm that this happens for _some_ searches, while others do produce results, although not entirely correct results. This looks to be some regex fragility.
Review the following, for example, using apt-file 3.2.2 on Eoan: $ dpkg -S $(which joe); apt-file search joe; echo $? joe: /usr/bin/joe 1 $ dpkg -S $(which bash); apt-file search bash; echo $? bash: /bin/bash librust-cargo-dev: /usr/share/cargo/registry/cargo-0.37.0/src/etc/cargo.bashcomp.sh linux-tools-common: /usr/share/bash-completion/completions/bpftool 0 Here's the same search done with apt-file 2.5.2ubuntu1 on Trusty: $ dpkg -S $(which bash); apt-file search 'bin/bash'; echo $? bash: /bin/bash bash: /bin/bash bash: /usr/bin/bashbug bash-static: /bin/bash-static bashburn: /usr/bin/bashburn bashdb: /usr/bin/bashdb 0 $ dpkg -S $(which joe); apt-file search 'bin/joe'; echo $? joe: /usr/bin/joe joe: /usr/bin/joe joe-jupp: /usr/bin/joe 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1849587 Title: apt-file doesn't find anything To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-file/+bug/1849587/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs