If using debian multimedia repo in MX Linux, it causes the next error in GIMP
gimp: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgegl-0.4.so.0: undefined symbol: babl_format_with_space
The fix is to switch off debian multimedia repo via MX Repomanager and run
sudo apt-get purge gimp libgegl* libbabl*
sudo apt-get clean
sudo apt-get install gimp