meta-packages can't be installed on 64-bit Gutsy

Bug #193140 reported by J. E. Pendergrass
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
APTonCD
New
Undecided
Unassigned

Bug Description

Using 64-bit Gutsy, I installed APTonCD via synaptic, and created a CD complete with a meta-package. Upon using the CD to update my secondary machine. which also runs 64-bit Gutsy, I found that while the individual packages are fine, the meta-package produced a "Wrong architecture 'i386'" error, as if it were 32-bit, and cannot be used.

Revision history for this message
Jeremy Visser (jeremy-visser) wrote :

If it's just a meta-package, they should be creating it with the "all" architecture (or was it "any"?).

Revision history for this message
Laudeci Oliveira (laudeci) wrote :

could you please send us the result of $ uname -m command in your terminal?

Revision history for this message
J. E. Pendergrass (jedwardp) wrote :

x86_64

Revision history for this message
Laudeci Oliveira (laudeci) wrote :

can you send these files .disk/info and aptoncd-metapackage stored in your backup dvd?

Thank you

Revision history for this message
J. E. Pendergrass (jedwardp) wrote :

The .disk file contains nothing but the following single line of text:

APTonCD for ubuntu gutsy - amd64 (2008-02-18 22:21) CD1

The metapackage is attached.

Thanks for your time and help.

Revision history for this message
wild.ideas (wild-ideas) wrote :

I have had the same problem in 8.10 and 9.04: The AptOnCD metapackage works fine with 32-bit machines, but fails for 64-bit machines with the "Wrong architecture 'i386'" error.

This is very frustrating, as there doesn't seem to be a workaround -- other than re-installing all the packages by hand.

The title ought to be updated to "meta-packages can't be installed on 64-bit platforms" and bumped up; surely this isn't a complicated fix...

Revision history for this message
lljccoael (lljccoael-deactivatedaccount) wrote :

As of 10.04, this is still an unresolved issue... For 64-bit machines, APTonCD is a totally broken and useless program.

Revision history for this message
Laudeci Oliveira (laudeci) wrote :

Thank you for the report, a patch for that bug is going to be ready until next monday.
Sorry about the delay to get it done.

Revision history for this message
lljccoael (lljccoael-deactivatedaccount) wrote :

Thank you for the patch.

Revision history for this message
lljccoael (lljccoael-deactivatedaccount) wrote :

Sadly, as of 10.10, the metapackage has the "Wrong architecture 'i386'" error.

Revision history for this message
FabioS (aksaf) wrote :

I don't know whether it could be useful, but in order to have the metapackage created with right arch I modified the file /usr/lib/python2.7/dist-packages/APTonCD/core/metapackage.py as installed from
/usr/lib/python2.7/dist-packages/APTonCD/core/metapackage.py
or $srcdir/APTonCD/core/metapackage.py from aptoncd_0.1.98+bzr117.orig.tar.gz
(they are alike).
I'm on Ubuntu 11.04 x86_64.
Here's an excerpt from attachment (actually I simply added/edited a pair of lines):

@@ -17,6 +17,7 @@
 [..]
 import gobject
+from APTonCD.core.utils import SystemInfo

 class MetaPackage(object):
  """
@@ -24,13 +25,14 @@
  """
[..] def __init__(self, filename=""):
+ util = SystemInfo()
   self.fileName = filename
[..]
   self.mtPriority = 'optional'
- self.mtArch = 'i386'
+ self.mtArch = util.architecture
   self.mtMaintainer = 'APTonCD Auto-Packager <http://aptoncd.sourceforge.net>'

It works (at list as far as I tested)

Revision history for this message
FabioS (aksaf) wrote :

two typos:
"from /usr/lib/python2.7/dist-packages/APTonCD/core/metapackage.py"
should be
"from pool/universe/a/aptoncd/aptoncd_0.1.98+bzr117-1.1build2_all.deb"
and
"at list" --> "at least"

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.