lxc-create for armhf fails with error "failed to execute template 'ubuntu'"

Bug #999187 reported by James Hunt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Unassigned
Precise
Fix Released
High
Stéphane Graber
Quantal
Fix Released
High
Unassigned

Bug Description

$ sudo lxc-create -n quantal-armhf -t ubuntu -- -a armhf
  :
  :
W: Failure while installing base packages. This will be re-attempted up to five times.
W: Failure while installing base packages. This will be re-attempted up to five times.
W: Failure while installing base packages. This will be re-attempted up to five times.
W: Failure while installing base packages. This will be re-attempted up to five times.
W: Failure while installing base packages. This will be re-attempted up to five times.
I: Configuring the base system...
  :
  :
E: Unable to locate package mountall:amd64
E: Unable to locate package iproute:amd64
E: Unable to locate package isc-dhcp-client:amd64
failed to execute template 'ubuntu'
aborted
$

Revision history for this message
James Hunt (jamesodhunt) wrote :
Robie Basak (racb)
Changed in lxc (Ubuntu):
importance: Undecided → High
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks.

Sounds like /etc/apt/sources.list is not being set right.

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

James,

I assume this is on precise?

Changed in lxc (Ubuntu Precise):
status: New → Fix Released
Changed in lxc (Ubuntu Quantal):
status: New → Confirmed
Changed in lxc (Ubuntu Precise):
assignee: nobody → Stéphane Graber (stgraber)
importance: Undecided → High
Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
Changed in lxc (Ubuntu Precise):
status: Fix Released → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote : Please test proposed package

Hello James, or anyone else affected,

Accepted lxc into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
James Hunt (jamesodhunt) wrote :

Hi Serge - yes, this was on a precise host.

Confirmed that lxc 0.7.5-3ubuntu56 from precise-proposed/universe now allows me to create, start and stop an armhf container.

Thanks for the quick turn-around!

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu56

---------------
lxc (0.7.5-3ubuntu56) precise-proposed; urgency=low

  * Fix Ubuntu template to install the host architecture of the required
    mutli-arch packages (when using qemu-user-static) instead of hardcoded
    "amd64" version. (LP: #999187)

lxc (0.7.5-3ubuntu55) precise-proposed; urgency=low

  * 0082-umount-old-proc: fix proc auto-mount. If /proc is already mounted,
    make sure that /proc/self points to 1, since we are container init.
    Otherwise, assume proc is an old one, and umount it and remount our own.
    If we keep the old proc mounted, apparmor transitions will by tried for
    wrong task and fail. Also move check for whether apparmor is enabled so
    that it is called by lxc-execute. (LP: #993706)
  * debian/control: add cloud-utils to lxc Recommends, as lxc-ubuntu-cloud
    needs it. (LP: #995361)
  * debian/lxc.upstart: load apparmor profiles before auto-starting containers.
    (LP: #989853)
  * debian/control: add apparmor to lxc Depends (LP: #997681)
  * debian/local/lxc-start-ephemeral: quote $line so its contents don't get
    expanded (LP: #997687)
 -- Stephane Graber <email address hidden> Tue, 15 May 2012 12:00:18 -0400

Changed in lxc (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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