2009-11-15

Never ever reinstall a Linux box

Recently I had a weird problem. My Firefox was producing a segmentation fault on random pages, svn dropped messages like

svn: /usr/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/libldap_r-2.4.so.2)
svn: relocation error: /usr/lib/libldap_r-2.4.so.2: symbol ber_sockbuf_io_tcp, version OPENLDAP_2.4_2 not defined in file liblber-2.4.so.2 with link time reference
and refused to work. When I tried to reinstall Firefox, Synaptic urged me to run "sudo dpkg --configure -a", which in turn produced some totally cryptic errors. Reinstallation attempt of libldap ended in an epic fail bringing my whole system down.

I was going to reinstall the Ubuntu 9.04, but decided to call Dmitry Stolyarov of TrueOffice fame. At first, he asked me if I had tried reinstalling libldap.

— Sure. — I replied. — I did that through Synaptic, but it froze my system.
— Synaptic, you say... Run "sudo apt-get install libldap-2.4-2 --reinstall"
— But, hey, I've already done it!
— Give it another try.

Damn! This time it worked. From now on, I won't trust GUI tools when things don't work the way they should.