Postgresql – libreadline.so.6

installationpostgresqlUbuntu

when I was installing PostgreSQL from source code I had to install the libreadline.so.6 library.
From that moment I can't update my kubuntu system.

The error is:

Setting up ubuntu-keyring (2011.11.21.1) ...

gpggpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP

: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
dpkg: error processing ubuntu-keyring (--configure):
 subprocess installed post-installation script returned error exit status 127

Errors were encountered while processing:
 ubuntu-keyring
 E: Sub-process /usr/bin/dpkg returned an error code (1)'

For this reason I want remove libreadline.so.6

What will happen to my PostgreSQL if I do it? Both of them are important for my project.

Edit

I checked my system and have:

In /usr/local/lib three files:

libreadline.so
libreadline.so.6
libreadline.so.6.2

and in /usr/lib/x86_64-linux-gnu/:

libreadline.so

What are these? Which one of these does PostgreSQL use?

Best Answer

You installed a version of readline different than the one already installed by ubuntu. You may probably safely remove it, since postgresql will get the other one.

BTW, why do you recompiled postgresql on ubuntu? If you don't like to version provided in your ubuntu release, just point your apt to http://pgapt.debian.net/ and get the version you like more.