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

时间:2018-04-02 16:14:41

标签: ubuntu package apt codelite ubuntu-17.10

我正在尝试在Ubuntu Artful上安装Codelite(17.10)。我已经看到这个问题在网上很常见,但我还没有找到解决办法。基本上当我运行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),但错误仍然存​​在。在这些事情上,我有点像菜鸟。反正有手动安装依赖吗? (来自下载的文件?)或者对此有什么解决方法吗?

非常感谢!

2 个答案:

答案 0 :(得分:1)

尝试以下

sudo apt install aptitude    
sudo aptitude install codelite wxcrafter

答案 1 :(得分:0)

通过运行命令<div> <button onclick="u()" type="button" id="U">U</button> <button onclick="l()" type="button" id="L">L</button> <button onclick="r()" type="button" id="R">R</button> <button onclick="d()" type="button" id="D">D</button> </div> ,它可以解决我的问题。 -f 表示--fix-breaked。