Hi Gary,

Could you try adding

   chroot $rootfs apt-get

to the top of the post-process() function in /usr/lib/lxc/templates/lxc-
ubuntu?

Something like the following patch:

--- lxc-ubuntu  2011-12-22 08:59:02.550638249 -0600
+++ lxc-ubuntu.new      2011-12-22 08:59:22.954637905 -0600
@@ -318,6 +318,7 @@
     if [ $trim_container -eq 1 ]; then
         trim $rootfs $release
     else
+        chroot $rootfs apt-get update
         # for lucid and maverick, if not trimming, then add the ubuntu-virt
         # ppa and install lxcguest
         if [ $release = "lucid" -o $release = "maverick" ]; then


** Changed in: lxc (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906500

Title:
  lxc-create fails with errors that it is unable to access
  archive.ubuntu.com

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/906500/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to