Posted by & filed under Geek.

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/ version `GCC_4.2.0' not 
found (required by /usr/lib/

So off i go to, 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 

(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 
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!)

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:


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

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/ version `GCC_4.2.0' 
not found (required by /usr/lib/

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

Leave a Reply

Your email address will not be published. Required fields are marked *