[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get pinning ? - Sarge / Stable - only install certain/specific packages from "testing"



On Sat, Jul 01, 2006 at 12:22:47PM -0700, Willie Wonka wrote:
> Willie Wonka wrote:
> 
> Ok folks - now I'm really confused...but hey; I may just get it (have it) right
> *crosses-fingers*
> 
> This was done after I reread the 'man' pages for 'apt_preferences', apt.conf,
> sources.list _and_ after reading the info;
> <http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html#s-default-version>
> as suggested previously.
> 
> I have now also altered /etc/apt/preferences;
> ~$ cat /etc/apt/preferences
> Package: hdparm
> Pin: release a=testing
> Pin-Priority: 990

what does apt-cache policy hdparm show?

> 
> and I created /etc/apt/apt.conf and added an entry;
> ~$ cat /etc/apt/apt.conf
> APT::Default-Release "stable";
> 
> I have also installed "apt-show-versions" (just in the hopes of gleaning
> valuable package info) - but that installation shouldn't be relevant to my
> question(s). 
> 
> Anyway - after issuing this command;
> 
> ~$ sudo apt-get -s -t testing install hdparm
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following extra packages will be installed:
>   busybox klibc-utils libc6 libc6-dev libcairo2 libdbus-1-2 libdbus-glib-1-2
> libfreetype6
>   libglib2.0-0 libhal1 libklibc libpango1.0-0 libpango1.0-common libselinux1
> libsepol1
>   libusb-0.1-4 libvolume-id0 locales lsb-base makedev module-init-tools tzdata
> Suggested packages:
>   apmd glibc-doc libfreetype6-dev ttf-kochi-gothic ttf-kochi-mincho
> ttf-thryomanes ttf-baekmuk
>   ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
> ttf-arphic-bkai00mp
> Recommended packages:
>   libglib2.0-data x-ttcidfont-conf
> The following packages will be REMOVED:
>   base-config initrd-tools kernel-image-2.6-686
> kernel-image-2.6.8-2-386
> kernel-image-2.6.8-3-686

ummm... this is bad, since its your running kernel. 

> The following NEW packages will be installed:
>   busybox klibc-utils libcairo2 libdbus-1-2 libdbus-glib-1-2 libhal1 libklibc
> libsepol1
>   libvolume-id0 lsb-base tzdata
> The following packages will be upgraded:
>   hdparm libc6 libc6-dev libfreetype6 libglib2.0-0 libpango1.0-0
> libpango1.0-common libselinux1
>   libusb-0.1-4 locales makedev module-init-tools
> 12 upgraded, 11 newly installed, 5 to remove and 778 not upgraded.
> Remv base-config (2.53.10 Debian:3.1r2/stable)
> Remv kernel-image-2.6-686 (1:2.6.15-8 Debian:testing)
> Remv kernel-image-2.6.8-3-686 (2.6.8-16sarge3 Debian-Security:3.1/stable)
> Remv kernel-image-2.6.8-2-386 (2.6.8-16sarge1 Debian:3.1r2/stable,
> Debian-Security:3.1/stable)
> Remv initrd-tools (0.1.84.1 Debian:testing)
> Inst tzdata (2006g-2 Debian:testing)
> Inst libc6-dev [2.3.2.ds1-22sarge3] (2.3.6-15 Debian:testing) []
> Inst locales [2.3.2.ds1-22sarge3] (2.3.6-15 Debian:testing) []
> Inst libc6 [2.3.2.ds1-22sarge3] (2.3.6-15 Debian:testing)
> Conf tzdata (2006g-2 Debian:testing)
> Conf libc6 (2.3.6-15 Debian:testing)

***

> 
> Am I to presume that *IF* I had actually gone through with this - then All
> those packages above *_and_their_dependencies_* will be resolved?
> 
> It turns out 'hdparm' (the one lone pkg I would like to "upgrade"),
> requires/depends on a newer version of "libc6" (which is H_U_G_E pkg) with many
> many system libraries.

*** yeah, I'd bet this is your problem. Is kernel-image-2.6.8 in sarge
dependent on the earlier version of libc6? my sid system shows that
the kernel(linux) image packages recommend libc6, but some of its
dependencies depend on libc6, so a libc6 upgrade would cascade through
the whole system. To run a testing version of hdparm, you need a
testing version of libc6 which means you need a testing version of
kernel-image dependencies which means you need a testing version of
your kernel-image.

> 
> The REMOVED entries concern me deeply -- am I to understand that my
> Kernel-image(s) will be auto-Upgraded?? Is this necessary to resolve all the
> various (new and upgraded) package dependencies? Right now, I'm running;
> 
> ~$ uname -a
> 	Linux <hostname> 2.6.8-3-686 #1 Thu May 25 02:27:57 UTC 2006 i686 GNU/Linux
> 
> Are the "Remv" lines showing me which version I will be upgraded to, after the
> Removal? Taking this line For ex;
> 
> 	Remv kernel-image-2.6.8-3-686 (2.6.8-16sarge3 Debian-Security:3.1/stable)
> 


no, its says it will REMOVE your kernel, as in you'll have no kernel
when its down.

> Is that line above showing me that after removing
> kernel-image-2.6.8-3-686...that I'll then be either "upgraded to" or 
> "installed" or "running" kernel-image-2.6.8-16 ? Why on earth does it want to
> remove my working Kernel images?


because you've upgraded libc6 which the kernel-images indirectly
depend on. 

> 
> Apologies, but I don't see packages like "Base-config" and
> "Kernel-image-x.x.x..." in any of these list headers above;
> 
> 	The following packages will be upgraded:
> 	The following NEW packages will be installed:
> 	The following extra packages will be installed:
> 	
> What is one to make of this? Is my sudo command above a crash-n-burn command?

? the sudo is not a problem. its a requirement to run apt-get, unless
you change users to root. but yes, the command above that begins
'sudo' is forcing you to upgrade a bunch of stuff just to get the one
package from testing, hdparm. In the process I think its trying to
break your system.

> ...or have I found (stumbled onto would be more appropro) one of the 'correct'
> ways to run a (very mildly) mixed system. I want to upgrade ONE application --
> 'hdparm'.

well, if running without a kernel is a correct way, then sure ;-P

ISTM, though I haven't followed your thread closely, that what you
want to do is not do-able because of the libc6 upgrade. 

I think you might be much better served to try and pull the sources
from testing and compile them yourself on your old version of libc6,
or bite the bullet and move all the way up to testing which seems to
be what you'd HAVE to do to use the testing version of hdparm anyway. 

maybe backports has a copy for you?

Please though get advice from others because I don't run sarge and I'm
guessing at all this. 

.02, ymmv, IANA<insert appropriate career here> etc.

A

Attachment: signature.asc
Description: Digital signature


Reply to: