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

Jean-Marc LACROIX jeanmarc.lacroix at free.fr
Sun Jun 29 20:58:32 BST 2025


Le 08/05/2025 à 21:42, Jean-Marc LACROIX a écrit :
> 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

Following logs to confirm that your command is ok on Target Cubieboard5 
(cubietruck plus) with Debian 12.11

I confirm that one reboot must be done after installing sysvinit-core 
and before removing systemd packages.

My config is now ....

ansible at hn-cubie5-175:~$ sudo LC_ALL=C pstree -anp
init,1
   |-systemd-udevd,409
   |-syslog-ng,1920
   |   `-syslog-ng,1921 -p /var/run/syslog-ng.pid --no-caps
   |       `-{syslog-ng},2229
   |-cron,1983
   |-lldpd,1987
   |   `-lldpd,1989
   |-dbus-daemon,1993 --system
   |-sshd,1994
   |   `-sshd,2249
   |       `-sshd,2251
   |           `-bash,2252
   |               `-sudo,2255 LC_ALL=C pstree -anp
   |                   `-pstree,2256 -anp
   |-watchdog,2045
   |-monit,2047 -c /etc/monit/monitrc
   |   |-{monit},2230
   |   |-{monit},2231
   |   |-(verify_ipv4_add,2236)
   |   `-(verify_ipv4_add,2237)
   `-login,2048 --
       `-bash,2057
ansible at hn-cubie5-175:~$

ansible at hn-cubie5-175:~$ uname -a
Linux hn-cubie5-175 6.1.0-37-armmp-lpae #1 SMP Debian 6.1.140-1
(2025-05-22) armv7l GNU/Linux


ansible at hn-cubie5-175:~$ cat /etc/debian_version
12.11

ansible at hn-cubie5-175:~$ cat /proc/cmdline
UUID=83c865bb-56ae-43f8-98c1-ccad2af290d6 console=ttyS0,115200 
log_buf_len=1M net.ifnames=0 fsck.mode=force fsck.repair=yes 
ipv6.disable=1 loglevel=7 apparmor=0 selinux=0 cgroup_no_v1=all
ansible at hn-cubie5-175:~$

For users who want to deploy this setup with Ansible, the following code 
may suffice.

------------------------ Ansible code (partial !)
# Thanks                 to                  read                 also
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104892   This  is
# why we dont use ansible.builtin.apt, then of course shell

- name: package 3/8 Install/verify sysvinit-core,sysvinit-utils packages 
for Debian release >= 8
   ansible.builtin.shell:
     LC_ALL=C \
     apt-get \
        --purge \
        --allow-remove-essential \
        install \
        sysvinit-core sysvinit-utils util-linux systemd-sysv- \
        --yes
   when:
     (( ansible_distribution_major_version == "8" )  or
     ( ansible_distribution_major_version == "9" )  or
     ( ansible_distribution_major_version == "10" ) or
     ( ansible_distribution_major_version == "11" ) or
     ( ansible_distribution_major_version == "12" ) or
     ( ansible_distribution_major_version == "13" ) or
     ( ansible_distribution_version == "16.04" )    or
     ( ansible_distribution_version == "18.04" )) and
     ( cfg_sysvinit_install == "true" )

---------------------------

Thanks to close this bug now


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



More information about the Debian-init-diversity mailing list