Package: dpkg Version: 1.18.23 Severity: normal # dpkg -S /usr/lib/systemd/libsystemd-shared-232.so dpkg-query: no path found matching pattern /usr/lib/systemd/libsystemd-shared-232.so # dpkg -S /lib/systemd/libsystemd-shared-232.so systemd: /lib/systemd/libsystemd-shared-232.so # ls -l /lib lrwxrwxrwx. 1 root root 7 Jan 5 15:04 /lib -> usr/lib
I think that dpkg should know that those 2 filenames are the same and return the package systemd in both cases. -- System Information: Debian Release: 9.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-8.1 ii libc6 2.24-9 ii liblzma5 5.2.2-1.2+b1 ii libselinux1 2.6-3 ii tar 1.29b-1.1 ii zlib1g 1:1.2.8.dfsg-5 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 1.4~rc2 pn debsig-verify <none> -- no debconf information