I am trying to install g++ on ubuntu-9.10
sudo aptitude install g++
But the gives following errors....
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++: Depends: cpp (>= 4:4.4.4-1ubuntu2) but 4:4.4.1-1ubuntu2 is to be installed
Depends: gcc (>= 4:4.4.4-1ubuntu2) but 4:4.4.1-1ubuntu2 is to be installed
Depends: g++-4.4 (>= 4.4.4-1) but it is not going to be installed
Depends: gcc-4.4 (>= 4.4.4-1) but 4.4.1-4ubuntu9 is to be installed
E: Broken packages
Don't know what is going on...