我在搜索安装 Gimp 时遇到了这个问题:
$ sudo apt-get install gimp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gimp : Depends: libgimp2.0 (>= 2.10.18) but it is not going to be installed
Depends: libgimp2.0 (<= 2.10.18-z) but it is not going to be installed
Depends: libgegl-0.4-0 (>= 0.4.22) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
apt更新和升级后没有任何变化。你对我有解决方案吗?谢谢
最好的事物,
一种解决方案是使用aptitude
. 它通常比apt-get
解决依赖关系更聪明。
首先,安装aptitude
:
sudo apt-get install aptitude
Run Code Online (Sandbox Code Playgroud)
然后使用aptitude
以下命令安装 Gimp :
sudo aptitude install gimp
Run Code Online (Sandbox Code Playgroud)
然后在运行之后,应该安装 Gimp。
归档时间: |
|
查看次数: |
6114 次 |
最近记录: |