首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian aptitude安装:在路径中找不到'find‘或无法执行

Debian aptitude安装:在路径中找不到'find‘或无法执行
EN

Stack Overflow用户
提问于 2013-05-17 04:57:42
回答 1查看 3.5K关注 0票数 0

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

代码语言:javascript
复制
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)

有人能帮我吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-05-17 20:44:07

find的权限可能有问题,find在您的安装中可能位于/usr/bin/find中,以检查此应用程序运行的权限

代码语言:javascript
复制
ls -l /usr/bin/find

这应该返回如下所示的内容:

代码语言:javascript
复制
-rwxr-xr-x 1 root root 136152 Oct 26  2010 /usr/bin/find

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

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

代码语言:javascript
复制
chmod 755 /usr/bin/find

这个应该可以解决这个问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16597344

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档