On Tue, 05 Nov 2024 15:21:03 -0500
dml@facundo.ag wrote:
Buenas tardes todo el mundo,
en mi archivo /etc/apt/sources.list tengo configurados los
repositorios
testing, unstable, y experimental, y en /etc/apt/preferences lo
siguiente:
Package: *
Pin: release a=testing
Pin-Priority: 900
Package: *
Pin: release a=unstable
Pin-Priority: 800
Cosa que funciona perfecto porque siempre instalo desde testing por
defecto y
para algunas de las otras ramas lo explicito si es necesario.
Ahora, estos días estuve bajando varios paquetes fuentes con
apt-source
y noté
que por defecto bajaba desde unstable, tenía que indicar con "-t
testing" o
"<paquete>/testing". Había asumido (erróneamente) que por
apt_preferences lo
iba a hacer de testing. Luego de leer el manual (de apt_preferences)
creo no es
para este caso. Quizás estoy pasando algo por alto.
Así que va la consulta, ¿hay alguna manera de configurar por defecto
de
que
rama bajar los paquetes fuente con apt-source?
apt-source no lo encuentro en mi debian, supongo que te referirás
ejecutar:"apt source".
El man de APT_PREFERENCES(5) llega un momento que dice:
APT's Default Priority Assignments
If there is no preferences file or if there is no entry in the
file that applies to a particular version then the
priority assigned to that version is the priority of the
distribution to which that version belongs. It is
possible to single out a distribution, "the target release",
which receives a higher priority than other
distributions do by default. The target release can be set on
the apt-get command line or in the APT
configuration file /etc/apt/apt.conf. Note that this has
precedence over any general priority you set in the
/etc/apt/preferences file described later, but not over
specifically pinned packages. For example,
apt-get install -t testing some-package (como lo haces)
APT::Default-Release "stable"; (lo que debería ir en
/etc/apt/apt.conf para no usar -t)
Creo que deberías de comprobar si tienes el fichero /etc/apt/apt.conf y
qué hay en él, o sinó crearlo aunque sea sólo por probar a ver si suena
la flauta.
Apa, suerte!.
Desde ya, muchas gracias :)