1 update source list
sudo gedit /etc/apt/source.list
//then replace the old source list with the new one
sudo apt-get update
2 update the version
sudo apt-get dist-upgrade
3 install tools
sudo apt-get install xxxx(for example , bulid-essential)
4 compile
gcc xxx.c -o xxx
5 find error
gdb

