I'm using Ubuntu 20.04.03 - server and I would like to hold upgrades for specific ubuntu packages, it means that apt update & upgrade commands would not affect the specific packages that I would like to preserve. I have used those commands for maintaining the desired packages - Kernel-related packages.
apt-mark hold $(uname -r)
apt-mark hold linux-image-generic-hwe-20.04
apt-mark hold linux-headers-generic-hwe-20.04
apt upgrade attempt ended with ignoring the hold that I made:
tried using aptitude also did not work.
Is there another way from blocking a package from being upgraded from the "apt upgrade command?