FG
💻 Software

Why is Ubuntu trying to open my Mono app with Wine instead of Mono?

Fresh6 days ago
Mar 15, 20263486 views
Confidence Score0%
0%

Problem

So, I have compiled a C# program on Linux using MonoDevelop. When I try to execute the resulting binary, my system tries and fails to run it as a windows executable, with wine. Wine gives me the following message: I can only convince it to run by explicitly calling : So, how can I make this the def…

Error Output

$ ~/bin/MyMonoApp
wine: Install the Windows version of Mono to run .NET executables
~/bin/MyMonoApp: command not found

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why is Ubuntu trying to open my Mono app with Wine instead of Mono?

Low Risk

Execution of binaries in the Linux kernel is controlled via the module (short for “miscellaneous binary formats”). The way it works is that the kernel looks at the first few bytes of the file and sees if there is a “magic number” that characterizes …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment