安装 lxc 1.0.0 时出错

安装 lxc 1.0.0 时出错

我正在尝试安装 lxc 1.0.0,但在运行此命令时出现此错误

我已将以下 repos 添加到我的 sources.lst 文件中

deb http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main 
deb-src http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main

并运行 apt-get install 命令。顺便说一下,我的 Ubuntu 是 13.04 服务器映像。有人能帮我解决这个错误吗?

root@host:/work/user1# apt-get install lxc
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 cgmanager-tests : Depends: cgmanager but it is not going to be installed
 lxc : Depends: cgmanager but it is not going to be installed
       Depends: liblxc1 (= 1.0.1+master~20140324-2000-0ubuntu1~ppa1~saucy1) but it is not going to be installed
       Depends: sysv-rc (>= 2.88dsf-24) but 2.88dsf-13.10ubuntu15 is to be installed or
                file-rc (>= 0.8.16) but it is not installable
       Recommends: uidmap but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

您正在运行raring,但您指定了saucyPPA。这不能保证能正常工作。而且就您而言,显然不能。将其更改为raring。或者更好的是,升级到 13.10;您已经过了支持窗口为 13.04。

答案2

我搞清楚了如何在 13.04 (raring ringtail) 上安装 lxc-1.0.0-alpha1。我只需在 /etc/apt/sources.list 中启用 raring-backports 即可。

以下命令将安装 lxc-1.0.0-alpha1

apt-get install liblxc0/raring-backports
apt-get install python3-lxc/raring-backports
apt-get install lxc/raring-backports

相关内容