如何安装“不可安装”的依赖项?

6

我正在尝试在Ubuntu Artful(17.10)上安装Codelite。我看到这个问题在网上非常普遍,但我没有找到解决方法。基本上,当我运行 sudo apt-get install codelite wxcrafter 时,我会得到这些未满足的依赖关系。

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:
 codelite : Depends: libclang1-3.6 (>= 3.2) but it is not installable
            Depends: libhunspell-1.3-0 (>= 1.3.3) but it is not installable
            Depends: liblldb-3.6 but it is not installable
            Recommends: lldb (>= 3.4) but it is not going to be installed
            Recommends: nodejs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

现在我已经试图手动安装依赖项的Artful版本(例如https://packages.ubuntu.com/artful/libclang1-3.9),但错误仍然存在。我对这些事情有点外行。有没有办法手动安装依赖项?(从下载的文件中)或者有没有任何解决方法?
非常感谢!

这可能更有可能在[ubuntu.se]上获得一个好的答案。 - DavidW
我的问题最终是因为有一个未处理的Ubuntu版本正在等待升级。 运行“do-release-upgrade”就解决了问题,一切都变得如预期的那样。 - Owen McAlack
2个回答

4
运行命令sudo apt-get -f install可以解决我的问题。在这里,-f意思是--fix-broken。

2

请尝试以下方法:

sudo apt install aptitude    
sudo aptitude install codelite wxcrafter

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接