[pkg-wine-party] Bug#707046: [wine-bin-unstable] Error: alternative path /usr/bin/wine32-unstable doesn't exist

Daniel Andersson sskraep at gmail.com
Tue May 7 10:57:27 UTC 2013


Package: wine-bin-unstable
Version: 1.5.7-2
Followup-For: Bug #707046

`/var/lib/dpkg/info/wine-bin-unstable.postinst` tries to run:

    /usr/sbin/update-binfmts --import wine

which assumes that there exists a file called `/usr/share/binfmts/wine` in the
correct format. However, the file in question is found (on my system, at least)
at `/usr/share/binfmts/wine/wine`, i.e. in a subfolder. This makes `update-
binfmts` fail.

One can give an absolute path as:

    $ sudo /usr/sbin/update-binfmts --import /usr/share/binfmts/wine/wine
    update-binfmts: warning: /usr/share/binfmts/wine/wine: no executable
/usr/bin/wine-auto found, but continuing anyway as you request

We see that we lack some binaries here.

Updating the postinst script to point to the `wine/wine` file (the "correct
way" would be to write the file to the correct path) still leaves the

    update-alternatives: error: alternative path /usr/bin/wine32-unstable
doesn't exist

error. From `man update-alternatives`:

    Note that the master alternative must exist or the call will fail.

Bypassing `update-alternatives` altogether lets the install process finish
cleanly, but that will leave the Wine installation completely broken as there
is no corresponding binary files to all the symlinks in `/usr/bin`.

My guess is thus that the problem is two-fold:

1. `/usr/share/binfmts/wine/wine` should be written to
`/usr/share/binfmts/wine`
2. the binaries `/usr/bin/wine32-unstable`, `/usr/bin/winecfg32-unstable`, etc.
should be installed.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wine-bin-unstable depends on:
ii  debconf [debconf-2.0]  1.5.50
ii  libwine-bin-unstable   1.5.7-2
ii  libwine-gecko-1.4      1.4+dfsg1-3
ii  x11-utils              7.7~1
ii  xbase-clients          1:7.7+3

wine-bin-unstable recommends no packages.

Versions of packages wine-bin-unstable suggests:
ii  libwine-gl-unstable     1.5.7-2
ii  libwine-print-unstable  1.5.7-2



More information about the pkg-wine-party mailing list