Sometimes, for various reasons not covered in this post, you may need to stop a package/program from upgrading to a later version. Here’s how to do it. In these examples I’ll use teamviewer as the package. Obviously you need to change the package name to suit you!
To hold a package:
sudo apt-mark hold teamviewer
To show held packages:
sudo apt-mark showhold
To unhold a package (allow it to install to latest version):
sudo apt-mark unhold teamviewer