dpkg:エラー:2つの予想されるプログラムが見つからないか、PATHで実行できません。何もインストールできません。

dpkg:エラー:2つの予想されるプログラムが見つからないか、PATHで実行できません。何もインストールできません。

Linuxサーバーに何かをインストールしようとすると、常に次のエラーが発生します。

Last login: Sat Aug 22 10:25:09 2015 from 27.34.97.20
root@s3:~# sudo -i
root@s3:~# su
root@s3:~# apt-get install nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
nginx-common nginx-full
Suggested packages:
fcgiwrap nginx-doc ssl-cert
The following packages will be REMOVED:
nginx-core
The following NEW packages will be installed:
nginx-full
The following packages will be upgraded:
nginx nginx-common
2 upgraded, 1 newly installed, 1 to remove and 14 not upgraded.
Need to get 0 B/479 kB of archives.
After this operation, 216 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: 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)
root@s3:~#

ベストアンサー1

おすすめ記事