ubuntu安装findutils报错xargs: not found
因为缺少find所以安装findutils
apt-get install findutils
报错说缺少xargs和find,但这俩也是属于findutils的,造成了循环依赖
root@ubuntu:/home/mika# apt-get install findutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libreadline6
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
libpython3.4-minimal libpython3.4-stdlib
The following NEW packages will be installed:
findutils
0 upgraded, 1 newly installed, 2 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 0 B/291 kB of archives.
After this operation, 12.2 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 162217 files and directories currently installed.)
Removing libpython3.4-stdlib:amd64 (3.4.3-1ubuntu1~14.04.7) ...
/var/lib/dpkg/info/libpython3.4-stdlib:amd64.prerm: 11: /var/lib/dpkg/info/libpython3.4-stdlib:amd64.prerm: xargs: not found
/var/lib/dpkg/info/libpython3.4-stdlib:amd64.prerm: 15: /var/lib/dpkg/info/libpython3.4-stdlib:amd64.prerm: find: not found
/var/lib/dpkg/info/libpython3.4-stdlib:amd64.prerm: 18: /var/lib/dpkg/info/libpython3.4-stdlib:amd64.prerm: xargs: not found
dpkg: error processing package libpython3.4-stdlib:amd64 (--remove):
installed libpython3.4-stdlib:amd64 package pre-removal script subprocess returned error exit status 127
dpkg: libpython3.4-minimal:amd64: dependency problems, but removing anyway as you requested:
libpython3.4-stdlib:amd64 depends on libpython3.4-minimal (= 3.4.3-1ubuntu1~14.04.7).
Removing libpython3.4-minimal:amd64 (3.4.3-1ubuntu1~14.04.7) ...
/var/lib/dpkg/info/libpython3.4-minimal:amd64.prerm: 11: /var/lib/dpkg/info/libpython3.4-minimal:amd64.prerm: xargs: not found
/var/lib/dpkg/info/libpython3.4-minimal:amd64.prerm: 13: /var/lib/dpkg/info/libpython3.4-minimal:amd64.prerm: find: not found
/var/lib/dpkg/info/libpython3.4-minimal:amd64.prerm: 16: /var/lib/dpkg/info/libpython3.4-minimal:amd64.prerm: xargs: not found
dpkg: error processing package libpython3.4-minimal:amd64 (--remove):
installed libpython3.4-minimal:amd64 package pre-removal script subprocess returned error exit status 127
Errors were encountered while processing:
libpython3.4-stdlib:amd64
libpython3.4-minimal:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
所以直接下载findutils的源码安装,地址:https://github.com/aixoss/findutils
解压后
./configure # 配置编译选项
make # 编译源代码
sudo make install
即可