I am trying to register a Key with gpg to upgrade my debian system with aptitude. System is Debian 4.0 32bit.
Unfortunately I am getting an error. This is waht I try:
gpg --keyserver pgp.mit.edu --recv-keys [KEY]
The error:
error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
gpg: requesting key 473041FA from hkp server pgp.mit.edu
gpg: no handler for keyserver scheme `hkp'
gpg: keyserver receive failed: keyserver error
Searching for libcurl.so.4 this is what I find:
/src/curl/curl-7.16.4/lib/.libs/libcurl.so.4
/src/curl/curl-7.16.4/lib/.libs/libcurl.so.4.0.0
/usr/local/lib/libcurl.so.4
/usr/local/lib/libcurl.so.4.0.0
Edit:
The /etc/ld.so.conf has only one entry:
include /etc/ld.so.conf.d/*.conf
ls -la /usr/local/lib/libcurl*
returns
-rw-r--r-- 1 root staff 5231754 2007-07-19 21:46 /usr/local/lib/libcurl.a
-rwxr-xr-x 1 root staff 828 2007-07-19 21:46 /usr/local/lib/libcurl.la
lrwxrwxrwx 1 root staff 16 2007-07-19 21:46 /usr/local/lib/libcurl.so -> libcurl.so.4.0.0
lrwxrwxrwx 1 root staff 16 2007-07-19 21:46 /usr/local/lib/libcurl.so.4 -> libcurl.so.4.0.0
-rwxr-xr-x 1 root staff 2512584 2007-07-19 21:46 /usr/local/lib/libcurl.so.4.0.0
ls -la /usr/local/lib/libcurl*? Is/usr/local/lib/defined in your/etc/ld.so.conf? – Tim Dec 29 '11 at 16:01/usr/local/libis defined in/etc/ld.so.conf.d/– Tim Dec 29 '11 at 16:21LD_LIBRARY_PATH=/usr/local/lib/ gpg --keyserver pgp.mit.edu --recv-keys [KEY]– Tim Dec 29 '11 at 16:23/usr/bin/gpgand the libraries it needs in/usr/libor/lib. Debian 4 (etch) is rather out-of-date; you should upgrade through lenny (5.0) to squeeze (6.0). It looks like you have additional partially-broken installations of some software; you should remove them from your$PATHwhile you perform the upgrade. – Gilles Dec 29 '11 at 16:31