[Bug 906500] Re: lxc-create fails with errors that it is unable to access archive.ubuntu.com

Serge Hallyn 906500 at bugs.launchpad.net
Thu Dec 22 15:01:31 UTC 2011


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
Server Team, which is subscribed to lxc in 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



More information about the Ubuntu-server-bugs mailing list