I noticed an interesting phenomenon and I am looking for an explanation. On my Ubuntu system, dpkg-query cannot find some uninstalled packages which apt-cache can find. For instance,
dpkg-query -l libssl-dev
gives me:
dpkg-query: no packages found matching libssl-dev
while:
apt-cache show libssl-dev
finds the package information. At the same time, dpkg-query can locate other uninstalled packages, e.g. gimp and show their status as uninstalled. Why are some packages not visible to dpkg-query?