How to avoid updating some packages [duplicate]

Solution 1:

What you want is called Pinning: and can done in several ways. From the link...

Introduction to Holding Packages

Holding a package basically means you're telling the package manager to keep the current version no matter what. This is useful if more recent version of a currently working program breaks after an update.

The following will describe the process of actually holding the package, there are several options to accomplish this<...>

The manual method is the easiest if it is just a few packages...

sudo -i 
echo {package_name} hold | dpkg --set-selections