Bug#1104892: systemd-sysv : Conflicts: sysvinit-core but 3.06-4 is to be installed

Jean-Marc LACROIX jeanmarc.lacroix at free.fr
Thu May 8 20:42:14 BST 2025


Le 08/05/2025 à 00:56, Thorsten Glaser a écrit :
> severity 1104892 normal
> thanks
> 
> (This isn’t a bug in the package per se but the way to install
> it is difficult by necessity.)
> 
> On Wed, 7 May 2025, Jean-Marc LACROIX wrote:
> 
>> Consider following log ....
> 
> This is hard to read for nōn-french speakers; it would be nice
> to “export LC_ALL=C.UTF-8” before posting such logs.
Sorry !
> 
>> test 5: install
> 
> If I see this correctly, this is apt bug #1052133 which the
> apt maintainers closed as WONTFIX.
> 
> Try:
> 
> # apt-get --purge --allow-remove-essential install sysvinit-core systemd-sysv-
> 
> (Yes, there’s a hyphen-minus behind systemd-sysv, it tells apt to remove
> the package while installing another.)
> 
> On the other hand, you also have trixie in your sources.list which
> may cause extra fun, so if the above doesn’t work, post output and
> we can look again.
> 
> Good luck,
> //mirabilos

According your proposal, i have launched ...

test 6: The magic command from Thorsten (!)
--------------------------------------------

  LC_ALL=C apt-get --purge --allow-remove-essential install 
sysvinit-core systemd-sysv-


Reading package lists... Done 
  
  

Building dependency tree... 0% 
  
  

Building dependency tree... Done 
  
  

Reading state information... Done 
  
  

The following additional packages will be installed: 
  
  

   initscripts insserv orphan-sysvinit-scripts startpar sysv-rc 
  
  

Suggested packages: 
  
  

   bootchart2 bootlogd 
  
  

The following packages will be REMOVED: 
  
  

   systemd-sysv* 
  
  

The following NEW packages will be installed: 
  
  

   initscripts insserv orphan-sysvinit-scripts startpar sysv-rc 
sysvinit-core 
  

WARNING: The following essential packages will be removed. 
  
  

This should NOT be done unless you know exactly what you are doing! 
  
  

   systemd-sysv 
  
  

0 upgraded, 6 newly installed, 1 to remove and 0 not upgraded. 
  
  

Need to get 385 kB of archives. 
  
  

After this operation, 809 kB of additional disk space will be used. 
  
  

Get:1 http://ftp.de.debian.org/debian bookworm/main armhf insserv armhf 
1.24.0-1 [68.1 kB] 
  

Get:2 http://ftp.de.debian.org/debian bookworm/main armhf startpar armhf 
0.65-1+b1 [22.6 kB] 
  

Get:3 http://ftp.de.debian.org/debian bookworm/main armhf sysv-rc all 
3.06-4 [37.3 kB] 
  

Get:4 http://ftp.de.debian.org/debian bookworm/main armhf initscripts 
all 3.06-4 [61.4 kB] 
  

Get:5 http://ftp.de.debian.org/debian bookworm/main armhf sysvinit-core 
armhf 3.06-4 [179 kB] 
  

Get:6 http://ftp.de.debian.org/debian bookworm/main armhf 
orphan-sysvinit-scripts all 0.14 [16.1 kB] 
  

Fetched 385 kB in 1s (366 kB/s) 
  
  

Preconfiguring packages ... 
  
  

Selecting previously unselected package insserv. 
  
  

(Reading database ... 33041 files and directories currently installed.) 
  
  

Preparing to unpack .../insserv_1.24.0-1_armhf.deb ... 
  
  

Unpacking insserv (1.24.0-1) ... 
  
  

Selecting previously unselected package startpar. 
  
  

Preparing to unpack .../startpar_0.65-1+b1_armhf.deb ... 
  
  

Unpacking startpar (0.65-1+b1) ... 
  
  

Selecting previously unselected package sysv-rc. 
  
  

Preparing to unpack .../sysv-rc_3.06-4_all.deb ... 
  
  

Unpacking sysv-rc (3.06-4) ... 
  
  

Selecting previously unselected package initscripts. 
  
  

Preparing to unpack .../initscripts_3.06-4_all.deb ... 
  
  

Unpacking initscripts (3.06-4) ... 
  
  

dpkg: systemd-sysv: dependency problems, but removing anyway as you 
requested: 
  

  init depends on systemd-sysv | sysvinit-core; however: 
  
  

   Package systemd-sysv is to be removed. 
  
  

   Package sysvinit-core is not installed. 
  
  


(Reading database ... 33141 files and directories currently installed.) 
  
  

Removing systemd-sysv (252.36-1~deb12u1) ... 
  
  

Selecting previously unselected package sysvinit-core. 
  
  

(Reading database ... 33123 files and directories currently installed.) 
  
  

Preparing to unpack .../sysvinit-core_3.06-4_armhf.deb ... 
  
  

Adding 'diversion of /usr/share/man/de/man8/init.8.gz to 
/usr/share/man/de/man8/init.8.dist by sysvinit-core' 
  


test 6: Verify now ...
---------------------

root at hn-raspberry-pi2-310:~# LC_ALL=C.UTF-8 dpkg -l |grep sysvinit 
  
  

ii  orphan-sysvinit-scripts      0.14 
all          Orphaned System-V-like init scripts
ii  sysvinit-core                3.06-4 
armhf        System-V-like init
ii  sysvinit-utils               3.06-4 
armhf        System-V-like utilities
root at hn-raspberry-pi2-310:~#


root at hn-raspberry-pi2-310:~# LC_ALL=C.UTF-8 dpkg -l |grep systemd
ii  libsystemd-shared:armhf      252.36-1~deb12u1 
armhf        systemd shared private library
ii  libsystemd0:armhf            252.36-1~deb12u1 
armhf        systemd utility library
ii  systemd                      252.36-1~deb12u1 
armhf        system and service manager
ii  systemd-timesyncd            252.36-1~deb12u1 
armhf        minimalistic service to synchronize local time with NTP servers

For my point of vue, this situation must never exist ?

test 8: reboot target now
-------------------------

Because current init system is systemd, it is time to reboot target with 
new system (sysvinit-core)....

..........
[   15.671148] usbcore: registered new interface driver smsc95xx
[   15.683404] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[   15.691082] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[   15.698525] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops 
vc4_crtc_ops [vc4])
[   15.706377] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops 
vc4_crtc_ops [vc4])
[   15.714138] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops 
vc4_crtc_ops [vc4])
[   15.721785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[   15.732534] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[   15.738310] smsc95xx 1-1.1:1.0 if-factory: renamed from eth0
[   15.766151] Console: switching to colour frame buffer device 90x30
[   15.793663] vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device
[   16.650878] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[   19.259623] audit: type=1400 audit(19.251:2): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="lsb_release" pid=877 com
m="apparmor_parser"
[   19.278025] audit: type=1400 audit(19.259:3): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=878
  comm="apparmor_parser"
[   19.297156] audit: type=1400 audit(19.259:4): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" p
id=878 comm="apparmor_parser"
[   19.397329] audit: type=1400 audit(19.387:5): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/
nm-dhcp-client.action" pid=880 comm="apparmor_parser"
[   19.419471] audit: type=1400 audit(19.387:6): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/
nm-dhcp-helper" pid=880 comm="apparmor_parser"
[   19.419636] audit: type=1400 audit(19.387:7): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts
/dhclient-script" pid=880 comm="apparmor_parser"
[   19.465209] audit: type=1400 audit(19.387:8): apparmor="STATUS" 
operation="profile_load" profile="unconfined" name="/{,usr/}sbin/dhclient" p
id=880 comm="apparmor_parser"
[   19.767512] smsc95xx 1-1.1:1.0 if-factory: hardware isn't capable of 
remote wakeup
[   19.781543] smsc95xx 1-1.1:1.0 if-factory: Link is Up - 100Mbps/Full 
- flow control off
[   19.782747] IPv6: ADDRCONF(NETDEV_CHANGE): if-factory: link becomes ready

So target can not end the boot process, and login shell on tty is not 
available, but ssh yes.

After connecting (in ssh) to target, list of process ...

root at hn-raspberry-pi2-310:~# pstree -anp
init,1
   |-systemd-udevd,346
   |-dhclient,896 -4 -v -i -pf /run/dhclient.if-factory.pid -lf 
/var/lib/dhcp/dhclient.if-factory.leases -I -df 
/var/lib/dhcp/dhclient6.if-factory.leases if-factory
   |-cron,1051
   |-sshd,1094
   |   `-sshd,1105
   |       `-bash,1107
   |           `-pstree,1111 -anp
   `-agetty,1102 --login-pause --login-options -- \\u --keep-baud 115200 
console vt220
root at hn-raspberry-pi2-310:~#


Many tanks for your prompt response


Best regards
-- 
   -- Jean-Marc LACROIX  () --
     -- mailto : jeanmarc.lacroix at free.fr   --



More information about the Debian-init-diversity mailing list