由于依赖关系损坏,我无法安装新的软件包:
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