LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-02-2020, 11:54 AM   #1
djk44883
Member
 
Registered: Aug 2008
Location: Ohio
Distribution: debian
Posts: 117

Rep: Reputation: 28
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...
 
Old 05-02-2020, 12:24 PM   #2
shruggy
Member
 
Registered: Mar 2020
Posts: 876

Rep: Reputation: Disabled
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'
 
Old 05-02-2020, 01:23 PM   #3
djk44883
Member
 
Registered: Aug 2008
Location: Ohio
Distribution: debian
Posts: 117

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by shruggy View Post
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.
 
Old 05-02-2020, 02:13 PM   #4
shruggy
Member
 
Registered: Mar 2020
Posts: 876

Rep: Reputation: Disabled
Quote:
Originally Posted by djk44883 View Post
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.

Last edited by shruggy; 05-02-2020 at 02:29 PM.
 
Old 05-02-2020, 04:08 PM   #5
djk44883
Member
 
Registered: Aug 2008
Location: Ohio
Distribution: debian
Posts: 117

Original Poster
Rep: Reputation: 28
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)
 
Old 05-03-2020, 03:22 AM   #6
shruggy
Member
 
Registered: Mar 2020
Posts: 876

Rep: Reputation: Disabled
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.
 
Old 05-03-2020, 05:22 AM   #7
shruggy
Member
 
Registered: Mar 2020
Posts: 876

Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
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

Last edited by shruggy; 05-03-2020 at 05:35 AM.
 
1 members found this post helpful.
Old 05-03-2020, 08:02 AM   #8
djk44883
Member
 
Registered: Aug 2008
Location: Ohio
Distribution: debian
Posts: 117

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by shruggy View Post
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.
 
Old 05-03-2020, 08:13 AM   #9
shruggy
Member
 
Registered: Mar 2020
Posts: 876

Rep: Reputation: Disabled
Quote:
Originally Posted by djk44883 View Post
Well not generally for installing a package, but it can be informative GUI.
For this, I just use aptitude.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NTP depends on DNS, which depends on NTP berndbausch Linux - Networking 4 07-30-2018 10:07 PM
Policykit starts but policykit agent doesnt krax Slackware 2 10-08-2011 10:51 AM
Can't control policyKit ohadbasan Linux - Desktop 4 08-24-2009 01:23 PM
HAL, DBus and Policykit slothpuck Slackware 2 01-31-2007 12:56 PM
PolicyKit and Hal problem TongueTied Linux - Software 1 01-19-2007 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration