E: Sub-process /usr/bin/dpkg returned an error code (1)
错误描述:
dpkg: error processing archive /var/cache/apt/archives/libfreetype6-dev_2.5.2-4ubuntu2_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/man/man1/freetype-config.1.gz', which is different from other instances of package libfreetype6-dev:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for doc-base (0.10.6) ...
Processing triggers for man-db (2.7.4-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libfreetype6-dev_2.5.2-4ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
错误原因:
上述错误为libfreetype6-dev_2.5.2-4ubuntu2_amd64.deb本地有多个,
无法直接覆盖. 导致无法安装.
最终导致所有的apt-get install/remove 都无法运行
修复流程:
1. sudo dpkg --configure -a 查看错误原因
2. sudo dpkg -i --force-overwrite /var/cache/apt/archives/libfreetype6-dev_2.5.2-4ubuntu2_amd64.deb 强制替换
3. sudo apt-get autoremove 去除无用的包
4. sudo apt-get update
最后运行: sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
恢复正常.
相关推荐
linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方案 今天在安装程序时,发现有一个插件未安装,我就随手敲了一个命令,看都没看 yum remove yum 然后就杯具了… [root@localhost ~]#...
然而,在日常运维中,我们可能会遇到启动MongoDB时遇到各种问题,如本文标题所示:"MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)"。这个错误提示意味着MongoDB服务...
在使用Linux系统时,有时会遇到执行特定程序时出现“权限不够”的错误,例如在尝试运行Java可执行文件时,可能会遇到"BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: 权限不够"这样的提示。这个错误通常意味着当前用户...
解决方法 docker-ce安装时出现错误: dpkg: error processing package docker-ce (--configure): subprocess installed post-installation script returned error exit ...E: Sub-process /usr/bin/dpkg returned
主要介绍了bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory,需要的朋友可以参考下