I would like to install a program from a PPA that has both Oneiric and Precise versions of the same program. The Precise version of the program is 2.2 whereas the Oneiric version is 2.0
If I try an install the normal way through the software centre or the terminal, the Oneiric 2.0 version will be installed. Is there an easy way to force Ubuntu to install the Precise version?
Edit the file inside
/etc/apt/sources.list.d/
listing the ppa and change the distribution name from oneiric to precise. Of course you may run into dependency problems when you try to install as the precise version may depend on libraries from precise.After having used the kindly provided answer by psusi, I also discovered an alternative GUI-based method for doing this which I'll add as some people may find it easier.
Open the Ubuntu Software centre and select Edit > Software Sources
Click on the PPA contains the program you wish to install and select Edit
Then replace the text 'Oneiric' in the distribution field of the next menu with 'Precise'
Instead of altering your sources list which may result in unwanted dependency problems I suggest using the program prevu, which is designed to backport software packages.