wine-stable installs wine64 on 32-bit System

Bug #1773703 reported by UlfZibis on 2018-05-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wine
Opinion
Undecided
Unassigned
wine (Ubuntu)
Undecided
Unassigned

Bug Description

On Lubuntu 32-bit 18.04 wine-stable installs wine64 with hundreds of other amd64 packages (~ 700 MB), so wine doesn't work:
  $ winecfg
  wine: created the configuration directory '/home/ich/.wine'
  /usr/lib/wine/wineserver: 15: exec: /usr/lib/wine/wineserver64: Exec format error
  wine: chdir to /tmp/.wine-1000/server-80f-201cd : No such file or directory

Even passing the architecture explicitly doesn't help:
  sudo apt-get install wine-stable:i386

Source of the problem seems to be the foreign amd64 architecture as a workaround for bug 1648278 which can't be removed:
  $ LC_ALL=C dpkg --remove-architecture amd64
  dpkg: error: cannot remove architecture 'amd64' currently in use by the database

Workaround here:
  sudo apt-get install wine32
instead:
  sudo apt-get install wine-stable

UlfZibis (ulf-zibis) on 2018-05-27
description: updated
UlfZibis (ulf-zibis) wrote :

Possible solution:
Installation of wine-stable should not prioritize on _foreign_ architecture.

description: updated
summary: - wine-stable installs hundreds of amd64 packages on 32-bit System
+ wine-stable installs wine64 on 32-bit System
UlfZibis (ulf-zibis) on 2018-05-28
description: updated
jre (jre-phoenix) wrote :

Hi Ulf,

sorry for the late answer. You've got an uncommon setup, not sure if it is "valid" because I'd expect a foreign-architecture on a system to just work.

I'm not totally sure if wineserver64 (a 64-bit program) not running on a 32-bit system with "some" 64-bit parts is a bug. Maybe this depends on the specifics of your system, but I'd say not-a-bug.

The issue of a broken system (bug 1648278), or your original problem, needs fixing, but I don't think we should workaround this in any way in the Wine packaging. The Wine packaging defaults to support "everything" if available. If you've got both 32- and 64-bit enabled the default is to support both, which works perfectly on usual (non-broken) systems. If you want another setup you can just uninstall e.g. wine32 or wine64, since they are only recommended by wine.

Finally AFAIK there is no possibility to handle foreign architecture separately in the packaging. The best fix to get a pure 32-bit Wine installation might be to make "wine" an architecture-dependent package (arch:any) instead of arch:all, but I don't really see the need to do so.

Therefore I'm tagging this report as "opinion".

Greets
jre

Changed in wine (Ubuntu):
status: New → Opinion
Changed in wine:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers