Hi!
On Tue, 2016-05-31 at 12:26:02 +0200, Bastian Venthur wrote:
> Package: dpkg
> Version: 1.18.7
> Severity: important
> Something is wrong with --print-avail. It used to give usefule package
> information for installed packages, but now it seems to be broken:
It has never printed information about installed packages, but about
available ones (from repositories or external sources). What dpkg used
to do was to update the available information whenever it installed
a package, but that was in principle wrong, as dpkg didn't record the
path to them and as such it had no way to know if those package might
or might not be available. This is the case since dpkg 1.17.11.
> $LANG=C dpkg --print-avail reportbug
> dpkg-query: package 'reportbug' is not available
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
>
> reportbug *is* installed on my system. However,
Sure, but dpkg is complaining that it has no information about the
available packages (i.e. those from the repository).
> $ LANG=C dpkg --print-avail dpkg
> works fine and shows the expected output. I'm using severity important,
> as reportbug-ng needs --print-avail to get the package dependency
> information, see below.
Are you sure it's printing information about the currently installed
package and not an old version? Please compare with the output from
«dpkg-query --status dpkg».
In any case, if you need information about the currently installed
package the correct interface is «dpkg-query --status» anyway. So I'm
planning to close this report if there's no additional information
indicating there's an actual bug here. :)
Thanks,
Guillem