#1060161 apt install -V sometimes does not show a version while it knows the version

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Witold Baryluk
Date:
2024-01-06 17:09:03 UTC
Severity:
normal
#1060161#5
Date:
2024-01-06 17:05:51 UTC
From:
To:
Trying to install wine from winehq, on debian testing. No issue with
that, but got an interesting result with -V:

...
...
Suggested packages:
   libcurl4-doc (8.5.0-2)
   libgnutls28-dev (3.8.2-1)
   libidn-dev (1.41-1)
   libkrb5-dev (1.20.1-5)
   libldap2-dev (2.5.13+dfsg-5)
   librtmp-dev (2.4+20151223.gitfa8646d.1-2+b2)
   libssh2-1-dev (1.11.0-4)
   gdbm-l10n:i386
   hplip (3.22.10+dfsg0-4)
   hplip:i386 (3.22.10+dfsg0-4)
   libtap-harness-archive-perl (0.18-4)
Recommended packages:
   sane-airscan (0.99.27-1+b1)
   libodbc1
   libtiff5
   libodbc1:i386
   libtiff5:i386
The following packages will be REMOVED:
   sane-airscan (0.99.27-1+b1)
   wine


I can understand that apt does not always show exact version in
Suggested and Recommended, because these packages might not even exist,
and version might complexly depend whetever it is going to be installed
or not, some of them might conflict with each other, and in general
could be costly to compute.


But, REMOVED section should clear, because it should show the currently installed version:

user@debian:~$ dpkg -l wine
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Architecture Description
+++-==============-==============-============-===========================================
ii  wine           8.0.1~repack-3 all          Windows API implementation - standard suite


So, no idea why it is not showing version in the case of wine.