dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs 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)
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>pkg: warning: 'ldconfig' not found in PATH or not executable<br>dpkg: warning: 'start-stop-daemon' not foundin PATH or not executable<br>dpkg: error: 2 expected programs not found in PATH or not executable<br>Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin<br>E: Sub-process /usr/bin/dpkg returned an error code (2)</div></
Hi
Following amd64 upgrade from stretch to buster on both a vaio laptop and an asus desktop,command <shutdown> disappeared, while a severe bug arose with dpkg that breaks upgrade/install
On 24/11/18 20:43, Francesco Pietra wrote:
Hian
Following amd64 upgrade from stretch to buster on both a vaio laptop and
asus desktop,command <shutdown> disappeared, while a severe bug arosewith
dpkg that breaks upgrade/install
shutdown command can be only executed by root user, so try su root
before using it.
--
Happy hacking
On 24/11/18 20:43, Francesco Pietra wrote:
Hian
Following amd64 upgrade from stretch to buster on both a vaio laptop and
asus desktop,command <shutdown> disappeared, while a severe bug arosewith
dpkg that breaks upgrade/install
shutdown command can be only executed by root user, so try su root
before using it.
--
Happy hacking
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>On 24/11/18 20:43, Francesco Pietra wrote:<br>
Hi
Following amd64 upgrade from stretch to buster on both a vaio laptop and an asus desktop,command <shutdown> disappeared, while a severe bug arose with dpkg that breaks upgrade/install
pkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs 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)
On Sat, Nov 24, 2018 at 08:43:29PM +0100, Francesco Pietra wrote:
Hian
Following amd64 upgrade from stretch to buster on both a vaio laptop and
asus desktop,command <shutdown> disappeared, while a severe bug arosewith
dpkg that breaks upgrade/install
pkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs 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)
How did you become root?
Remember 'su' keeps the environment (including PATH) of current user,
while 'su -' gets the proper environment of the root user (so /sbin and
such is in PATH).
I think sudo already does the right thing.
su without the - is almost always the wrong thing to do.
--
Len Sorensen
On Sat, Nov 24, 2018 at 08:43:29PM +0100, Francesco Pietra wrote:
Hi
Following amd64 upgrade from stretch to buster on both a vaio laptop and an asus desktop,command <shutdown> disappeared, while a severe bug arose with dpkg that breaks upgrade/install
pkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs 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)
zless /usr/share/doc/util-linux/NEWS.Debian.gz is where this was
announced.
Wow, I never knew the su command used to have such misbehaviours on
Debian. I guess being used to doing 'su -' from years of using different unix systems I never noticed.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:01:30 |
Calls: | 9,480 |
Calls today: | 1 |
Files: | 13,613 |
Messages: | 6,119,931 |