如何从 codelite 安装失败中恢复

如何从 codelite 安装失败中恢复

我的系统最初是 ubuntu 12.04。我昨天通过运行“apt-get install codelite”安装了 codelite,它运行正常。我注意到它不是最新版本,并尝试手动安装最新版本,但这引入了问题。

我按照 codelite 网页上的说明进行操作:

sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
sudo apt-add-repository 'deb http://repos.codelite.org/ubuntu/ trusty universe'
sudo apt-get update
sudo apt-get install codelite

但是我得到了依赖错误,就像这个

然后我尝试了几个建议,最新的是如何在 Ubuntu 中安装最新的 codelite - EuroBytes但我最初忽略了“amd64”和“i386”的注释,更正后问题仍然存在。

无论如何,我此时放弃安装最新版本,但我发现现在无法回头 - 我在开始时卸载了 codelite - 当我再次运行“apt-get install codelite”时,出现以下错误:

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: 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
            Depends: libtiff5 (>= 4.0.3) but it is not installable
            Depends: libwxbase3.0-0 (>= 3.0.0) but it is not installable
            Depends: libwxgtk3.0-0 (>= 3.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

您能告诉我该如何恢复吗?

答案1

我是如何在 Ubuntu 中安装最新的 codelite - EuroBytes。我已经在 Trusty 上测试了最新的 codelite。

如果您仍然遇到 codelite 问题,请按如下方式删除:sudo apt-get purge codelite

请注意,依赖项链接已失效。但是,我还是设法安装了它:

https://i.stack.imgur.com/BE6fg.png

Ubuntu Trusty Thar 14.04 上的 Codelite 6.1。图片来自:如何在 Ubuntu 中安装最新的 codelite - 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

如果您有任何问题,请随时在这里或通过我的网站联系我。

来源

相关内容