How do you disable, lock or blacklist certain package updates using apt tool in debian and ubuntu distributions.

To hold a package

sudo apt-mark hold apache2

To unhold a package

sudo apt-mark unhold apache2