Simple reproducer:
# cat /etc/apt/sources.list.d/test.list deb [trusted=yes] copy://home/adconrad/apt-test ./ # cat /home/adconrad/apt-test/Packages Package: apt Priority: important Section: admin Architecture: amd64 Version: 99:1 Depends: test (>= 99:1) # apt-get update # apt-get dist-upgrade | grep upgraded 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. # apt-get autoremove | grep upgraded 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. # apt-get upgrade | grep upgraded 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. # apt-get install hello | grep upgraded 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Note that only "dist-upgrade" appears to fail to report the package being held because it's uninstallable.
Simple reproducer:
# cat /etc/apt/ sources. list.d/ test.list home/adconrad/ apt-test ./ apt-test/ Packages
deb [trusted=yes] copy://
# cat /home/adconrad/
Package: apt
Priority: important
Section: admin
Architecture: amd64
Version: 99:1
Depends: test (>= 99:1)
# apt-get update
# apt-get dist-upgrade | grep upgraded
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get autoremove | grep upgraded
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
# apt-get upgrade | grep upgraded
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
# apt-get install hello | grep upgraded
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Note that only "dist-upgrade" appears to fail to report the package being held because it's uninstallable.