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
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
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.