Thanks for taking the time to report this bug and trying to make Ubuntu better.
I tried to install dnsmasq in a brand new LXD container running Noble (24.04) and I was not able to reproduce the failure you mentioned: root@dnsmasq-install:~# apt install dnsmasq Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: dns-root-data dnsmasq-base The following NEW packages will be installed: dns-root-data dnsmasq dnsmasq-base 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 397 kB of archives. After this operation, 953 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 dnsmasq-base amd64 2.90-2build2 [375 kB] Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 dnsmasq all 2.90-2build2 [17.9 kB] Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 dns-root-data all 2023112702~willsync1 [4450 B] Fetched 397 kB in 3s (157 kB/s) Selecting previously unselected package dnsmasq-base. (Reading database ... 34374 files and directories currently installed.) Preparing to unpack .../dnsmasq-base_2.90-2build2_amd64.deb ... Unpacking dnsmasq-base (2.90-2build2) ... Selecting previously unselected package dnsmasq. Preparing to unpack .../dnsmasq_2.90-2build2_all.deb ... Unpacking dnsmasq (2.90-2build2) ... Selecting previously unselected package dns-root-data. Preparing to unpack .../dns-root-data_2023112702~willsync1_all.deb ... Unpacking dns-root-data (2023112702~willsync1) ... Setting up dnsmasq-base (2.90-2build2) ... Setting up dns-root-data (2023112702~willsync1) ... Setting up dnsmasq (2.90-2build2) ... Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /u sr/lib/systemd/system/dnsmasq.service. Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148. Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for dbus (1.14.10-4ubuntu4) ... Scanning processes... No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. root@dnsmasq-install:~# Not sure how to trigger the problem you described, and without that we cannot do anything. I am marking this bug as Incomplete as I cannot verify whether it is a real bug. ** Changed in: dnsmasq (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2064930 Title: dnsmasq cannot execute at systemctl To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/2064930/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs