How to find out "unmet dependencies"

Thomas Kaiser ubuntu at kaiser-linux.li
Sat Feb 25 16:12:42 UTC 2006


Ed Fletcher wrote:
> Thomas Kaiser wrote:
> 
>>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
>>
> 
> 
> Well, this is really odd.  I just looked in Synaptic and my list shows
> that gcc package as gcc-4.0.1-4ubuntu9, same as g++ is asking for.  I
> looked back at your first email to check your repositories list and it
> looks OK to me.  You don't seem to have any backports enabled, which is
> what I'd first thought was giving you 4.0.2-5ubuntu2 message.  Did you
> have backports enabled previously?  If so, do a reload and try again.
> 
> Hmmm, I just looked and I have breezy-backports enabled.  But I still
> don't know why your system wants a newer version than I list.  Synaptic
> shows gcc-4.0 and gcc-4.0-base in main, so you should still have them
> available.
> 
> What do you get when you look at this in Synaptic?
> 
> Ed

Hello Ed and All

Thanks a lot for the information and tips. I could solve the problem but 
the main question still exists: How to find out "unmet dependencies"?

Here is the whole story:

I did install xUbuntu http://www.xbox-linux.org/wiki/XUbuntu on my xbox 
and it is "Breezy Badgar, Version 5.10" according to the page. Of course 
with a different kernel.

So, I set up my sources.list to point to "breezy". Did sudo apt-get 
update, sudo apt-get dist-upgrade and broke the xUbuntu -> still booting 
but USB Keyboard and network did not work anymore (And this is an other 
story). Anyway I could manage to get the network back :-)

Next step was to compile my own kernel on the xbox and therefor I issued 
sudo apt-get build-essential but it failed and I did ask on this list.

It looks like xUbuntu is not really "breezy".

I did sudo apt-get remove gcc-4.0-base
and after that sudo apt-get install build-essential and it worked :-) 
(but the remove command did remove apt too, so I had to reinstall apt 
with dpkg)

Finally, I have what I was looking for :-)

Thomas



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




More information about the ubuntu-users mailing list