"lxc-create -u ubuntu" fails if /var/cache/lxc too old?

Bug #1075736 reported by Dan Kegel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
New
Medium
Unassigned

Bug Description

In ubuntu 12.04:

"sudo lxc-create -t ubuntu -n foobar -- -r lucid"
fails after a while. Workaround is "sudo rm -rf /var/cache/lxc".
It'd be nice if it didn't go stale like that.

Log of the failure:

No config file specified, using the default config
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/lucid/rootfs-amd64 ...
Copy /var/cache/lxc/lucid/rootfs-amd64 to /var/lib/lxc/foobar/rootfs ...
Copying rootfs to /var/lib/lxc/foobar/rootfs ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  iso-codes python-apt python-gnupginterface python-pycurl python-support unattended-upgrades
Suggested packages:
  isoquery python-apt-dbg python-gtk2 python-vte python-apt-doc libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
The following NEW packages will be installed:
  iso-codes python-apt python-gnupginterface python-pycurl python-software-properties python-support unattended-upgrades
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2992kB of archives.
After this operation, 15.2MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main iso-codes 3.12.1-1 [2642kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid-updates/main python-apt 0.7.94.2ubuntu6.4 [187kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main python-support 1.0.4ubuntu1 [32.0kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid/main python-gnupginterface 0.3.2-9.1 [19.1kB]
Get:5 http://archive.ubuntu.com/ubuntu/ lucid-updates/main unattended-upgrades 0.55ubuntu7 [21.2kB]
Get:6 http://archive.ubuntu.com/ubuntu/ lucid/main python-pycurl 7.19.0-3 [60.1kB]
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main python-software-properties 0.75.10.2
  404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main python-software-properties 0.75.10.2
  404 Not Found [IP: 91.189.92.190 80]
Fetched 2962kB in 4s (650kB/s)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/software-properties/python-software-properties_0.75.10.2_all.deb 404 Not Found [IP: 91.189.92.190 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
failed to execute template 'ubuntu'
aborted

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug.

I see this is fixed in quantal, but not in precise. The fix (doing an 'apt-get update' before the install of python-software-properties) should definately be SRUd!

Changed in lxc (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.