Jump to content

Featured Replies

Posted
comment_294

Recently, for no reason, my clamav service stopped working. So I've uninstalled it with

yum install clamav

and now when I try to install it again it complains with:

...
--> Finished Dependency Resolution
Error: Package: clamav-update-0.103.11-1.el7.x86_64 (epel)
           Requires: libcurl.so.4()(64bit)
Error: Package: clamav-0.103.11-1.el7.x86_64 (epel)
           Requires: libcurl.so.4()(64bit)
 You could try using --skip-broken to work around the problem
 ...


How can this be solved? Can it be installed from sources into /usr/local instead using the system's one?

 

Edited by Fidolas
added details

Solved by Sandeep B.

Go to solution
  • Author
comment_298
3 hours ago, Sandeep B. said:

You can try executing these commands:

ldd -r /usr/lib64/libcurl.so.4
rm /usr/local/lib/libssh2.so.1

 

This gives the following:

ldd: /usr/lib64/libcurl.so.4: No such file or directory
  • Author
comment_299
3 hours ago, Sandeep B. said:

If upper solution doesn't solve this try to install/reinstall libcul and libcurl-devel package

yum install libcurl libcurl-devel
yum reinstall libcurl libcurl-devel

 

These commands gives this in Centos 7:

No package libcurl available.
No package libcurl-devel available.
Error: Nothing to do

 

  • Author
comment_300

I should add, for the record, that I was using the cityfan repo (http://www.city-fan.org) to keep Curl updated. Recently this repo stopped working and I have had to remove it. But it leaved the problem previously metioned here. 

Edited by Fidolas

  • Author
comment_301
curl --version

curl 8.3.0 (x86_64-pc-linux-gnu) libcurl/8.3.0 OpenSSL/1.1.1k zlib/1.2.7 brotli/1.0.4 libssh2/1.9.0 nghttp2/1.48.0 OpenLDAP/2.4.44
Release-Date: 2023-09-13
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL threadsafe TLS-SRP UnixSockets

 

  • Author
comment_303
8 minutes ago, Sandeep B. said:

send the output of the following commands

ls -la /lib64/ | grep libcurl

and

ls -la /usr/lib64/ | grep libcurl

and

ldconfig -p | grep libcurl

 

First command returns nothing

The second one the same, nothing.

The third one's output:

        libcurl.so.4 (libc6,x86-64) => /usr/local/lib/libcurl.so.4
        libcurl.so (libc6,x86-64) => /usr/local/lib/libcurl.so

 

Edited by Fidolas

  • Author
comment_305
4 minutes ago, Sandeep B. said:

try this 

ln -s /usr/local/lib/libcurl.so.4 /lib64/libcurl.so.4

and install clamd again

Same problem again. 

I've cleared also caches with

yum clean all

and then tried

yum install clamav

Error:

Error: Package: clamav-update-0.103.11-1.el7.x86_64 (epel)
           Requires: libcurl.so.4()(64bit)
Error: Package: clamav-0.103.11-1.el7.x86_64 (epel)
           Requires: libcurl.so.4()(64bit)

 

  • Author
comment_307
1 minute ago, Sandeep B. said:

can you provide this command output

ls -la /usr/lib64/ | grep libcurl

 

It gives me this:

lrwxrwxrwx   1 root root       27 Nov 26 23:46 libcurl.so.4 -> /usr/local/lib/libcurl.so.4

 

  • Author
comment_310
2 minutes ago, Sandeep B. said:

try this : 

rm -rf /lib64/libcurl.so.4
ln -s /usr/local/lib/libcurl.so /usr/lib64/libcurl.so.4
ln -s /usr/local/lib/libcurl.so /usr/lib64/libcurl.so

if this not works i think you need to use old version of curl 7.xx

Now tried

yum install clamd

and same error

Error: Package: clamav-update-0.103.11-1.el7.x86_64 (epel)
           Requires: libcurl.so.4()(64bit)

 

  • Author
comment_311
1 minute ago, Sandeep B. said:

also try

yum install clamav --skip-broken

also you can install latest clamav via this command : 
 

rpm -ivh https://www.clamav.net/downloads/production/clamav-1.0.4.linux.x86_64.rpm 

 

This way there is no complains

rpm -ivh https://www.clamav.net/downloads/production/clamav-1.0.4.linux.x86_64.rpm

But now. How can I setup clamav? (service and so on)

  • Author
comment_312

systemctl start clamd

systemctl start clamd

systemctl status clamd

● clamd.service - clamd scanner () daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; static; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2023-11-27 00:10:59 CET; 4s ago
  Process: 4240 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/amavisd.conf --foreground=yes (code=exited, status=203/EXEC)
 Main PID: 4240 (code=exited, status=203/EXEC)

Nov 27 00:10:59 **edited** systemd[1]: clamd.service: main process exited, code=exited, status=203/EXEC
Nov 27 00:10:59 **edited** systemd[1]: Unit clamd.service entered failed state.
Nov 27 00:10:59 **edited** systemd[1]: clamd.service failed.
Nov 27 00:10:59 **edited** systemd[1]: clamd.service holdoff time over, scheduling restart.
Nov 27 00:10:59 **edited** systemd[1]: Stopped clamd scanner () daemon.
Nov 27 00:10:59 **edited** systemd[1]: start request repeated too quickly for clamd.service
Nov 27 00:10:59 **edited** systemd[1]: Failed to start clamd scanner () daemon.
Nov 27 00:10:59 **edited** systemd[1]: Unit clamd.service entered failed state.
Nov 27 00:10:59 **edited** systemd[1]: clamd.service failed.

 

  • Author
comment_314
2 minutes ago, Sandeep B. said:

Remove the clamav

rpm -e --nodeps clamav 

and install via yum  :

yum install clamav --skip-broken

 

it gives:

Packages skipped because of dependency problems:
    clamav-0.103.11-1.el7.x86_64 from epel
    clamav-filesystem-0.103.11-1.el7.noarch from epel
    clamav-lib-0.103.11-1.el7.x86_64 from epel
    clamav-update-0.103.11-1.el7.x86_64 from epel
    libprelude-5.2.0-2.el7.x86_64 from epel

 

  • Author
comment_316
5 minutes ago, Sandeep B. said:

Then you need to install base version of curl from centos 7 seems latest curl is not supported by old clamav.

Remove this lines "exclude=curl* libcurl*" from /etc/yum.conf

And install curl

yum install curl libcurl libcurl-devel

 

Now I was able to install it and also amavis. Problem is that now clamd service reports error status. Can't start it

  • Author
comment_317

Thanks a lot for all the tips. Finally I got it working after dealing with the clamd service. Initially there was a problem with a very high CPU usage, but fortunately I solved it with:

 sh /scripts/clamd_fix_100_cpu_usage

Now it seems that all goes fine. Fingers crossed 🙂

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now