Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #225929

aptitude why (Was: Re: After software update systemd runs into timeouts)

From Urs Thuermann <urs@isnogud.escape.de>
Newsgroups linux.debian.user
Subject aptitude why (Was: Re: After software update systemd runs into timeouts)
Date 2020-08-06 10:20 +0200
Message-ID <AAJi1-85U-1@gated-at.bofh.it> (permalink)
References (1 earlier) <AAsTT-6pA-1@gated-at.bofh.it> <AAusF-7r1-3@gated-at.bofh.it> <AAxTz-18h-5@gated-at.bofh.it> <AAyZj-1Lu-1@gated-at.bofh.it> <AAC6R-3yD-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


David Wright <deblis@lionunicorn.co.uk> writes:

> On Wed 05 Aug 2020 at 22:53:26 (+0200), Urs Thuermann wrote:
> 
> > Should this be considered a bug?  Shouldn't 'aptitude why' show the
> > packages that depend on it?
> 
> Why not read the man page:
> 
>        Note
>        aptitude why does not perform full dependency
>        resolution; it only displays direct relationships
>        between packages. For instance, if A requires B, C
>        requires D, and B and C conflict, “aptitude why-not D”
>        will not produce the answer “A depends on B, B
>        conflicts with C, and D depends on C”.
> 
>    By default aptitude outputs only the "most installed,
>    strongest, tightest, shortest" dependency chain. That is,
>    it looks for a chain that only contains packages which are
>    installed or will be installed; it looks for the strongest
>    possible dependencies under that restriction; it looks for
>    chains that avoid ORed dependencies and Provides; and it
>    looks for the shortest dependency chain meeting those
>    criteria. These rules are progressively weakened until a
>    match is found.

This is exactly what made me think it is a bug.  aptitude should show
the strongest chain, and "Depends" is stronger than "Recommends".  But
aptitude shows a "Recommends" although a "Depends" exists:

$ aptitude why libpam-systemd
i   systemd Recommends libpam-systemd
$ aptitude why policykit-1 libpam-systemd
i A policykit-1 Depends libpam-systemd

But now I see reason: policykit-1 is also installed only because
virt-manager *recommends* libvirt-daemon-system which depends on
policykit-1:

$ aptitude why virt-manager libpam-systemd
i   virt-manager          Recommends libvirt-daemon-system (>= 1.2.7)
i A libvirt-daemon-system Depends    policykit-1
i A policykit-1           Depends    libpam-systemd

But since that chain is longer, aptitude shows the recommendation of
systemd.  In the output of aptitude purge in my other mail I hadn't
realized that libvirt-daemon-system is also only automatically
installed.

But thanks anyway for pointing out these sections of the man page.  I
wasn't aware of all the details and now understand better what
aptitude does.

urs

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

After software update systemd runs into timeouts Urs Thuermann <urs@isnogud.escape.de> - 2020-08-05 13:20 +0200
  Re: After software update systemd runs into timeouts Greg Wooledge <wooledg@eeg.ccf.org> - 2020-08-05 15:50 +0200
    Re: After software update systemd runs into timeouts Urs Thuermann <urs@isnogud.escape.de> - 2020-08-05 18:10 +0200
  Re: After software update systemd runs into timeouts Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-05 16:50 +0200
    Re: After software update systemd runs into timeouts Urs Thuermann <urs@isnogud.escape.de> - 2020-08-05 18:30 +0200
      Re: After software update systemd runs into timeouts Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-05 22:10 +0200
        Re: After software update systemd runs into timeouts Urs Thuermann <urs@isnogud.escape.de> - 2020-08-05 23:20 +0200
          Re: After software update systemd runs into timeouts David Wright <deblis@lionunicorn.co.uk> - 2020-08-06 02:40 +0200
            aptitude why (Was: Re: After software update systemd runs into timeouts) Urs Thuermann <urs@isnogud.escape.de> - 2020-08-06 10:20 +0200
              Re: aptitude why (Was: Re: After software update systemd runs into  timeouts) Dan Ritter <dsr@randomstring.org> - 2020-08-06 13:50 +0200
                Re: aptitude why (Was: Re: After software update systemd runs into timeouts) Kenneth Parker <sea7kenp@gmail.com> - 2020-08-06 15:40 +0200
                Re: aptitude why (Was: Re: After software update systemd runs into  timeouts) The Wanderer <wanderer@fastmail.fm> - 2020-08-07 04:10 +0200

csiph-web