I'm running Debian oldstable (Lenny) and upgrade is not in plan for the next two months at least.

I need to install the stable version of the erlang package, available at the stable (Squeeze) repos.

I did the following:

  • Added the squeeze repositories to my source.list
  • Added the 'apt.conf' file to /etc/apt with the following content:

APT::Default-Release "lenny";

  • Added the 'preferences' file to /etc/apt with the following content:

Package: *

Pin: release a=lenny

Pin-Priority: 700

Package: *

Pin: release a=squeeze

Pin-Priority: 650

(added extra identation because someway the editor is not respecting my line breaks)

I don't want apt to install squeeze packages by default, but only when requested with commands like: apt-get install -t squeeze package

But apt is not respecting this, and IS trying to install the squeeze packages. What am i doing wrong?

link|improve this question

I assume the package and version you want isn't already in lenny-backports? – Mike Renfro Oct 11 '11 at 11:50
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.