Installation MT5 on opensuse 16/wine 11 fails: "a debugger has been found running in your system"

 

Hi,

when installing the latest version of metatrader 5 the message "a debugger has been found running in your system"

is shown and the installation aborts.


steps to reproduce:

wget https://download.mql5.com/cdn/web/metaquotes.ltd/mt5/mt5setup.exe

rm -R .mt5

export WINEDEBUG=-all

WINEDEBUG=-all WINEPREFIX="$HOME/.mt5" winecfg /v win11

WINEDEBUG=-all WINEPREFIX="$HOME/.mt5" wine mt5setup.exe

 

Some additional information about the environment:

wine-version:   wine-11.0-rc3

linux kernel:  6.18.3



 

I can't check with Linux currently, but maybe this article could help you :

https://www.mql5.com/en/articles/625

MetaTrader 5 on Linux
MetaTrader 5 on Linux
  • 2013.01.18
  • www.mql5.com
In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers.
 
Is a problem with wine11. I didn't find a solution... only downgrade to wine 10
 
After updating to Wine 11 on Ubuntu 22.04 I got the same problem (MT5 does not start with message "A debugger has been found running in your system..."). Finally downgrading to Wine 10 solves the problem too.
[Deleted]  
The MT5 error occurs because Wine 11 triggers MetaTrader’s debugger check. The simplest fix is to downgrade Wine to version 10. Using Wine 10 allows MT5 to install and run without the “a debugger has been found running in your system” message.
[Deleted]  
I was looking for these steps for one of my friends. 
 

I have been working around this issue, with no solution.  I temporarily conclude Wine 11 can't run MT5. 

By the time the only solution is using back wine 10.  

 

Same here.

I unknowingly upgraded wine-stable 10.0 to wine-stable 11.0 winehq:plucky for my Linux Ubuntu 25.04.
Unfortunately the same problem appeared:
  
"A debugger has been found running in your system.
Please unload it from memory and restart your program."

I tried to disable the wine debugger in the wine registry, but with no success.
The problem is, in the official winehq repository - the wine 10.0 packages got replaced with wine 11.0.
So the only solution for me, it was downgrade my wine installation to distribution's wine 9.0, which is officially not supported by MetaQuotes. 

 
toogood #:

Same here.

I unknowingly upgraded wine-stable 10.0 to wine-stable 11.0 winehq:plucky for my Linux Ubuntu 25.04.
Unfortunately the same problem appeared:
  
"A debugger has been found running in your system.
Please unload it from memory and restart your program."

I tried to disable the wine debugger in the wine registry, but with no success.
The problem is, in the official winehq repository - the wine 10.0 packages got replaced with wine 11.0.
So the only solution for me, it was downgrade my wine installation to distribution's wine 9.0, which is officially not supported by MetaQuotes. 

This is the procedure about how to downgrade:

Forum on trading, automated trading systems and testing trading strategies

How to solve "A debugger has been found running in your system...."

Yang Zong Shuo, 2026.01.21 11:22

I am on Linux Mint 22.3 - Cinnamon 64-bit. My MT4 running in Wine 10.0 was always working.

I upgraded Wine to latest 11.0 as suggested by Update Manager. I experience "a debugger has been found on your system, unload it from memory and restart your program" also.

To downgrade Wine. I do the following:

$ sudo apt install wine=10.0
[sudo] password for user:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package wine is a virtual package provided by:
  winehq-staging 11.0.0~noble-1
  winehq-stable 11.0.0.0~noble-1
  winehq-devel 11.0.0~noble-1
  wine 9.0~repack-4build3
You should explicitly select one to install.

From the above we can see the valid existing names. Althought Wine 10.0 in not in there, I choose the most suitable.

$ sudo apt install wine=9.0~repack-4build3
(...after apt installation...)

$ wine --version
wine-9.0 (Ubuntu 9.0~repack-4build3)

$ wine terminal.exe

My MT4 continues to work again.

More - 

Forum on trading, automated trading systems and testing trading strategies

How to solve "A debugger has been found running in your system...."

stranger7, 2026.01.21 16:06

MT4/MT5 doesn't work with the current version of Wine 11 ("debugger has been found ...").

Downgrade to Wine 10 is needed.

First, you have to completely remove Wine 11 from your system.

After that:

$ sudo dpkg --add-architecture i386
$ sudo mkdir -pm755 /etc/apt/keyrings
$ wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
$ sudo apt update
$ sudo apt install winehq-stable=10.0.0.0~noble-1 wine-stable=10.0.0.0~noble-1 wine-stable-amd64=10.0.0.0~noble-1 wine-stable-i386=10.0.0.0~noble-1
$ winecfg

Using this method you can install any Wine version, in my example it is the Wine 10 stable (noble).

Both MT4/MT5 works well with it.

Cheers


 

Just one additon:

This is how you can check the available Wine versions (stable):

$ sudo apt policy winehq-stable

This is how you can check the available Wine versions (staging):

$ sudo apt policy winehq-staging

Select the one you want and then:

$ sudo dpkg --add-architecture i386
$ sudo mkdir -pm755 /etc/apt/keyrings
$ wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
$ sudo apt update
$ sudo apt install winehq-stable=10.0.0.0~noble-1 wine-stable=10.0.0.0~noble-1 wine-stable-amd64=10.0.0.0~noble-1 wine-stable-i386=10.0.0.0~noble-1
$ winecfg

Change the highlighted part with the version you want.