#929102 apt-mark lies with uninstalled packages

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
積丹尼 Dan Jacobson
Date:
2019-10-02 18:57:03 UTC
Severity:
normal
#929102#5
Date:
2019-05-17 06:54:43 UTC
From:
To:
Even though using apt-mark affects aptitude's decision making, but there
is no way to detect it via the "show" command.

# aptitude show gcc-9-base|sum
11672     1
# apt-mark hold gcc-9-base
gcc-9-base set on hold.
# aptitude show gcc-9-base|sum
11672     1
# aptitude -vvvv show gcc-9-base|sum
11672     1

#929102#10
Date:
2019-10-02 17:57:17 UTC
From:
To:
Control: tags -1 moreinfo

Is the package gcc-9-base actually installed?  If yes, I cannot
reproduce this:

,----
| # aptitude show gcc-9-base | grep ^State
| State: installed
| # apt-mark hold gcc-9-base
| gcc-9-base set on hold.
| # aptitude show gcc-9-base | grep ^State
| State: installed [held]
`----

For packages which are not installed I can reproduce the behavior, but
in that case it is actually apt-mark which is lying to you because it
does not write anything to /var/lib/apt/extended_states.

Cheers,
       Sven

#929102#25
Date:
2019-10-02 18:34:30 UTC
From:
To:
reassign 929102 apt
found 929102 1.8.4
retitle 929102 apt-mark lies with uninstalled packages
thanks

SJ> For packages which are not installed I can reproduce the behavior, but
SJ> in that case it is actually apt-mark which is lying to you because it
SJ> does not write anything to /var/lib/apt/extended_states.

Yes. Please somebody fix the bug/lying for uninstalled packages.