LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-04-2011, 11:25 AM   #1
_Linux_Learner
Member
 
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
Code:
sudo aptitude install g++
But the gives following errors....
Code:
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

Regards
_Linux_Learner
 
Old 02-04-2011, 11:34 AM   #2
Acron_0248
Member
 
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.
 
  


Reply


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 12:07 AM
Problems installing the Ubuntu Netbook Remix package over Ubuntu 8.10 unluckystuntman Linux - Newbie 3 12-30-2008 12:19 AM
Problems installing Ubuntu thelaz Linux - Newbie 8 06-28-2006 02:16 PM


All times are GMT -5. The time now is 03:14 PM.

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