![安装 libgimp2.0 时出错,无法修复因 GIMP 与 XSane 冲突而导致的损坏安装?](https://linux22.com/image/1017368/%E5%AE%89%E8%A3%85%20libgimp2.0%20%E6%97%B6%E5%87%BA%E9%94%99%EF%BC%8C%E6%97%A0%E6%B3%95%E4%BF%AE%E5%A4%8D%E5%9B%A0%20GIMP%20%E4%B8%8E%20XSane%20%E5%86%B2%E7%AA%81%E8%80%8C%E5%AF%BC%E8%87%B4%E7%9A%84%E6%8D%9F%E5%9D%8F%E5%AE%89%E8%A3%85%EF%BC%9F.png)
由于依赖关系损坏,我无法安装新的软件包:
libgimp2.0
当我尝试apt --fix-broken install
或apt-get install gimp libgimp2.0
出现以下错误时:
dpkg: error processing the file /var/cache/apt/archives/libgimp2.0_2.99.1+om~7-0ubu18.04.2~ppa_amd64.deb (--unpack): trying to overwrite '/usr/lib/libgimp-3.0.so.0.9901.0', which is also in the package libgimp3.0 2.99.1+om~19-0ubu18.04.4~ppa
dpkg-deb: error: copied the subprocess was killed by the signal (broken pipe)
我认为这是 gimp 和 sane 使用的库之间的冲突,但我不知道如何修复它。我也试过了,apt-get update
apt-get full-upgrade
但它一直告诉我我需要libgimp2.0
答案1
强制删除冲突的软件包(假设为libgimp3.0
)
sudo dpkg --purge --force-all libgimp3.0
然后再次安装包
sudo apt-get install -f