我正在尝试安装lxc 1.0.0,但运行此命令时出现此错误
我已经将以下回购添加到我的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命令。 BTW我的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).
你正在raring但你指定了一个saucy PPA。 这不能保证工作。 而在你的情况下,显然不是。 把它raring 。 或者更好,升级到13.10; 你已经过了13.04的支持窗口 。
我想出了如何安装lxc-1.0.0-alpha1 one 13.04(raring ringtail)。 我只需在我的/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