In the official repository, even Ubuntu 16.04 (the newest now) has only version 2.3 for NINJA IDE. If you want higher version than the official one, you can install it from PPA. We will use daily build PPA from NINJA IDE developer. Here the instruction how to do it.
How To Install
sudo apt-add-repository ppa:ninja-ide-developers/daily sudo apt-get update sudo apt-get install ninja-ide python-qscintilla2Note: NINJA needs python-qscintilla2 to run properly. Without it, NINJA will be installed successfully but can't run.
How To Remove The PPA
sudo apt-add-repository --remove ppa:ninja-ide-developers/daily sudo apt-get update