If I have an older Ubuntu release, lets say it is Ubuntu 10.04, and I have to install a package from a newer Ubuntu apt repositories (e.g. from Ubuntu 11.10 repo's) because the newer versions of that package have a feature which I require most. What is the best way of installing the package without affecting or upgrading other packages. Here is what I want to do. But the solution explained there Updates other packages which I don't require.
You didn't mention the specific package, so I can only give generalities.
If possible, the easiest thing would be to find the appropriate
A second, more involved option would be to rebuild the source package using your version of Ubuntu. This would resolve certain classes of dependency problems. Look into
Finally, you could try compiling the upstream version yourself, using
One of these options will likely work for you. If they don't, then you might not have too many options, as it would mean that there are some critical dependencies that can't really be resolved without a system upgrade.
Well you are sort of stuck in that is what is meant by dependencies.
Say you have a package, foo-1.0 , and it depends on bar-1.0
And you want to upgrade to foo-2.0 , and it depends on bar-2.0
so you can not upgrade foo (reliably) without upgrading bar
If you want to install the newer package, either accept the dependencies (probably easiest) or upgrade Ubuntu.
If you think the dependencies are not accurate, best contact the maintainer of the ppa or file a bug report.