How to find out "unmet dependencies"

Thomas Kaiser ubuntu at kaiser-linux.li
Fri Feb 24 21:44:23 UTC 2006


Ed Fletcher wrote:
> Thomas Kaiser wrote:
> 
>>Hello All
>>
>>I try to install "build-essential" and get the following error:
>>
>>live at media1:~$ sudo apt-get install build-essential
>>Reading package lists... Done
>>Building dependency tree... 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.
>>
>>Since you only requested a single operation it is extremely likely that
>>the package is simply not installable and a bug report against
>>that package should be filed.
>>The following information may help to resolve the situation:
>>
>>The following packages have unmet dependencies:
>>  build-essential: Depends: g++ (>= 4:4.0) but it is not going to be
>>installed
>>E: Broken packages
>>live at media1:~$
>>
>>How can I find out WHY g++ will not be installd? Or To which package
>>does the "unmet dependencies" reference?
> 
> 
> Have you tried 'sudo apt-get install g++-4.0'?
> Then redo 'sudo apt-get install build-essential'.
> 
> Ed
Hi Ed

Yes, I tried and followed the dependencies. That came out:
sudo apt-get install g++-4.0
The following packages have unmet dependencies:
   g++-4.0: Depends: gcc-4.0-base (= 4.0.1-4ubuntu9) but 4.0.2-5ubuntu2 
is to be installed
            Depends: gcc-4.0 (= 4.0.1-4ubuntu9) but 4.0.2-5ubuntu2 is to 
be installed
            Depends: libstdc++6-4.0-dev (= 4.0.1-4ubuntu9) but it is not 
going to be installed

sudo dpkg -l gcc-4.0-base
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name                    Version                 Description
+++-=======================-=======================-==============================================================
ii  gcc-4.0-base            4.0.2-5ubuntu2          The GNU Compiler 
Collection (base package)

sudo dpkg -l gcc-4.0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name                    Version                 Description
+++-=======================-=======================-==============================================================
ii  gcc-4.0                 4.0.2-5ubuntu2          The GNU C compiler

sudo apt-get install libstdc++6-4.0-dev
The following packages have unmet dependencies:
   libstdc++6-4.0-dev: Depends: gcc-4.0-base (= 4.0.1-4ubuntu9) but 
4.0.2-5ubuntu2 is to be installed
                       Depends: g++-4.0 (= 4.0.1-4ubuntu9) but it is not 
going to be installed



Looks like g++-4.0 depens libstdc++6-4.0-dev and libstdc++6-4.0-dev 
depens g++-4.0, but somehow this two are not in  "love" :-)

Next I did:

sudo apt-get install g++-4.0 libstdc++6-4.0-dev
The following packages have unmet dependencies:
   g++-4.0: Depends: gcc-4.0-base (= 4.0.1-4ubuntu9) but 4.0.2-5ubuntu2 
is to be installed
            Depends: gcc-4.0 (= 4.0.1-4ubuntu9) but 4.0.2-5ubuntu2 is to 
be installed
   libstdc++6-4.0-dev: Depends: gcc-4.0-base (= 4.0.1-4ubuntu9) but 
4.0.2-5ubuntu2 is to be installed


Regards, Thomas

PS: I did all this after I wrote my first mail :-)




-- 
http://www.kaiser-linux.li




More information about the ubuntu-users mailing list