在 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.
我也有类似的问题。您可能需要检查您的 Ubuntu 版本,以及是否添加了正确的存储库。如果这是问题所在,那么修复非常简单!
首先,检查您的 Ubuntu 版本。在终端中,您可以使用命令
lsb_release -a
来执行此操作。就我们的目的而言,重要的部分是代号。我正在使用 Ubuntu 13,又名“saucy”。
现在让我们看看您添加的多元宇宙存储库。在终端上,您可以使用
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) 的人。
您需要更具体地说明您如何尝试安装 Codelite。 官方 Debian 存储库管理的是我们(Codelite 团队)不支持的古老版本的 Codelite。
为了获得最新版本(我们支持),请从 codelite 官方网站安装(选择顶部的“下载”菜单)
安装之前,请确保删除该文件夹
~/.codelite
(如果要升级)
另外,官方 Debian 安装程序分为 2 个 pakacges codelite
和 codelite-plugins
,请确保在从我们的存储库安装 codelite 之前清除它们
我是如何在 Ubuntu 中安装最新的 codelite - EuroBytes 的作者。我已经在 Trusty 上测试了最新的 Codelite。
如果您对 Codelite 仍有问题,请像这样删除:
sudo apt-get purge codelite
请注意,依赖项链接已失效。但是,我还是成功安装了它:
Ubuntu Trusty Thar 14.04 上的 codelite 6.1。 图片来自:[如何在 Ubuntu 中安装最新的 codelite - EuroBytes][1]像这样安装:
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
来源: