Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

default "Default-Release" for APT

576 views
Skip to first unread message

Martin T

unread,
Dec 7, 2016, 1:30:03 PM12/7/16
to
Hi,

I read the apt_preferences man page and it says that "To configure the
default release in the configuration file, use: APT::Default-Release
"stable";". While I have multiple distributions in sources.list
file(stable, testing, unstable, jessie-backports), then I don't have
the "Default-Release" configured:

# grep -R Default-Release /etc/apt/
#

What is the default "Default-Release"? How is this determined?


thanks,
Martin

maderios

unread,
Dec 7, 2016, 5:10:04 PM12/7/16
to
Hi
Look at your /etc/apt/apt.conf

My apt.conf for testing:

APT::Install-Recommends "false";
APT::Install-Suggests "false";
APT::Default-Release "testing";

--
Maderios

Martin T

unread,
Dec 7, 2016, 6:20:05 PM12/7/16
to
Hi,

as I showed in my initial post, I don't have that file:

# ls -l /etc/apt/apt.conf
ls: cannot access /etc/apt/apt.conf: No such file or directory
#

That's what made me wondering what is the default release if
"APT::Default-Release" is not configured and based on what this
default release is determined.


thanks,
Martin

maderios

unread,
Dec 8, 2016, 5:10:03 AM12/8/16
to
On 12/08/2016 12:11 AM, Martin T wrote:
> Hi,
>
> as I showed in my initial post, I don't have that file:
>
> # ls -l /etc/apt/apt.conf
> ls: cannot access /etc/apt/apt.conf: No such file or directory
man apt.conf
'/etc/apt/apt.conf is the main configuration file shared by all the
tools in the APT suite of tools'
Maybe it was created by apt-config internal command of apt
https://linux.die.net/man/8/apt-config

--
Maderios

Martin T

unread,
Dec 8, 2016, 6:00:04 AM12/8/16
to
This makes sense, thanks! A good example would be libapparmor1:

# apt-cache policy libapparmor1
libapparmor1:
Installed: 2.9.0-3
Candidate: 2.10.95-7
Version table:
2.10.95-7 0
500 http://ftp.se.debian.org/debian/ unstable/main amd64 Packages
2.10.95-6 0
500 http://ftp.se.debian.org/debian/ testing/main amd64 Packages
2.10.95-4~bpo8+2 0
100 http://ftp.se.debian.org/debian/ jessie-backports/main
amd64 Packages
*** 2.9.0-3 0
500 http://ftp.se.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
#

As seen above, version 2.10.95-7 from "unstable" would get installed
because it is the highest version(checked with "dpkg
--compare-versions") from all three sources with priority 500.


Martin

On Thu, Dec 8, 2016 at 1:35 AM, Mark Fletcher <mark...@gmail.com> wrote:
> It's using all of them, in that case. Then, newest versions of packages
> supersede older ones. Net effect -- you get sid.
>
> Mark
0 new messages