LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   policykit-1 : Depends: default-logind or logind (https://www.linuxquestions.org/questions/debian-26/policykit-1-depends-default-logind-or-logind-4175674435/)

djk44883 05-02-2020 11:54 AM

policykit-1 : Depends: default-logind or logind
 
When I run apt install I get an error about policykit-1 having unmet decencies (suddenly)

changelog https://metadata.ftp-master.debian.o...5-26_changelog
* Depend on new virtual packages default-logind and logind

package search shows no such package.

policykit-1 for bullseye - https://packages.debian.org/bullseye/policykit-1
list decencies, as those "Package not available"

so, I do I work around this good idea someone has?

I presume I downgrade to buster version...

shruggy 05-02-2020 12:24 PM

Virtual packages default-logind and logind in bullseye are provided by libpam-systemd. Unfortunately, virtual packages cannot be shown in the output of apt-cache. Since each virtual package may be provided by several real packages packages.debian.org cannot link to them from a package dependencies list.

To search for virtual packages, use aptitude:
Code:

aptitude search '~v~nlogind'
To search for real packages that provide a virtual package also use aptitude:
Code:

aptitude search '~Plogind'

djk44883 05-02-2020 01:23 PM

Quote:

Originally Posted by shruggy (Post 6118426)
Virtual packages default-logind and logind in bullseye are provided by libpam-systemd. Unfortunately, virtual packages cannot be shown in the output of apt-cache. Since each virtual package may be provided by several real packages packages.debian.org cannot link to them from a package dependencies list.

To search for virtual packages, use aptitude:
Code:

aptitude search '~v~nlogind'
To search for real packages that provide a virtual package also use aptitude:
Code:

aptitude search '~Plogind'

Thanks for the explanation. Unfortunately, or fortunately I do have libpam-systemd installed since it's somewhat critical to the system I believe. I suppose since it's virtual, logind doesn't show in the list of files (I don't use aptitude nor have it installed, looking at packages.debian.org)

I understand bullseye is testing, I've run testing for several versions with little or minimal issues (and have a system with stable for serious household business). I'm going to think the global pandemic has developers out of sorts for now.

shruggy 05-02-2020 02:13 PM

Quote:

Originally Posted by djk44883 (Post 6118448)
I'm going to think the global pandemic has developers out of sorts for now.

Virtual packages are part of Debian for as long as I can remember (I started using Debian in 2001, it was Potato then). They never could be searched with apt-cache. But I was wrong about packages.debian.org. It has pages for most virtual packages, e.g. mail-transport-agent. Just not for the latest additions.

djk44883 05-02-2020 04:08 PM

Big thanks, I followed the link and subsequently definitions of virtual packages... I was indirectly aware, never actually put a name to it. I see parallels to the update-alternative facility.

Nevertheless when I apt install package
it concludes with:
Code:

The following packages have unmet dependencies:
 policykit-1 : Depends: default-logind or
                        logind
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

just for fun apt-get install policykit-1 libpam-systemd
policykit-1 is already the newest version (0.105-26).
libpam-systemd is already the newest version (245.5-2).

Nothing apt-mark showhold (in case I forgot)

shruggy 05-03-2020 03:22 AM

Looks like a bug in policykit-1 to me. From comments in virtual-package-names-list.yaml:
Code:

# When a virtual package description says "(versioned)", it means that
# binary packages implementing the virtual package are expected to use
# versioned Provides: to declare the API version that is implemented.
#
# For example, "Provides: logind (= 123)" indicates that the package
# provides the same D-Bus APIs that the logind included with systemd
# version 123 provided.
...
 - name: logind
  description: an org.freedesktop.login1 D-Bus API implementation (versioned)
 - name: default-logind
  description: Debian's preferred implementation of logind, possibly architecture-specific (versioned)

You probably should file a bug report against policykit-1.

shruggy 05-03-2020 05:22 AM

Quote:

Originally Posted by shruggy (Post 6118426)
To search for real packages that provide a virtual package also use aptitude:
Code:

aptitude search '~Plogind'

Just found how to do this from Synaptic (I hardly ever use it):
Ctrl+F, select Look in: Provided packages, enter the name of a virtual package:
https://www.nongnu.org/synaptic/images/0.53-search.png

If you don't like aptitude, another option for the command line will be grep-aptavail from dctrl-tools:
Code:

grep-aptavail -FProvides -sPackage -n mail-transport-agent|sort -u

djk44883 05-03-2020 08:02 AM

Quote:

Originally Posted by shruggy (Post 6118662)
Just found how to do this from Synaptic (I hardly ever use it)

Well not generally for installing a package, but it can be informative GUI.

Just to see, I can install packages error free via synaptic, which makes no real sense. It too list polickykit-1 as a dependency. While apt doesn't list polickykit-1 as a dependency.

shruggy 05-03-2020 08:13 AM

Quote:

Originally Posted by djk44883 (Post 6118707)
Well not generally for installing a package, but it can be informative GUI.

For this, I just use aptitude.


All times are GMT -5. The time now is 06:58 PM.