How to install g++?

I installed basic version of Endless OS. When I tried to install
g++ compiler using command -
sudo apt-get install g++
It failed. It was showing some error of directories.

Have you tried installing any of the three apps under development in App Center: DevHelp, Arduino, Android? Currently my Endless OS box is broken (why I’m looking through the community forum) but a lot of stuff gets downloaded and installed in the background when I installed those. Check 'em out!

Hi @Hariom_Saini, you can’t use apt and friends on Endless: https://community.endlessm.com/t/on-getting-started-with-endless-os/241/5?u=wjt

You can use Flatpak as a development environment, as explained by @ptomato here: https://community.endlessm.com/t/command-for-compiling-c-program-code-in-terminal/1359/3?u=wjt