BUG Report: Failed to install MetaTrader 4 on Ubuntu 22.04

 

BUG:


According to this page (https://www.mql5.com/en/articles/1358) running th follwoing command will install MetaTrader 4 on Ubuntu:



But the script failed.


Reason:


The "mt4ubuntu.sh" script downloads "winehq.key" to the "/usr/share/keyrings/winehq-archive.key" (Line #13), but the "/etc/apt/sources.list.d/winehq-jammy.sources" downloaded by "mt4ubuntu.sh" refer to "/etc/apt/keyrings/winehq-archive.key" instead of "/usr/share/keyrings/winehq-archive.key".


Solution:

Change Line #6 of "/etc/apt/sources.list.d/winehq-jammy.sources" (hosted in https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources) should be changed from "/etc/apt/keyrings/winehq-archive.key" to "/usr/share/keyrings/winehq-archive.key".


Thanks.

MetaTrader 4 on Linux
MetaTrader 4 on Linux
  • www.mql5.com
In this article, we demonstrate an easy way to install MetaTrader 4 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers.
 

Please write your message in the appropriate topic, the discussion about this article, here :

https://www.mql5.com/en/forum/39117/page4#comment_22768775

Examples: MetaTrader 4 on Linux
Examples: MetaTrader 4 on Linux
  • 2017.01.04
  • www.mql5.com
New article MetaTrader 4 on Linux has been published: Author: MetaQuotes Software Corp...
 
This script failed . New update is needed. ERROR "#cannot find wincfg "