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
即可
分类:
linux
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!