When I tried to bootsrap a server into Chef, I faced with following error:
dpkg: warning: 'ldconfig' not found in PATH or not executable.
After a quick research, I found the exact answer. Sudoers file was defected. Following lines were missing:
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
After adding these lines into the file, the problem has been solved.
Comments
Post a Comment