ubuntuusers.de

Wie Windows Command Line Programm ausführen?

Status: Ungelöst | Ubuntu-Version: Ubuntu 24.04 (Noble Numbat)
Antworten |

gjl

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

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?

schwarzheit Team-Icon

Supporter
Avatar von schwarzheit

Anmeldungsdatum:
31. Dezember 2007

Beiträge: 9128

gjl schrieb:

Ubuntu 22 ... Ubuntu 24

Gibt es beides nicht. Sei genau in deinen Angaben.

von.wert

Anmeldungsdatum:
23. Dezember 2020

Beiträge: 14599

gjl schrieb:

$ sudo apt-get install wine32:i386

Was glaubst Du denn, warum wine32 wine32 heißt?

1
sudo apt install wine32

Anstatt die Krücke wine zu verwenden, nutzt Du native Linux-Software.

https://www.mikrocontroller.net/articles/AVR-GCC#Linux/Unix

Im übrigen liegt gcc-avr im Ubuntu-Repository universe:

1
sudo apt install gcc-avr

...und fertig ist der Lack.

gjl

(Themenstarter)

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

Sei genau in deinen Angaben.

Ich hatte das beim Eröffnungpost ausgewählt: "Ubuntu-Version: Ubuntu 24.04 (Noble Numbat)"

Ich wusste nicht, dass das nicht ausreichend ist.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.4 LTS
Release:	24.04
Codename:	noble

$ sudo apt-get install wine32:i386

Was glaubst Du denn, warum wine32 wine32 heißt?

1
sudo apt install wine32

Damit bekomme ich den selben Fehler:

$ sudo apt install wine32
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.

Anstatt die Krücke wine zu verwenden, nutzt Du native Linux-Software.

Ich verstehe jetzt nicht, wie das hilft eine exe auszuführen.

Ich habe ca. 20 native avr-gcc Versionen hier, aber mich interessiert das Verhalten eines Canadian Cross avr-gcc.exe, also speziell das Verhalten unter Host = Windows.

https://www.mikrocontroller.net/articles/AVR-GCC#Linux/Unix

Da finde ich keinen Hinweis darauf, wie ich eine avr-gcc.exe unter Linux ausführen kann.

Im übrigen liegt gcc-avr im Ubuntu-Repository universe:

1
sudo apt install gcc-avr

...und fertig ist der Lack.

Ich habe wie gesagt native avr-gcc en masse. Es geht aber um das Verhalten unter Host = Windows, und ich habe eben kein natives Windows (und das W2K in meiner Virtual Box ist zu alt).

trollsportverein

Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 6399

Jeweils aktuelle Wine Versionen gibt es vom WineHQ:

Anleitungen für die Ubuntu Releases:

gjl

(Themenstarter)

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

@trollsportverein

Hi, Ich habe versucht der Anleitung zu folgen. Bis zum "update" funktioniert alles:

$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease                                                                                      
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]                                                                     
Get:4 https://dl.winehq.org/wine-builds/ubuntu noble InRelease [8910 B]                                                      
Get:5 https://linux.brostrend.com stable InRelease [9843 B]                                                   
Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease  
Get:7 https://dl.winehq.org/wine-builds/ubuntu noble/main amd64 Packages [230 kB]
Get:8 https://dl.winehq.org/wine-builds/ubuntu noble/main i386 Packages [231 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main i386 Packages [525 kB]
Get:10 https://dl.winehq.org/wine-builds/ubuntu noble/main i386 Contents (deb) [188 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1141 kB]
Get:12 https://dl.winehq.org/wine-builds/ubuntu noble/main amd64 Contents (deb) [207 kB]        
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [1132 kB]             
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1676 kB]          
Fetched 5602 kB in 4s (1545 kB/s)                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
69 packages can be upgraded. Run 'apt list --upgradable' to see them.

Dann beim "Install Wine → Wine branch → Stable branch":

$ sudo apt install --install-recommends winehq-stable
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:
 winehq-stable : Depends: wine-stable (= 11.0.0.0~noble-1)
E: Unable to correct problems, you have held broken packages.

Aktuell habe ich

$ wine --version
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32:i386"
wine-9.0 (Ubuntu 9.0~repack-4build3)

Noch immer funktioniert weder Install von "wine32" noch von "wine32:i386" mit dem gleichen Fehler wie im OP:

$ sudo apt-get install wine32
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.

Bearbeitet von schwarzheit:

Fullquote entfernt. Bitte benutze keine kompletten Zitate. Lies dazu Zitate & Verhaltenskodex/Fullquote.

gjl

(Themenstarter)

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

Und der Versuch, wine-stable zu installieren klappt auch nicht (nach remove von wine und wine64):

$ sudo apt install --install-recommends winehq-stable wine-stable
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
 libasound2-plugins : Depends: libavcodec60 (>= 7:6.0)
 libicu74 : Depends: libstdc++6 (>= 13.1) but it is not installable
 liblerc4 : Depends: libstdc++6 (>= 11) but it is not installable
 libpoppler-glib8t64 : Depends: libstdc++6 (>= 11) but it is not installable
 libpoppler134 : Depends: libstdc++6 (>= 13.1) but it is not installable
 libsane1 : Depends: libgphoto2-6t64 (>= 2.5.10) but it is not going to be installed
            Depends: libstdc++6 (>= 13.1) but it is not installable
 libsoxr0 : Depends: libgomp1 (>= 4.9) but it is not installable
 libvpl2 : Depends: libstdc++6 (>= 13.1) but it is not installable
 wine-stable-amd64 : Depends: libgphoto2-6t64 (>= 2.5.10) but it is not going to be installed
                     Recommends: libglu1-mesa but it is not going to be installed or
                                 libglu1
                     Recommends: libsdl2-2.0-0 but it is not going to be installed
                     Recommends: libtiff5 but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

juribel

Anmeldungsdatum:
20. April 2014

Beiträge: 1326

Sind deine Sources aktuell?

sudo apt update

gjl

(Themenstarter)

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

Habe ich vor ca. 2 Stunden ausgeführt: https://forum.ubuntuusers.de/post/9509068/

Habe es nochmale ausgeführt, brachte aber keine Lösung. Update:

$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease                                                                              
Get:3 https://linux.brostrend.com stable InRelease [9843 B]                                                                                 
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease                                                  
Get:5 https://dl.winehq.org/wine-builds/ubuntu noble InRelease [8910 B]                             
Hit:6 http://security.ubuntu.com/ubuntu noble-security InRelease                                    
Get:7 https://dl.winehq.org/wine-builds/ubuntu noble/main i386 Packages [234 kB]
Get:8 https://dl.winehq.org/wine-builds/ubuntu noble/main amd64 Packages [234 kB]
Get:9 https://dl.winehq.org/wine-builds/ubuntu noble/main i386 Contents (deb) [190 kB]                                                      
Get:10 https://dl.winehq.org/wine-builds/ubuntu noble/main amd64 Contents (deb) [209 kB]                                                    
Fetched 886 kB in 6s (138 kB/s)                                                                                                             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

install: Gleicher Fehler wie bereits oben:

$ sudo apt install --install-recommends winehq-stable
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:
 winehq-stable : Depends: wine-stable (= 11.0.0.0~noble-1)
E: Unable to correct problems, you have held broken packages.

trollsportverein

Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 6399

Schon die erste Abhängigkeit ist ganz normal in den Canonical Repositories für Ubuntu zu finden:

Da kann irgendwas bei deinen eingetragenen Repositories nicht stimmen, oder ist unvollständig.

Bei Entwicklerklimbim wäre außerden womöglich auch hinzunehmen von "deb-src" bei den DEB-Pakettypen zusätzlich zu "deb" sinnvoll.

Mittlerweile ist Ubuntu auch beim DEB822 Format angelangt:

von.wert

Anmeldungsdatum:
23. Dezember 2020

Beiträge: 14599

gjl schrieb:

von.wert schrieb:

Anstatt die Krücke wine zu verwenden, nutzt Du native Linux-Software.

Ich verstehe jetzt nicht, wie das hilft eine exe auszuführen.

Wenn ich schreibe, native Linux-Software ausführen, meine ich, native Linux-Software ausführen. Im Normalfall will man ein bestimmtes Programm ausführen, um damit etwas zu erreichen.

Daß Du etwas anderes willst...

mich interessiert das Verhalten eines Canadian Cross avr-gcc.exe, also speziell das Verhalten unter Host = Windows.

...hast Du erst später geschrieben.

Wenn Du etwas unter Windows testen willst, mußt Du Windows installieren, so einfach.

Wine ist nur eine Zwischenschicht, die sozusagen Windows-Befehle in Linux-Befehle umsetzt. Das ist nicht dasselbe. Ob Du da nun grafische Frontends wie Bottles oder PlayOnLinux dazuinstallierst, beide setzen auf Wine auf, ändert daran nichts.

Eine Virtualisierung wie VirtualBox ist da etwas ganz anderes. Ob ein uraltes Tool (wie es sich anhört) in einem Terminal in Windows 11 (de-de, 7.2 GiB) läuft oder Du da irgendein Verhalten erkennen kannst, ist eine andere Frage.

von.wert

Anmeldungsdatum:
23. Dezember 2020

Beiträge: 14599

trollsportverein schrieb:

Schon die erste Abhängigkeit ist ganz normal in den Canonical Repositories für Ubuntu zu finden

...in main und die meisten anderen in universe. Bei seinen Updatereien ist letzteres nicht aufgeführt.

Also, gjl, korrigiere Deine Quellen!

Man aktualisiert auch nicht nur mit "apt update", sondern

1
sudo apt update && sudo apt full-upgrade

gjl

(Themenstarter)

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

Das heißt die obigen Kommandos um WineHQ zu installieren haben das System kaputt gemacht?

kB Team-Icon

Supporter, Wikiteam
Avatar von kB

Anmeldungsdatum:
4. Oktober 2007

Beiträge: 10349

Wohnort: Münster

gjl schrieb:

Das heißt die obigen Kommandos um WineHQ zu installieren haben das System kaputt gemacht?

Nein, das war vielleicht der finale Todesstoß, aber defekt war Dein System schon beim Eröffnungspost:

gjl schrieb:

[…]

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

Also APT selber ist kaputt und da Du das nicht repariert hast, wurde es mit jedem untauglichen Installationsversuch schlimmer.

Für Dich ist jetzt wohl eine neue Installation der einfachste Weg.

gjl

(Themenstarter)

Anmeldungsdatum:
25. Juli 2026

Beiträge: 14

Also APT selber ist kaputt und da Du das nicht repariert hast,

Kannst du mir sagen was ich dazu tun muss?

In /etc/apt/sources.list.d/ubuntu.sources steht:

Types: deb
URIs: http://archive.ubuntu.com/ubuntu
Suites: noble noble-updates noble-backports
Components: main universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: noble-security
Components: main universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Enabled: no
Types: deb
URIs: http://dk.archive.ubuntu.com/ubuntu/
Suites: xenial
Components: main universe
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Wenn ich das recht verstehe ist das was in https://axebase.net/blog/2013/05/06/saubere-sources-list-erstellen/ für "Ubuntu (und offizielle Derivate) 24.04 Noble Numbat" stehen soll, nur dass da noch ein deaktiviertes drittes Archiv steht.

Dann kommen die Prolbeme also von diesem deaktivierten Xenial Archiv?

Antworten |