Debian aptitude安装:'找到'在PATH中找不到或不可执行

时间:2013-05-16 20:57:42

标签: find debian warnings php4 dpkg

当我尝试安装任何软件包如php5时,它会给我这个错误。 我确实更新并升级了所有库。

root@host:~# apt-get install apache2-mpm-prefork libapache2-mod-php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2-mpm-prefork is already the newest version.
The following extra packages will be installed:
  libonig2 libqdbm14 php5-cli php5-common
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,106 kB of archives.
After this operation, 18.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: delaying package configuration, since apt-utils is not installed
dpkg: warning: 'find' 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)

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

可能有些东西搞砸了find的权限,你的安装上的find可能位于/usr/bin/find,检查这个应用程序运行的权限

ls -l /usr/bin/find

这应该返回这样的内容:

-rwxr-xr-x 1 root root 136152 Oct 26  2010 /usr/bin/find

如果这返回错误,请尝试ls查找路径中的其他位置(例如/ bin / find,/ usr / local / sbin / find)

第一部分应该是相同的命令才能工作。如果没有,请使用以下命令重置权限:

chmod 755 /usr/bin/find

这应该解决它。