This is a step by step guide shows how to block certain app packages from Ubuntu local repositories, PPAs, or other apt repositories in Ubuntu 25.10 and higher.
Previously, we can set package pin-priority to prevent from or prior to installing certain app packages. Now, in Debian/Ubuntu with apt 3.1+
, a new method is available to include/exclude packages for specified apt sources (repositories).