I couldn't reproduce this with xenial, bionic or focal. Looking at the code, it is relying on charm-helpers to get the installed package version, which uses apt-cache and dpkg-query calls. Unless the apt cache was slow to update for some reason, it should be seeing the same information as the CLI.
I couldn't reproduce this with xenial, bionic or focal. Looking at the code, it is relying on charm-helpers to get the installed package version, which uses apt-cache and dpkg-query calls. Unless the apt cache was slow to update for some reason, it should be seeing the same information as the CLI.