我的系统最初是 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
但是我得到了依赖错误,就像这个。
然后我尝试了几个建议,最新的是http://www.eurobytes.nl/tutorials/howto-install-the-latest-codelite-in-ubuntu但我最初忽略了“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
您的错误提到了损坏的软件包。我建议您首先解决该问题。尝试使用 -f 标志运行 apt:
sudo apt-get install -f
它可能无法解决整个问题,但却是一个良好的开始。