Path 在路径中找不到所需的程序或该程序不可执行

Path 在路径中找不到所需的程序或该程序不可执行,path,live-cd,Path,Live Cd,我一直在运行lb build,修复一个又一个问题,然后再次运行,现在我收到了以下消息: dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin

我一直在运行
lb build
,修复一个又一个问题,然后再次运行,现在我收到了以下消息:

dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree... Done
然后我去检查我的路径,我看到了

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
这清楚地显示了
/usr/local/sbin
/usr/sbin
/sbin

有什么建议吗

**更新1** 遵循这个指南

每个命令都运行正常,但再次运行
lb build
后仍然显示相同的错误消息

**更新2——其他信息** root@kali:~#ls-lA/sbin (其他档案)
-rwxr-xr-x 1 root root 28208 Aug 12 15:00 start-stop daemon

首先,您必须检查第一行的反馈信息(尽管它只是一个警告)

那么,你必须明白警告是关键。所有的错误都是由这个警告引起的。您必须将启动-停止守护程序添加到您的电脑

根据以下规定:

cd /tmp
wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
tar zxf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
cd apps/sys-utils/start-stop-daemon-IR1_9_18-2/
gcc start-stop-daemon.c -o start-stop-daemon
cp start-stop-daemon /usr/local/bin/start-stop-daemon

现在你可以帮助自己和其他人了

我也有同样的问题,根据(德语)的说法,唯一已知的解决方案是在
sudo lb build
之前运行
sudo lb clean

我也遇到了同样的问题,有人找到了修复方法吗?遗憾的是,没有。我刚刚重新启动了整个构建过程(尽管令人沮丧,但它仍然有效。)我现在唯一的问题是,每次我构建它时,它都会删除我在grub/grub2中设置的所有选项。还将live install屏幕更改为一张闪烁的图片。