wrong architecture (i386,amd64) packages downloading

Bug #1016121 reported by Paolo Sammicheli
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-defaults-builder (Ubuntu)
Fix Released
Undecided
Nobuto Murata
Precise
Fix Released
Undecided
Unassigned

Bug Description

Launching ubuntu-default-build from Ubuntu 12.04 amd64 (amazon cloud) with the command:

$ ubuntu-defaults-image --ppa ubuntu-defaults-it-team/ubuntu-defaults-it --locale it --components main,restricted,universe --release quantal --keep-apt-components main,restricted --arch i386

It download amd64 packages:

Get:1 http://archive.ubuntu.com/ubuntu/ quantal/main libroken18-heimdal amd64 1.6~git20120403+dfsg1-2 [45.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ quantal/main libasn1-8-heimdal amd64 1.6~git20120403+dfsg1-2 [214 kB]
Get:3 http://ppa.launchpad.net/ubuntu-defaults-it-team/ubuntu-defaults-it/ubuntu/ quantal/main ubuntu-defaults-it all 0.2.0 [4674 B]
Get:4 http://archive.ubuntu.com/ubuntu/ quantal/main libasprintf0c2 amd64 0.18.1.1-9ubuntu1 [6762 B]
Get:5 http://archive.ubuntu.com/ubuntu/ quantal/main libgpg-error0 amd64 1.10-3 [14.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ quantal/main libgcrypt11 amd64 1.5.0-3ubuntu1 [279 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ quantal/main libp11-kit0 amd64 0.12-2ubuntu1 [34.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ quantal/main libtasn1-3 amd64 2.13-2 [43.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ quantal/main libgnutls26 amd64 2.12.14-5ubuntu4 [460 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ quantal/main libkrb5support0 amd64 1.10.1+dfsg-1 [23.7 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ quantal/main libk5crypto3 amd64 1.10.1+dfsg-1 [83.2 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ quantal/main libkeyutils1 amd64 1.5.5-2 [7986 B]
Get:13 http://archive.ubuntu.com/ubuntu/ quantal/main libkrb5-3 amd64 1.10.1+dfsg-1 [358 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ quantal/main libgssapi-krb5-2 amd64 1.10.1+dfsg-1 [118 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ quantal/main libidn11 amd64 1.25-2 [119 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ quantal/main libhcrypto4-heimdal amd64 1.6~git20120403+dfsg1-2 [102 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ quantal/main libheimbase1-heimdal amd64 1.6~git20120403+dfsg1-2 [32.6 kB]
...
...

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntu-defaults-builder (not installed)
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic-pae 3.2.18
Uname: Linux 3.2.0-25-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Thu Jun 21 17:49:15 2012
InstallationMedia: Ubuntu 12.04 "Precise" - Build i386 LIVE Binary 20120426-15:10
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-defaults-builder
UpgradeStatus: No upgrade log present (probably fresh install)

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-defaults-builder (Ubuntu):
status: New → Confirmed
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

I meet with the same problem - tried to create amd64 image on 32 bit system with command:
ubuntu-defaults-image --arch amd64 --ppa baltix-members/ppa --components main,restricted,universe,multiverse --package ./baltix-defaults_12.04~3~precise1_all.deb

But instead of amd64 image I got i386 image :(
It seems ubuntu-defaults-image script simply chooses architecture from running system and ignores --arch option :(

Revision history for this message
Nobuto Murata (nobuto) wrote :

It seems passing LB_ARCHITECTURES needed.

Changed in ubuntu-defaults-builder (Ubuntu):
assignee: nobody → Nobuto MURATA (nobuto)
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks! I merged your branch.

Changed in ubuntu-defaults-builder (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-defaults-builder - 0.38

---------------
ubuntu-defaults-builder (0.38) quantal; urgency=low

  * bin/ubuntu-defaults-image: Pass LB_ARCHITECTURES as well, to fix --arch.
    Thanks Nobuto MURATA for the patch! (LP: #1016121)
 -- Martin Pitt <email address hidden> Mon, 17 Sep 2012 16:34:08 +0200

Changed in ubuntu-defaults-builder (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :

Thanks Martin for a quick merge!

I will attach a whole log to confirm that it can build a i386 image on a amd64 host.

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Martin,

could you please backport these fixes to Precise as well, since we use precise cloud istances for building the CD.

Thanks in advance!

Revision history for this message
Martin Pitt (pitti) wrote :

Sure, I uploaded the fix to the precise-proposed queue. It would be nice if you could verify it once it gets accepted by the SRU team. Thanks!

Changed in ubuntu-defaults-builder (Ubuntu Precise):
status: New → In Progress
Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Hello,

we need this version for building Quantal and still this is not in proposed. Are there any ETA?

Thanks in advance

Revision history for this message
Martin Pitt (pitti) wrote :

Hm, I'm not sure what went wrong, sorry. I uploaded it to the precise-proposed queue again, needs SRU review.

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

UP! Martin, could you please raise SRU attention on this, it's urgent at this point.

Revision history for this message
Nobuto Murata (nobuto) wrote :

Hi Paolo,

If you are in hurry, you can change one line in /usr/bin/ubuntu-defaults-image like the patch below for now.
http://launchpadlibrarian.net/118722304/ubuntu-defaults-builder_0.31_0.31.1.diff.gz

It's a shell script, so you don't have to build the whole package and the change takes effect immediately.

I hope it helps you.

Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Paolo, or anyone else affected,

Accepted ubuntu-defaults-builder into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/ubuntu-defaults-builder/0.31.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in ubuntu-defaults-builder (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Testing on the same istance described above (amd64), now building an i386 image it gets the right packages:

Get:1009 http://archive.ubuntu.com/ubuntu/ quantal/main libgnome-menu2 i386 3.0.1-0ubuntu8 [53.6 kB]
Get:1010 http://archive.ubuntu.com/ubuntu/ quantal/main libgphoto2-l10n all 2.4.14-2 [7470 B]
Get:1011 http://archive.ubuntu.com/ubuntu/ quantal/main libgpod-common i386 0.8.2-6build1 [27.7 kB]
Get:1012 http://archive.ubuntu.com/ubuntu/ quantal/main libpango-perl i386 1.223-0ubuntu1 [223 kB]
Get:1013 http://archive.ubuntu.com/ubuntu/ quantal/main libgtk2-perl i386 2:1.244-1 [922 kB]

Verified, Thanks!

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 ubuntu-defaults-builder - 0.31.1

---------------
ubuntu-defaults-builder (0.31.1) precise-proposed; urgency=low

  * bin/ubuntu-defaults-image: Pass LB_ARCHITECTURES as well, to fix --arch.
    Thanks Nobuto MURATA for the patch! (LP: #1016121)
 -- Martin Pitt <email address hidden> Sat, 06 Oct 2012 19:12:40 +0200

Changed in ubuntu-defaults-builder (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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.