Package installation fails with 'Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148'

Trying to install raidrive from .deb file using root CLI
I have googled and searched here with no joy.
Google took me to the old locked forum - the same problem with a different package which had a very cryptic answer of ‘66’ which I assume refers to deb-systemd-invoke line 66. However, as a very old user of ubuntu, recently returned I do not have the skill to see what if anything I should do with the offending line!!

Ubuntu Version:
I am using 24.04 LTS

Desktop Environment (if applicable):
N/A

Problem Description:
The install fails with:
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148.

Relevant System Information:
VPS

Screenshots or Error Messages:

root@xxxx:~/Downloads# wget 'https://app.raidrive.com/deb/pool/main/r                                                                                                                                                             /raidrive/raidrive_2024.9.27.6-linux_amd64.deb'
--2025-04-17 10:22:09--  https://app.raidrive.com/deb/pool/main/r/raidrive/raidr                                                                                                                                                             ive_2024.9.27.6-linux_amd64.deb
Resolving app.raidrive.com (app.raidrive.com)... 172.64.145.29, 104.18.42.227, 2                                                                                                                                                             606:4700:4400::ac40:911d, ...
Connecting to app.raidrive.com (app.raidrive.com)|172.64.145.29|:443... connecte                                                                                                                                                             d.
HTTP request sent, awaiting response... 200 OK
Length: 69235098 (66M) [binary/octet-stream]
Saving to: 'raidrive_2024.9.27.6-linux_amd64.deb'
raidrive_2024.9.27. 100%[===================>]  66.03M  54.5MB/s    in 1.2s
2025-04-17 10:22:11 (54.5 MB/s) - 'raidrive_2024.9.27.6-linux_amd64.deb' saved [                                                                                                                                                             69235098/69235098]
root@xxxx1:~/Downloads# sudo dpkg -i raidrive_2024.9.27.6-linux_amd64.                                                                                                                                                             deb
(Reading database ... 77074 files and directories currently installed.)
Preparing to unpack raidrive_2024.9.27.6-linux_amd64.deb ...
Unpacking raidrive (2024.9.27.6-linux) over (2024.9.27.6-linux) ...
Setting up raidrive (2024.9.27.6-linux) ...
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 148.

What I’ve Tried:
See intro

This is a packaging bug you should seek support with at raiddrive, nobody here would be able to fix the broken package they distribute…

EDIT: their user support forum seems to be the correct place https://with.raidrive.com/c/technical-issues/install/28

Thank you
I will head over there!

** “Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148”** typically occurs during package installation or service management in Ubuntu and other Debian-based systems. This issue has been reported and acknowledged as a bug in the init-system-helpers package

25.04 here:

apt policy raidrive
raidrive:
  Installed: 2024.9.27.6-linux
  Candidate: 2024.9.27.6-linux
  Version table:
 *** 2024.9.27.6-linux 100
        100 /var/lib/dpkg/status
 raidrivecli status
Version: 2024.9.27.6
Filesystem driver: fuse 3.14.0(314)
Subscription: RaiDrive/Standard
Total mountpoints: 0

Agree with @ogra it is long standing bug…:frowning: