Ich würde gerne ein Windows Programm (Command Line Interface, CLI) von einer Linux Shell aus ausführen. Mit Ubuntu 22 ging das mit wine, mit Ubuntu 24 aber nicht mehr:
$ wine .../bin/avr-gcc.exe it looks like wine32 is missing, you should install it. as root, please execute "apt-get install wine32:i386" 00e0:err:environ:init_peb starting L"Z:\\home\\DATA\\Data\\tmp\\WinAVR-15.2\\bin\\avr-gcc.exe" in experimental wow64 mode wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135 Application could not be started, or no application associated with the specified file. ShellExecuteEx failed: Internal error.
Wenn ich versuche wine32:i386 zu installieren:
$ sudo apt-get install wine32:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apt : Depends: libapt-pkg6.0t64 (>= 2.8.3) but it is not going to be installed
Depends: libstdc++6 (>= 13.1) but it is not installable
emacs : Depends: emacs-gtk (>= 1:27.1) but it is not going to be installed or
emacs-pgtk (>= 1:27.1) but it is not going to be installed or
emacs-lucid (>= 1:27.1) but it is not going to be installed or
emacs-nox (>= 1:27.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.Wine ist also eine Sackgasse.
Als Alternative zu Wine fand ich die Empfehlung, PlayOnLinux zu verwenden, was quasi ein besseres Wine sei. Also PlayOnLinux installiert:
Bereits PlayOnLinux starten funktioniert nicht:
Anwendungen → System → PlayOnLinux → Click = Nix passiert.
Auf der Kommandozeile:
$ playonlinux --help
Usage: playonlinux
playonlinux [-h] [--help]
playonlinux --run <Shortcut name> [<Filename>]
playonlinux --version
$ playonlinux
Looking for python3... 3.12.3 - selected
/usr/share/playonlinux/python/mainwindow.py:710: SyntaxWarning: invalid escape sequence '\|'
self.SupprotedIconExt = "All|*.xpm;*.XPM;*.png;*.PNG;*.ico;*.ICO;*.jpg;*.JPG;*.jpeg;*.JPEG;*.bmp;*.BMP\
1.0
Traceback (most recent call last):
File "/usr/share/playonlinux/python/mainwindow.py", line 41, in <module>
import options, threading, debug
File "/usr/share/playonlinux/python/options.py", line 21, in <module>
from asyncore import dispatcher
ModuleNotFoundError: No module named 'asyncore'Ok fehlt offenbar ein Python Modul:
$ pip install asyncore
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.Veruche das:
$ sudo apt install python3-asyncore Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package python3-asyncore
Was auch nicht funktioniert ist mich bei PlayOnLinux zu registrieren um im dortigen Forum zu fragen:
0) Gehe auf PlayOnLinux Registrierung
1) Registrierung Form ausgefüllt
2) Captcha gelöst
3) Registrierungc-Code angefordert
4) 1/2 Minute später: Code per Email erhalten und eingegeben
5) captcha abgelaufen → Neues Captcha eingeben → Seite schickt mich zu 0) ohne ein Konto erstellt zu haben.
Ist also unmöglich mich da anzumelden. JavaScript ist global aktiviert, und ich habe die obige Schleife ca. 10x gedreht bevor ich es aufgegeben habe.
Als weitere Alternative zu Wine wird Flatpak + Bottles genannt. Also FLatpak installiert, Bottles installiert, und nach > 1GB Download komme ich in dem Rabbit Hole nicht weiter: Keine Ahnung, wie man das Zeugs dazu bringt eine .exe auszuführen.
Nächster Versuch: VirtualBox. Dort habe ich ein Windows 2000 Gast. Wenn ich dort das exe starte poppt folgendes Festerle auf:
Der Prozedureinsprungpunkt "GetThreadId" wurde in der DLL "KERNEL32.dll" nicht gefunden.
Das Gast OS ist also zu alt bzw. die exe zu neu: braucht wohl mindestens Windows 2003 / Vista.
Kann mir jemand bei einem der fehlgeschlagenen Ansätze weiterhelfen?