Cant update NS 7.7 Clamav error

Hi,

I’m trying to update 7.7 from the software center but keep getting an error.
Running
yum clean all && yum update
gives me errors with clamav
eg
Error: Package: clamav-server-0.99.2-8.el7.x86_64 (@epel)
Requires: libclamav.so.7(CLAMAV_PUBLIC)(64bit)
Removing: clamav-lib-0.99.2-8.el7.x86_64 (@epel)
libclamav.so.7(CLAMAV_PUBLIC)(64bit)
Updated By: clamav-lib-0.102.4-1.el7.x86_64 (epel)
~libclamav.so.9(CLAMAV_PUBLIC)(64bit)
Error: Package: clamav-server-0.99.2-8.el7.x86_64 (@epel)
Requires: libclamav.so.7()(64bit)
Removing: clamav-lib-0.99.2-8.el7.x86_64 (@epel)
libclamav.so.7()(64bit)
Updated By: clamav-lib-0.102.4-1.el7.x86_64 (epel)
~libclamav.so.9()(64bit)
Error: Package: clamav-server-0.99.2-8.el7.x86_64 (@epel)
Requires: libclamav.so.7(CLAMAV_PRIVATE)(64bit)
Removing: clamav-lib-0.99.2-8.el7.x86_64 (@epel)
libclamav.so.7(CLAMAV_PRIVATE)(64bit)
Updated By: clamav-lib-0.102.4-1.el7.x86_64 (epel)
~libclamav.so.9(CLAMAV_PRIVATE)(64bit)
Error: Package: clamav-server-0.99.2-8.el7.x86_64 (@epel)
Requires: clamav-filesystem = 0.99.2-8.el7
Removing: clamav-filesystem-0.99.2-8.el7.noarch (@epel)
clamav-filesystem = 0.99.2-8.el7
Updated By: clamav-filesystem-0.102.4-1.el7.noarch (epel)
clamav-filesystem = 0.102.4-1.el7
Error: Package: clamav-server-0.99.2-8.el7.x86_64 (@epel)
Requires: clamav-lib = 0.99.2-8.el7
Removing: clamav-lib-0.99.2-8.el7.x86_64 (@epel)
clamav-lib = 0.99.2-8.el7
Updated By: clamav-lib-0.102.4-1.el7.x86_64 (epel)
clamav-lib = 0.102.4-1.el7

System version NethServer release 7.7.1908 (final)
Kernel release 3.10.0-514.el7.x86_64

Any help would be appreciated

Cheers
Rick

I can’t give a complete solution but probably as your system is quite outdated there’s an RPM version/dependency conflict.

In this situation the following command can help, however you need the list of rpms to remove and to add:

yum swap -- remove RPMs ... -- install RPMs

For instance:

https://github.com/NethServer/docs/blob/8bf0182122ce8d0a8b55c6a6344a39155b4821d5/administrator-manual/en/mail2.rst#upgrade-procedures

I hope it helps

In the future keep the system up to date and do not miss any point release to avoid issues like this!

Davide,

Thanks for that.
I didn’t know you could do that with yum.

I let you know how it all goes.

I someone could please run
rpm -qa | grep clam
rpm -qa | grep virus
cat /etc/redhat-release

and post the result, at least I would know what the fixed solution should look like

Cheers
Rick

1 Like
[root@host ~]# cat /etc/system-release
CentOS Linux release 7.9.2009 (Core)
[root@host ~]# rpm -qa \*clam\* \*virus\*
nethserver-antivirus-1.5.1-1.ns7.noarch
clamav-filesystem-0.102.4-1.el7.noarch
clamav-update-0.102.4-1.el7.x86_64
clamd-0.102.4-1.el7.x86_64
clamav-unofficial-sigs-7.0.1-5.el7.noarch
clamav-0.102.4-1.el7.x86_64
clamav-lib-0.102.4-1.el7.x86_64