OK for us with 1:4.0.1-0ubuntu2 package on focal :
root@scribe:~# lxc-start --version 4.0.1 root@scribe:~# lxc-attach --logpriority=DEBUG --name=addc -- exit lxc-attach: addc: attach.c: lxc_attach_run_command: 1452 No such file or directory - Failed to exec "exit" root@scribe:~# echo $? 127
OK for us with 1:4.0.1-0ubuntu2 package on focal :
root@scribe:~# lxc-start --version run_command: 1452 No such file or directory - Failed to exec "exit"
4.0.1
root@scribe:~# lxc-attach --logpriority=DEBUG --name=addc -- exit
lxc-attach: addc: attach.c: lxc_attach_
root@scribe:~# echo $?
127