• Bug#1103238: bash: ./file.exe: cannot execute binary file: Exec format

    From Bernhard Treutwein@21:1/5 to All on Tue Apr 15 11:20:01 2025
    Package: wine-binfmt
    Version: 8.0~repack-4
    Severity: normal
    X-Debbugs-Cc: bugs@wildwein.de

    Dear Maintainer,

    when I try on a amd64 installation to start a win32 application by ./file.exe an
    error ("bash: ./file.exe: cannot execute binary file: Exec format error") is
    reported, but when I start it with "wine file.exe" it runs flawlessly.

    In 32bit Debian installation starting it with ./file.exe works
    without problems, but in 64bit Debian with 32bit support it fails.

    -- Package-specific info:
    /usr/bin/wine points to /usr/bin/wine-stable.

    -- System Information:
    Debian Release: 12.10
    APT prefers stable-updates
    APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.1.0-33-amd64 (SMP w/4 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages wine-binfmt depends on:
    ii systemd 252.36-1~deb12u1
    ii wine [wine] 8.0~repack-4

    wine-binfmt recommends no packages.

    wine-binfmt suggests no packages.

    Versions of packages wine depends on:
    ii wine32 8.0~repack-4
    ii wine64 8.0~repack-4

    Versions of packages wine suggests:
    pn dosbox <none>
    ii kio-extras 4:22.12.3-1
    pn playonlinux <none>
    pn q4wine <none>
    pn winbind <none>
    pn winetricks <none>

    Versions of packages libwine depends on:
    ii libasound2 1.2.8-1+b1
    ii libc6 2.36-9+deb12u10
    ii libcapi20-3 1:3.27-3+b1
    ii libfontconfig1 2.14.1-4
    ii libfreetype6 2.12.1+dfsg-5+deb12u4
    ii libglib2.0-0 2.74.6-2+deb12u5
    ii libgphoto2-6 2.5.30-1
    ii libgphoto2-port12 2.5.30-1
    ii libgstreamer-plugins-base1.0-0 1.22.0-3+deb12u4
    ii libgstreamer1.0-0 1.22.0-2+deb12u1
    ii libpcap0.8 1.10.3-1
    ii libpulse0 16.1+dfsg1-2+b1
    ii libudev1 252.36-1~deb12u1
    ii libunwind8 1.6.2-3
    ii libusb-1.0-0 2:1.0.26-1
    ii libx11-6 2:1.8.4-2+deb12u2
    ii libxext6 2:1.3.4-1+b1
    ii libz-mingw-w64 1.2.13+dfsg-1
    ii ocl-icd-libopencl1 [libopencl1] 2.3.1-1

    Versions of packages libwine recommends:
    ii fonts-liberation 1:1.07.4-11
    ii fonts-wine 8.0~repack-4
    ii gstreamer1.0-plugins-good 1.22.0-5+deb12u2
    ii libasound2-plugins 1.2.7.1-1
    ii libcups2 2.4.2-3+deb12u8
    ii libdbus-1-3 1.14.10-1~deb12u1
    ii libgl1 1.6.0-1
    ii libgl1-mesa-dri 22.3.6-1+deb12u1
    ii libgnutls30 3.7.9-2+deb12u4
    ii libgssapi-krb5-2 1.20.1-2+deb12u2
    ii libkrb5-3 1.20.1-2+deb12u2
    ii libodbc2 2.3.11-2+deb12u1
    ii libosmesa6 22.3.6-1+deb12u1
    ii libsdl2-2.0-0 2.26.5+dfsg-1
    ii libv4l-0 1.22.1-5+b2
    ii libvulkan1 1.3.239.0-1
    ii libxcomposite1 1:0.4.5-1
    ii libxcursor1 1:1.2.1-1
    ii libxfixes3 1:6.0.0-2
    ii libxi6 2:1.8-1+b1
    ii libxinerama1 2:1.1.4-3
    ii libxrandr2 2:1.5.2-2+b1
    ii libxrender1 1:0.9.10-1.1
    ii libxxf86vm1 1:1.1.4-1+b2

    Versions of packages libwine suggests:
    ii cups-bsd 2.4.2-3+deb12u8
    ii gstreamer1.0-libav 1.22.0-2
    ii gstreamer1.0-plugins-bad 1.22.0-4+deb12u5
    ii gstreamer1.0-plugins-ugly 1.22.0-2+deb12u1
    pn ttf-mscorefonts-installer <none>

    Versions of packages wine32 depends on:
    ii libc6 2.36-9+deb12u10
    ii libwine 8.0~repack-4

    Versions of packages wine32 recommends:
    ii wine [wine] 8.0~repack-4

    Versions of packages wine32 suggests:
    pn wine32-preloader <none>

    Versions of packages wine64 depends on:
    ii libc6 2.36-9+deb12u10
    ii libwine 8.0~repack-4

    Versions of packages wine64 recommends:
    ii wine [wine] 8.0~repack-4
    ii wine32 8.0~repack-4

    Versions of packages wine64 suggests:
    pn wine64-preloader <none>

    Versions of packages wine-binfmt is related to:
    pn dxvk <none>
    pn dxvk-wine32-development <none>
    pn dxvk-wine64-development <none>
    ii fonts-wine 8.0~repack-4

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bernhard@21:1/5 to All on Wed Apr 16 14:40:01 2025
    VGhlcmUgbm8gaW5mbyBmb3VuZCBpbiAvcHJvYy9zeXMvZnMvYmluZm10X21pc2MgdGhhdCB3aW5l IGlzIHJlZ2lzdGVyZWQgYXMgaW50ZXJwcmV0ZXIu

    PGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0 L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPjwvaGVhZD48Ym9keSBkaXI9ImF1dG8iPjxkaXYgZGlyPSJh dXRvIj5UaGVyZSBubyBpbmZvIGZvdW5kIGluIC9wcm9jL3N5cy9mcy9iaW5mbXRfbWlzYyB0aGF0 IHdpbmUgaXMgcmVnaXN0ZXJlZCBhcyBpbnRlcnByZXRlci48L2Rpdj48ZGl2IGRpcj0iYXV0byI+ PGJyPjwvZGl2PjwvYm9keT48L2h0bWw+

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernhard Treutwein@21:1/5 to All on Fri Apr 18 14:00:01 2025
    after reading a bit background information about binfmt_misc I rtied to re-register wine with

    cd /proc/sys/fs/binfmt_misc
    echo ':DOSWin:M::MZ::/usr/bin/wine:' > register

    and now I can start my application with ./file.exe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)