未满足的依赖关系 - gedit

时间:2015-10-25 11:25:13

标签: ubuntu

我最近在文本编辑器(gedit 3.8.3)上遇到了一些问题,所以我试图卸载/重新安装它,问题是,当我使用命令' apt-get install gedit'终端给我看错:

computer@computer:~$ sudo apt-get install gedit
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:
 gedit : Depends: libgtksourceview-3.0-0 (>= 3.0.0) but it is not going to be installed
         Depends: gir1.2-gtksource-3.0 but it is not going to be installed
         Depends: gedit-common (< 3.5) but 3.8.3-0ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.

我花了一整天的时间来寻找解决方案

有人可以帮我解决这个问题吗?我正在使用zorin os 8

1 个答案:

答案 0 :(得分:0)

您应该能够通过以下方式查看所保留的包列表:

sudo apt-mark showhold

然后通过

取消暂停
sudo apt-mark unhold <package name>

之后,您应该能够删除冲突的包(似乎是npm),然后重新安装所有包。