Cannot configure krb5-kdc on Ubuntu Jammy 22.04.01, "Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
init-system-helpers (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
krb5 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have a fresh install of Ubuntu Server 22.04.01 LTS. After installing the server and running all updates, I run the following command:
apt -y install slapd ldap-utils schema2ldif sasl2-bin libsasl2-
This will be installing krb5-kdc 1.19.2-2.
This is in preparation for setting up an OpenLDAP server, a Kerberos server with an LDAP backend, and saslauthd for pass-through authentication. krb5-kdc was auto-selected when running the steps in the guide here in my development environment: https:/
Setting up krb5-kdc (1.19.2-2) ...
Created symlink /etc/systemd/
Could not execute systemctl: at /usr/bin/
I do get the prompts for the realm, kdc, and admin server hostnames, and they are reflected in /etc/krb5.conf. If I then run the following:
dpkg-reconfigure krb5-kdc
I am prompted for whether I want the package to create the Kerberos KDC configuration automatically, and when I say yes, it then repeats the following error:
Could not execute systemctl: at /usr/bin/
I cannot find any further debug in the syslog or anything to indicate what the root cause is; the list of packages here are all installed together on a separate development server where I experimented with the configuration I will be deploying here in production so I don't think it's incompatible packages in the install list, but I am open to feedback on that.
systemctl is a non-optional component of an Ubuntu 22.04 system. What does `which systemctl` return for you? What does `systemctl` return when you run it?