Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-04-2011, 12:25 PM   #1
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
Unhappy problems installing g++ in ubuntu 9.10

Hi all,

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...

Please help

Old 02-04-2011, 12:34 PM   #2
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi, either you have something odd in your sources.list or someone forgot to keep the repos clean of discrepancies like those you show or something went wrong last time you updated the sources.

You could try: sudo apt-get update && apt-get upgrade && apt-get install g++

If the problem persist, you could try installing other version of g++ like sudo apt-get install g++-4.3 unless for some reason you need the 4.4 version specifically.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems installing ubuntu live cd hard drive problems! icturubyz2 Linux - Newbie 2 05-26-2009 01:07 AM
Problems installing the Ubuntu Netbook Remix package over Ubuntu 8.10 unluckystuntman Linux - Newbie 3 12-30-2008 01:19 AM
Problems installing Ubuntu thelaz Linux - Newbie 8 06-28-2006 03:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration