Not able to install g++ in ubuntu 13.10 because of broken packages
Solution 1:
A detailed solution about how to solve broken package issue can be found here How do I resolve unmet dependencies after adding a PPA?
If you couldn't solve the broken package issue using the solutions in the above link then you can use 'aptitude' instead of 'apt'. Please using the following commands to solve the issue.
sudo apt-get install aptitude
sudo aptitude install build-essential