Installation
安裝 lxc 1.0.0 時出錯
我正在嘗試安裝 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 命令。順便說一句,我的 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).
我想出瞭如何安裝 lxc-1.0.0-alpha1 一個 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
您正在執行
raring
,但您指定了saucy
PPA。這不能保證有效。在你的情況下,顯然不是。將其更改為raring
. 或者更好的是,升級到 13.10;你已經過了13.04 的支持視窗。