The officially official Devuan Forum!

You are not logged in.

#1 2023-11-20 14:59:31

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Issue with libsystemd0

Hi folks,

I installed Devuan on SBC bootstrapping before Debain and then migrating on Devuan following the instruction but I didn't realize that package libsystemd0 was still there, now if I want to install elogind or packages that require it, it ask to remove cryptsetup, cryptsetup-initramfs and dropbear, perhaps I need to downgrades those packages...

What's your thoughts?

Thanks! 🙏

Last edited by Danielsan (2023-11-20 15:40:34)

Offline

#2 2023-11-20 15:39:41

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: Issue with libsystemd0

Apparently this workaround resolved the issue:

sudo aptitude install elogind libpam-elogind policykit-1 --without-recommends
The following NEW packages will be installed:
  elogind libduktape207{a} libelogind0{a} libpam-elogind{b} 
  libpolkit-agent-1-0{a} libpolkit-gobject-1-0{a} 
  libpolkit-gobject-elogind-1-0{a} pkexec{a} policykit-1 
  polkitd{a} sgml-base{a} xml-core{a} 
The following packages are RECOMMENDED but will NOT be installed:
  gnome-flashback gnome-shell lxpolkit lxqt-policykit 
  mate-polkit phosh policykit-1-gnome polkit-kde-agent-1 
  polkitd-pkla ukui-polkit 
0 packages upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,418 kB of archives. After unpacking 5,246 kB will be used.
The following packages have unmet dependencies:
 dummy-logind : Conflicts: logind which is a virtual package, provided by:
                           - libpam-elogind (246.10-5), but 246.10-5 is to be installed
                           - dummy-logind (246.10-5), but 246.10-5 is installed

 libpam-elogind : Depends: libelogind-compat but it is not going to be installed
The following actions will resolve these dependencies:

     Remove the following packages:                
1)     dummy-logind [246.10-5 (now, stable)]       
2)     libsystemd0 [252.17-1~deb12u1 (now, stable)]

     Install the following packages:               
3)     libelogind-compat [246.10-5 (stable)]

Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
  elogind libduktape207{a} libelogind-compat{a} libelogind0{a} 
  libpam-elogind libpolkit-agent-1-0{a} 
  libpolkit-gobject-1-0{a} libpolkit-gobject-elogind-1-0{a} 
  pkexec{a} policykit-1 polkitd{a} sgml-base{a} xml-core{a} 
The following packages will be REMOVED:
  dummy-logind{a} libsystemd0{a} 
The following packages are RECOMMENDED but will NOT be installed:
  gnome-flashback gnome-shell lxpolkit lxqt-policykit 
  mate-polkit phosh policykit-1-gnome polkit-kde-agent-1 
  polkitd-pkla ukui-polkit 
0 packages upgraded, 13 newly installed, 2 to remove and 0 not upgraded.
Need to get 1,425 kB of archives. After unpacking 4,307 kB will be used.
Do you want to continue? [Y/n/?] y

But:

 util-linux depends on libsystemd0.
 ppp depends on libsystemd0.
 lvm2 depends on libsystemd0 (>= 233).
 libwebkit2gtk-4.1-0:arm64 depends on libsystemd0.
 libwebkit2gtk-4.0-37:arm64 depends on libsystemd0.
 libvte-2.91-0:arm64 depends on libsystemd0 (>= 220).
 libseat1:arm64 depends on libsystemd0 (>= 238).
 libpulse0:arm64 depends on libsystemd0.
 liblvm2cmd2.03:arm64 depends on libsystemd0 (>= 233).
 libjavascriptcoregtk-4.1-0:arm64 depends on libsystemd0.
 libjavascriptcoregtk-4.0-18:arm64 depends on libsystemd0.
 libgnome-desktop-3-20:arm64 depends on libsystemd0.
 gnome-keyring depends on libsystemd0.
 gcr depends on libsystemd0.
 bsdutils depends on libsystemd0.
 at-spi2-core depends on libsystemd0.

Thus:

sudo aptitude reinstall ppp lvm2 libwebkit2gtk-4.1-0 libwebkit2gtk-4.0-37  libvte-2.91-0 libseat1 libpulse0 liblvm2cmd2.03 libjavascriptcoregtk-4.1-0 libjavascriptcoregtk-4.0-18 libgnome-desktop-3-20 gnome-keyring gcr at-spi2-core cryptsetup cryptsetup-initramfs dropbear-initramfs

util-linux and bsd-utils are currently missing on devuan:

sudo apt reinstall util-linux bsdutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of util-linux is not possible, it cannot be downloaded.
Reinstallation of bsdutils is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt-cache policy util-linux bsdutils
util-linux:
  Installed: 2.38.1-5+b1
  Candidate: 2.38.1-5+b1
  Version table:
 *** 2.38.1-5+b1 100
        100 /var/lib/dpkg/status
     2.38.1-5devuan1+b1 500
        500 http://deb.devuan.org/merged daedalus/main arm64 Packages
bsdutils:
  Installed: 1:2.38.1-5+b1
  Candidate: 1:2.38.1-5+b1
  Version table:
 *** 1:2.38.1-5+b1 100
        100 /var/lib/dpkg/status
     1:2.38.1-5devuan1+b1 500
        500 http://deb.devuan.org/merged daedalus/main arm64 Packages

Anyway:

sudo apt install -f -s
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[UPDATE] And still there 😑

apt list --installed | grep systemd

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libsystemd-shared/stable,now 252.17-1~deb12u1 arm64 [installed]

Last edited by Danielsan (2023-11-20 17:33:10)

Offline

#3 2023-11-20 17:14:44

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: Issue with libsystemd0

In your last command you have > where a | should be (and thus any output went into a file), except you don't even need grep:

apt list --installed '*systemd*'

Last edited by boughtonp (2023-11-20 17:16:00)


3.1415P265E589T932E846R64338

Offline

#4 2023-11-20 17:16:26

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: Issue with libsystemd0

boughtonp wrote:

In your last command you have > where a | should be...

Thanks you're right... Now I am scared... 😫

Offline

#5 2023-11-20 17:23:01

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: Issue with libsystemd0

Unless you were in the bin directory when running the command, it's not going to be a problem. Assuming you're in your home directory, just make sure you use ~/grep to view/remove the file and it'll be fine.

If you're super paranoid, rename the file, download grep.deb just in case, restart, confirm grep still works (which it will), then remove the renamed version.

(Also, since my edit was a bit slow you may have missed that you don't need grep to filter the output.)

Last edited by boughtonp (2023-11-20 17:25:27)


3.1415P265E589T932E846R64338

Offline

#6 2023-11-20 17:25:11

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: Issue with libsystemd0

Oh my gosh it is very resilient! 🤨

apt list --installed | grep systemd

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libsystemd-shared/stable,now 252.17-1~deb12u1 arm64 [installed]

apt purge libsystemd-shared -s
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libsystemd-shared*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Purg libsystemd-shared [252.17-1~deb12u1]

It can be removed without fear! 💪

Offline

Board footer