我想更新我的系统的存储库
holger@ubuntu:~$ cat /etc/os-release NAME="Ubuntu" VERSION="14.04.5 LTS, Trusty Tahr" holger@ubuntu:~$ uname -m i686
使用较新的 codelite 版本 (9.1),因为官方 ubuntu 存储库包含旧版本 (2.8)。我遵循以下说明:如何安装最新版本的codelite?
但我看到这个依赖错误:
The following packages have unmet dependencies: codelite : Depends: liblldb-3.6 but it is not installable Recommends: lldb (>= 3.4) but it is not installable Recommends: nodejs but it is not going to be installed E: Unable to correct problems, you have held broken packages.
安装的版本是:
liblldb-3.9/trusty-security,now 1:3.9.1-4ubuntu3~14.04.2 i386 [installed]
我很感激任何关于如何修复它的想法。
编辑: 通过检查 codelite 依赖关系,我看到以下内容:
holger@ubuntu:~$ sudo apt-get build-dep codelite The following packages have unmet dependencies: libgtk2.0-dev : Depends: libglib2.0-dev (>= 2.27.3) but it is not going to be installed Depends: libgdk-pixbuf2.0-dev (>= 2.21.0) but it is not going to be installed Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed Depends: libatk1.0-dev (>= 1.29.2) but it is not going to be installed Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed Depends: libxrandr-dev (>= 2:1.2.99) but it is not going to be installed E: Build-dependencies for codelite could not be satisfied.
libgtk2.0-dev 依赖于 libglib2.0-dev 和其他库。当我尝试安装 libglib2.0-dev 时,出现以下错误:
> holger@ubuntu:~$ sudo apt-get install libglib2.0-dev 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: libglib2.0-dev :
> Depends: libglib2.0-0 (= 2.40.0-2) but 2.40.2-0ubuntu1 is to $
> Depends: libglib2.0-bin (= 2.40.0-2) but 2.40.2-0ubuntu1 is t$
> Depends: libpcre3-dev (>= 1:8.31) but it is not going to be i$ E: Unable to correct problems, you have held broken
> packages.
因此,依赖库在我的系统上,它们只是次要版本号不同。据我所知,我需要 libglib2.0-0 的版本 2.40.0-2,但已安装版本 2.40.2-0ubuntu1。
我可以从哪个 repo 获取这些软件包?标准 repo 仅允许安装此版本:
> holger@ubuntu:~$ apt search libglib2.0
> ...
> libglib2.0-dev/trusty
> 2.40.0-2 i386 Development files for the GLib library
请告诉我,我这里遗漏了什么?
答案1
你可以从其存储库安装它。在 TipsUbuntu 网站上,有最新版本 9.2 的说明这里。
sudo sh -c 'echo "deb http://repos.codelite.org/ubuntu/ trusty universe" >> /etc/apt/sources.list.d/codelite.list'
<- 添加存储库。sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
<- 设置密钥信任。sudo apt update && sudo apt install codelite wxcrafter
<- 安装!- 如果它给你带来任何依赖问题,你可以用以下方法修复它们
sudo apt-get install -f
希望这可以帮助!