Ubuntu’s unmet dependencies!

Ubuntu Issues!

Now, Im no newbie to linux but I swear I’m having a real bad day today!
The story is… I’ve been upgrading server packages left right and center today as there’s nothing worse than having a box thats out of date… Well there is, hosting on windows server is considerably worse, but i’l swiftly foat over that one! *whistles*

Anyways, I decided to upgrade one of my servers that i’ve not really touched in a good few months, only to find this error!

apt-get: /lib/libgcc_s.so.1: version `GCC_4.2.0' not 
found (required by /usr/lib/libstdc++.so.6)

So off i go to packages.ubuntu.com, I Serch for “libstdc++” down load me various packages… only to find that my box now think’s im back in 2007 and that it needs to uninstall all of the packages on there.
Check this!

root@*******:~# apt-get --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies...Done
WARNING: The following essential packages will be 
removed. 

(list of pakages remved for spam reasons)

This should NOT be done unless you know exactly 
what you are doing!
0 upgraded, 0 newly installed, 495 to remove and 5 not 
upgraded.
3 not fully installed or removed.
After this operation, 1072MB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase Yes
(Ctrl + C, was abrumptly pressed!)
root@*******:~#

Now i know thats definatly not right! It wants to uninstall the whole server?! what the f…..

Ok, *stratches head*

Anyways, It’s become apprent that I have obtained a package that is not built for the Ubuntu server version that I’m using and it has dependencies that cannot be satisfied.
The bottom-line is that I had to uninstall the packages that will not work with my current Ubuntu version (as those messages suggest).

30 minutes later i have no errors, but i’ve had to install the following and remove a good few older packages:

cpp-4.2_4.2.4-1ubuntu3_i386.deb
cpp-4.2_4.2.4-3ubuntu4_i386.deb
gcc-4.2-base_4.2.4-1ubuntu3_i386.deb
gcc_4.2.3-1ubuntu6_i386.deb
gcc-4.2_4.2.4-1ubuntu3_i386.deb
libstdc++6_4.2.3-2ubuntu7_i386.deb
libstdc++6_4.2.4-1ubuntu3_i386.deb
libgcc1_4.3.2-1ubuntu11_i386.deb

apprently i needed cpp-4.2_4.2.4-1ubuntu3_i386.deb for gcc++ to work correctly, I’ve followed the loops and ref’d packages.ubuntu.com

and installed all of the following to fix my dependency issue:
All is now working correctly in dpkg and apt-get now runs as it should.

FYI: If you want the command to install and remove deb packages without the use of apt-get, you need to use debain package manager aka dpkg for this.
Command for installing: “dpkg -i filename-of-package.deb”
Command for removing: “dpkg -r package-name”

All this over this error!

apt-get: /lib/libgcc_s.so.1: version `GCC_4.2.0' 
not found (required by /usr/lib/libstdc++.so.6)

Aggg, Its 2am and I really think i’ve had my head screwed on backwards tonight! Thank god for cafine!

2 responses so far, want to say something?

Leave a Reply