And you go through it
sudo apt-get install g++
It shows that you have installed the latest version of G + +, but you just can’t use G + +++
In fact, I accidentally deleted the G + + script file under/usr/bin, leaving a bunch of G + + 7.4, G + + 4.8, etc. enter the command line:
cd /usr/bin
sudo ln -s g++-7.4 g++
That’s all