(#22529) Handle no package message for different dpkg-query versions

dpkg-query changes it's notification of missing package between versions
1.15 and 1.16.  We were testing for the earlier variant 'No packages
found matching'.  This change also handles the later variant of
'dpkg-query: no packages found matching'.

Also, sigh.
Merge pull request #1960 from jpartlow/issue/stable/22529_package_query_should_not_warn_for_later_versions_of_dpkg_query

(#22529) Handle no package message for different dpkg-query versions
(maint) Test of resource package does-not-exist checks stderr

The acceptance test validated stdout, but did not validate absence of
errors logged on stderr.  This fixes that.
Merge branch 'stable'

* stable:
  (maint) Test of resource package does-not-exist checks stderr
  (#22529) Handle no package message for different dpkg-query versions