首先跑一遍sudo apt -f install
。
什么您日常root敢死队?不管不管
很多问题就这样解决了。
解决不了的,自己动手。
一般问题是这样的:(A,B为任意字符串)
dpkg: error processing archive A2333-B.deb (--unpack):
trying to overwrite 'File1', which is also in package A-B 1.233333-3ubuntu2.333333
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
显然,A2333-B
和A-B
等价,但是apt
没有发现。
解决方案:
先sudo apt remove A2333-B
,尝试卸载新安装的软件包。
一般提示
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
A2333 : Depends: A2333-B (>= 1:1.2333) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
继续,sudo apt remove A2333-B A2333
。
如果没有报错,万事大吉。
如果接着报大量依赖错误,试一试卸载A-B
,过程同上。
如果两个都不能卸载,您看着办吧。