No such file or directory: 'dhclient'

When attempting to run a couple of hosts through the “Commissioning” process, I get the following error:

No such file or directory: 'dhclient'

This is the only step in the process that fails, all others are successful.

Here is the full output that I’m receiving:

INFO: Discovered interfaces - enp16s0, enp35s0, enp36s0, enx4ab5fb51f8b3
INFO: Unconfigured IPv4 interfaces - enp16s0, enp35s0, enx4ab5fb51f8b3
INFO: Unconfigured IPv6 interfaces - enp16s0, enp35s0, enx4ab5fb51f8b3
INFO: Running dhclient -4 on enp16s0...
Traceback (most recent call last):
  File "/tmp/user_data.sh.ior1DG/scripts/commissioning/20-maas-02-dhcp-unconfigured-ifaces", line 161, in <module>
    dhcp_explore()
  File "/tmp/user_data.sh.ior1DG/scripts/commissioning/20-maas-02-dhcp-unconfigured-ifaces", line 102, in dhcp_explore
    call(["dhclient", "-nw", "-4", iface])
  File "/usr/lib/python3.12/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dhclient'

This is a fresh install of MAAS 3.5.1.

See Bug #2058496 “Commissioning failed during 1st pxe install 24.04” : Bugs : MAAS

1 Like

Thanks! Can confirm that switching back to 22.04 for commissioning got past this issue.