在Ubuntu中安装CodeLite IDE时发生以下错误。
有什么想法吗?
错误:
The following packages have unmet dependencies:
codelite : Depends: libjbig0 but it is not installable
Depends: liblzma5 (>= 5.1.1alpha+20120614) but 5.1.1alpha+20110809-3 is to be installed
Depends: libpango-1.0-0 (>= 1.18.0) but it is not installable
Depends: libpangocairo-1.0-0 (>= 1.14.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
答案 0 :(得分:1)
您需要更具体地了解您尝试安装codelite的方式。 官方的Debian存储库管理着我们(codelite团队)不支持的古老版本的codelite。
为了获得最新版本(我们支持),请从codelite's official website安装(选择顶部的下载菜单)
安装前,请确保删除文件夹~/.codelite
(如果您要升级)
此外,官方Debian安装程序分为2个pakacges codelite
和codelite-plugins
,确保在从我们的存储库安装codelite之前清除它们
答案 1 :(得分:1)
我有类似的问题。您可能需要检查您的Ubuntu版本,并且您已添加了正确的存储库。如果这是问题,那么修复非常简单!
首先,检查您的Ubuntu版本。从终端,您可以使用命令lsb_release -a
执行此操作。为了我们的目的,重要的部分是代号。我正在使用Ubuntu 13,又称“俏皮”。
现在让我们看一下你添加的多元宇宙库。在终端上,您可以使用sudo gedit /etc/apt/sources.list
执行此操作。转到文件的末尾,您应该看到类似的内容:
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://repos.codelite.org/ubuntu/ saucy universe
确保您的版本具有您的ubuntu代号(在我的情况下为'saucy')。网站上的示例代码适用于Ubuntu 14,因此我错误地在此处拥有“可靠”来源。编辑该行,使其适合您的Ubuntu版本,然后保存并关闭该文件。
最后,您需要更新您的存储库,以便更改完成。在终端上,运行sudo apt-get update
。一切顺利,你现在应该sudo apt-get install codelite
没有错误。
我的问题是由codelite网站上过多的剪切和粘贴代码引起的。我跟你的页面完全一样,他们的示例代码适用于使用Ubuntu trusy的人(14)。
答案 2 :(得分:1)
我是Howto install the latest codelite in Ubuntu - EuroBytes的作者。我在Trusty上测试了最新的codelite。
如果您仍然遇到codelite问题,请执行以下操作:sudo apt-get purge codelite
请注意,依赖关系链接已失效。但是,无论如何我设法安装它:
在Ubuntu Trusty Thar 14.04上的codelite 6.1。 图片来自:Howto install the latest codelite in Ubuntu - EuroBytes 功能
像这样安装:
sudo apt-add-repository "deb http://repos.codelite.org/ubuntu/ $(lsb_release -sc) universe"
sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
sudo apt-get update
sudo apt-get install codelite wxcrafter
如果您遇到任何问题,请随时与我或我的网站联系。
来源: