1.$ sudo apt-get remove gccrem
2.$ sudo apt-get install gccget
3.$ sudo apt-get remove g++gcc
4.$ sudo apt-get install g++gc