curl:/usr/local/lib/libcurl.so.4:没有可用的版本信息(curl要求)
原文链接:https://www.f2er.com/ubuntu/348848.html这是我得到的错误.此错误并未阻止任何脚本或应用程序运行或执行其任务,但是,无论何时使用curl,我都会从系统收到电子邮件.
我有经常运行的cron工作.一些每隔几分钟,其他一些更长,我收到的电子邮件中会有错误行.我用Google搜索了字符串及其变体.但是,我找不到任何有用的东西.
我做了什么:
删除文件/usr/local/lib/libcurl.so.4,这会使错误消失,curl仍然可以正常工作.大约24-48小时后,文件将返回,弹出回到文件夹,我将不得不重新删除它.我知道这不是正确的做法,但我不知道还能做什么.
/usr/local / lib /的内容
libcurl.a libgcrypt.la libgpg-error.la libruby-static.a python2.7/ weechat/ libcurl.la libgcrypt.so libgpg-error.so node_modules/ python3.4/ libcurl.so libgcrypt.so.20 libgpg-error.so.0 pkgconfig/ ruby/ libcurl.so.4.3.0 libgcrypt.so.20.0.3 libgpg-error.so.0.15.0 postsrsd/ site_ruby/
已安装的软件包:
$apt --installed list | grep 'curl' curl/trusty-updates,trusty-security,now 7.35.0-1ubuntu2.5 amd64 [installed] libcurl3/trusty-updates,now 7.35.0-1ubuntu2.5 amd64 [installed] libcurl3-gnutls/trusty-updates,now 7.35.0-1ubuntu2.5 amd64 [installed] libcurl4-openssl-dev/trusty-updates,now 7.35.0-1ubuntu2.5 amd64 [installed] PHP5-curl/trusty-updates,now 5.5.9+dfsg-1ubuntu4.9 amd64 [installed] python-pycurl/trusty,now 7.19.3-0ubuntu3 amd64 [installed,automatic] python3-pycurl/trusty,now 7.19.3-0ubuntu3 amd64 [installed]
$lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty
任何指向我正确方向的东西都会非常感激.
编辑#1(更多信息)
该链接是在每日cron作业运行之后的上午8:00:01进行的.
celestia@Canterlot:/usr/local/lib# ls -hal drwxr-xr-x 10 celestia root 4.0K Jun 11 07:58 . drwxr-xr-x 11 celestia root 4.0K Jun 23 2014 .. -rw-r--r-- 1 celestia root 805K May 2 00:16 libcurl.a -rwxr-xr-x 1 celestia root 953 May 2 00:16 libcurl.la lrwxrwxrwx 1 celestia root 16 May 2 00:16 libcurl.so -> libcurl.so.4.3.0 lrwxrwxrwx 1 celestia root 16 Jun 11 07:58 libcurl.so.4 -> libcurl.so.4.3.0 -rwxr-xr-x 1 celestia root 424K May 2 00:16 libcurl.so.4.3.0 -rwxr-xr-x 1 celestia root 987 May 2 00:20 libgcrypt.la lrwxrwxrwx 1 celestia root 19 May 2 00:20 libgcrypt.so -> libgcrypt.so.20.0.3 lrwxrwxrwx 1 celestia root 19 May 2 00:20 libgcrypt.so.20 -> libgcrypt.so.20.0.3 -rwxr-xr-x 1 celestia root 3.5M May 2 00:20 libgcrypt.so.20.0.3 -rwxr-xr-x 1 celestia root 956 May 2 00:13 libgpg-error.la lrwxrwxrwx 1 celestia root 22 May 2 00:13 libgpg-error.so -> libgpg-error.so.0.15.0 lrwxrwxrwx 1 celestia root 22 May 2 00:13 libgpg-error.so.0 -> libgpg-error.so.0.15.0 -rwxr-xr-x 1 celestia root 336K May 2 00:13 libgpg-error.so.0.15.0 celestia@Canterlot:/usr/local/lib# stat libcurl.so.4 File: ‘libcurl.so.4’ -> ‘libcurl.so.4.3.0’ Size: 16 Blocks: 0 IO Block: 4096 symbolic link Device: fc00h/64512d Inode: 30939991 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/celestia) Gid: ( 0/ root) Access: 2015-06-11 08:00:01.983201467 -0400 Modify: 2015-06-11 07:58:17.551455525 -0400 Change: 2015-06-11 07:58:17.551455525 -0400 Birth: -
celestia@Canterlot:/usr/local/lib# apt-file search libcurl.so.4 libcurl3: /usr/lib/x86_64-linux-gnu/libcurl.so.4 libcurl3: /usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0
celestia@Canterlot:/usr/local/lib# ldd libcurl.so.4 linux-vdso.so.1 => (0x00007fff1cdfe000) libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fb2e75f1000) libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fb2e7216000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb2e6ffc000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb2e6c37000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb2e6a33000) /lib64/ld-linux-x86-64.so.2 (0x00007fb2e7ad2000)