The officially official Devuan Forum!

You are not logged in.

#1 2024-01-14 07:28:46

linux0391
Member
Registered: 2024-01-14
Posts: 5  

[SOLVED] cron-daemon-common depends on systemd

Hi everyone.

I'm trying to install Devuan via debootstrap --arch=amd64 ceres /mnt, but I get an error:

Preparing to unpack .../cron-daemon-common_3.0pl1-182_all.deb ...
Unpacking cron-daemon-common (3.0pl1-182) ...
Setting up adduser (3.137) ...
dpkg: dependency problems prevent configuration of cron-daemon-common:
 cron-daemon-common depends on systemd | systemd-standalone-sysusers | systemd-sysusers; however:
  Package systemd is not installed.
  Package systemd-standalone-sysusers is not installed.
  Package systemd-sysusers is not installed.

dpkg: error processing package cron-daemon-common (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cron-daemon-common

I also tried to upgrade to Ceres by installing Daedalus first, but I get other errors unrelated to this one when trying to upgrade (something like /sbin/modprobe: not found) and after that my system stops booting.

Can you please help me?

Last edited by linux0391 (2024-01-14 08:38:01)

Offline

#2 2024-01-14 10:44:38

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: [SOLVED] cron-daemon-common depends on systemd

On my migrated system (trixie -> daedalus) I have systemd-standalone-sysusers installed, but not systemd (obviously). Maybe try installing this package to see if it helps?

Offline

#3 2024-01-14 11:16:12

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,259  

Re: [SOLVED] cron-daemon-common depends on systemd

It might be possible to debootstrap if you add

--exclude=logrotate,cron,cron-common-daemon

to the command.

Offline

#4 2024-01-14 11:28:48

linux0391
Member
Registered: 2024-01-14
Posts: 5  

Re: [SOLVED] cron-daemon-common depends on systemd

I ran

debootstrap --arch amd64 --exclude=logrotate,cron,cron-daemon-common ceres /mnt

and it worked.
Thank you!!!

Last edited by linux0391 (2024-01-14 12:53:05)

Offline

#5 2024-01-16 02:47:18

stultumanto
Member
Registered: 2023-12-12
Posts: 68  

Re: [SOLVED] cron-daemon-common depends on systemd

I encountered the exact same error during my latest bootstrap. I got around it by bootstrapping with --variant=minbase, then installing the packages that required the systemd shim after chrooting into the new system. It wasn't really any extra trouble, as I had a substantial list of additional packages to install anyway.

Offline

#6 2024-01-16 10:10:29

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,494  

Re: [SOLVED] cron-daemon-common depends on systemd

Another solution is to use mmdebootstrap which does a better job of handling the dependencies. It will install systemd-standalone-sysusers before cron-daemon-common.

Offline

#7 2024-01-17 01:42:21

stultumanto
Member
Registered: 2023-12-12
Posts: 68  

Re: [SOLVED] cron-daemon-common depends on systemd

Thanks, I just tried mmdebstrap on an old MacBook and it worked perfectly. This tool, along with the arch-install-scripts, makes bootstrapping a breeze. I have a small stack of old laptops here I've been resurrecting, mainly as an experiment. Each one has shocked me with how completely usable it is with a lightweight Devuan installation.

Edit: I forgot all about the merged usr issue until I got farther along in the process. If you want to run a merged usr, mmdebstrap doesn't have the equivalent of debootstrap's --merged-usr option. However, the manual gives an example of how you can duplicate the functionality with hooks:

--setup-hook='for d in bin sbin lib; do ln -s usr/$d "$1/$d";
        mkdir -p "$1/usr/$d"; done'

Since I had forgotten about it until after the bootstrap was complete, I just installed the usrmerge package.

Last edited by stultumanto (2024-01-17 23:23:29)

Offline

Board footer