How to upgrade to a newer version of a package than is available in the repository?

In this particular case then the GRAMPS website provides a download link for a Ubuntu .deb package of version 3.2.5.

On this listing page select gramps_3.2.5-1_ubuntu10.deb which should be easily installable by double clicking on the downloaded file.