Public bug reported:

# this just gets binfmt set up correctly to demonstrate the error.
$ sudo apt-get install qemu-user-static

$ wget 
http://cloud-images.ubuntu.com/quantal/20120917/quantal-server-cloudimg-armhf-root.tar.gz
$ mkdir armhf
$ sudo tar -C armhf -Sxpzf quantal-server-cloudimg-armhf-root.tar.gz

$ uname -m
x86_64

$ sudo chroot armhf /bin/sh -c 'cat /etc/cloud/build.info && dpkg 
--print-architecture'
build_name: server
serial: 20120917
armhf

$ sudo chroot armhf /usr/bin/dpkg -S /usr/bin/qemu-arm-static
dpkg-query: no path found matching pattern /usr/bin/qemu-arm-static

The above should not work.
It only works because of the presense of /usr/bin/qemu-arm-static.
Demonstrated here:

$ sudo mv armhf/usr/bin/qemu-arm-static armhf/usr/bin/qemu-arm-static.bad
$  sudo chroot armhf /bin/sh -c 'cat /etc/cloud/build.info && dpkg 
--print-architecture'
chroot: failed to run command `/bin/sh': No such file or directory


Please remove /usr/bin/qemu-arm-static from the images.

** Affects: ubuntu
     Importance: High
     Assignee: Ben Howard (utlemming)
         Status: Triaged


** Tags: cloud-images cloud-images-build

** Changed in: ubuntu
   Importance: Undecided => High

** Changed in: ubuntu
       Status: New => Triaged

** Changed in: ubuntu
     Assignee: (unassigned) => Ben Howard (utlemming)

** Tags added: cloud-images cloud-images-build

** Summary changed:

- arm cloud image contains /usr/bin/qemu-arm-static
+ arm cloud image contains unpackaged /usr/bin/qemu-arm-static

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

Title:
  arm cloud image contains unpackaged /usr/bin/qemu-arm-static

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to