MX-23 How to use Runit with pid1? [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
FraterLinux
Posts: 272
Joined: Sun Jun 07, 2020 10:45 am

MX-23 How to use Runit with pid1? [Solved]

#1 Post by FraterLinux »

With MX-21 I set Runit as pid1 like this:

Code: Select all

$ sudo apt update && sudo apt install runit{,-init}
$ sudo sed -i -e 's/rc2/rc5/' /etc/runit/2
To upgrade to MX-23 I followed the recommendation: "A clean install is highly recommended for most users"

I get the following error when trying to install Runit:

Code: Select all

$ sudo apt update && sudo apt install runit{,-init}
Achieved:1 http://deb.debian.org/debian bookworm-updates InRelease
Achieved:2 http://deb.debian.org/debian bookworm InRelease
Achieved:3 http://security.debian.org/debian-security bookworm-security InRelease
Reached:4 http://sft.if.usp.br/mx-workspace/mx/repo bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading status information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading status information... Done
Some packages could not be installed. This could mean that
you requested an impossible situation or, if you are using the
unstable distribution, that some required packages were not
created yet or removed from "Incoming".
The following information may help resolve the situation:

The following packages have mismatched dependencies:
  init : Pre-Depends: systemd-sysv or
                       sysvinit-core but not installable
E: Error, pkgProblemResolver::Resolve failed, this could be caused by packages being held.
How can I resolve this error?
Last edited by FraterLinux on Tue Aug 01, 2023 11:53 am, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 22811
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX-23 How to use Runit with pid1?

#2 Post by dolphin_oracle »

http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

FraterLinux
Posts: 272
Joined: Sun Jun 07, 2020 10:45 am

Re: MX-23 How to use Runit with pid1?

#3 Post by FraterLinux »

Thank you very much!!!

Code: Select all

$ ps -1
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:00 runit

FraterLinux
Posts: 272
Joined: Sun Jun 07, 2020 10:45 am

Re: MX-23 How to use Runit with pid1? [Solved]

#4 Post by FraterLinux »

Tip:

$ sudo apt install runit-services

UNIX init scheme with service supervision (services)
This package contains services directories for a collection of services
available in Debian, to have them run under runit service supervision
instead of sysvinit or systemd. Services directories are installed under
/usr/share/runit/sv/ and only services of packages that are installed
on the system are copied to /etc/sv/. The cpsv utility can be used to
copy, inspect and update runscripts in /etc/sv/ after the first installation.
It's recommended to read
https://salsa.debian.org/Lorenzo.ru.g-g ... ter/README
before installing this package.

Post Reply

Return to “MX Help”