Home » Questions » Computers [ Ask a new question ]

How do I get apt pinning to install the minimum required from the unstable distribution

How do I get apt pinning to install the minimum required from the unstable distribution

I've been around this APT pinning process a couple of times and I still can't get it to do what I want.

Asked by: Guest | Views: 258
Total answers/comments: 1
bert [Entry]

"And the answer is... Aptitude.

The config as stated in the question is fine. But where ""apt-get install firefox-3.5/lucid"" complains of unmet dependencies ""aptitude install firefox-3.5/lucid"" complains and then offers to correct the problem and in every example I've tried the fix is exactly the behavior I'm looking for.

Hugin on my current system makes a good example:

'apt-get install hugin -t lucid' wants to install 27 packages, all from Lucid, most of them libraries.

""apt-get install hugin/lucid"" complains that hugin has unmet dependencies

""aptitude install hugin/lucid"" offers to install 3 packages from Lucid and everything else from Karmic

$ aptitude install hugin/lucid
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
The following packages are BROKEN:
hugin
The following NEW packages will be installed:
autopano-sift{a} binfmt-support{a} cli-common{a} enblend{a} enfuse{a}
freeglut3{a} libboost-thread1.38.0{a} libgdiplus{a} libglade2.0-cil{a}
libglib2.0-cil{a} libgtk2.0-cil{a} libimage-exiftool-perl{a}
libmono-cairo2.0-cil{a} libmono-corlib2.0-cil{a}
libmono-i18n-west2.0-cil{a} libmono-security2.0-cil{a}
libmono-sharpzip2.84-cil{a} libmono-system2.0-cil{a} libpano13-1{a}
libplot2c2{a} mono-2.0-gac{a} mono-gac{a} mono-runtime{a}
0 packages upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.6MB of archives. After unpacking 37.1MB will be used.
The following packages have unmet dependencies:
hugin: Depends: hugin-tools (= 2009.2.0+dfsg-2ubuntu1) but it is not installable
The following actions will resolve these dependencies:

Install the following packages:
hugin-data [2009.2.0+dfsg-2ubuntu1 (lucid)]
hugin-tools [2009.2.0+dfsg-2ubuntu1 (lucid)]
libpano13-bin [2.9.14-2 (karmic, lucid)]

Score is -17

Accept this solution? [Y/n/q/?]"