Apt pinning is a method that allows you to remain on a stable release of Ubuntu (or other Debian based OS) while grabbing packages from a more recent version.
The solution is to link the apt repository of a more recent version of Ubuntu, yet maintain the default release repository as the current version of Ubuntu. This following example shows linking to Ubuntu Xenial (16.04) apt repository from a Ubuntu Trusty (14.04) installation.