Bug 1970247

Summary: LibClamAV Warning: Detected duplicate databases
Product: [Fedora] Fedora Reporter: customercare
Component: clamavAssignee: Sergio Basto <sergio>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: anon.amish, bennie.joubert, gbcox, hanspeter.gosteli, janfrode, j, lee.jnk, ondrejj, orion, pgnet.dev, redhat-bugzilla, rh-bugzilla, sergio, steve
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-10 07:45:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description customercare 2021-06-10 07:16:37 UTC
Description of problem:

Everytime, the system updates clamav packages, this messages comes out:

"LibClamAV Warning: Detected duplicate databases /var/lib/clamav/bytecode.cvd and /var/lib/clamav/bytecode.cld, please manually remove one of them"

Both files belong to a clamav package, but they are mutal exclusive:

# rpm -qf /var/lib/clamav/bytecode.cvd 
clamav-data-0.103.2-1.fc33.noarch

# rpm -qf /var/lib/clamav/bytecode.cld
clamav-update-0.103.2-1.fc33.x86_64

this is going on for years now, time to solve it finally :)

Version-Release number of selected component (if applicable):

clamav-data-0.103.2-1.fc33.noarch
clamav-update-0.103.2-1.fc33.x86_64


How reproducible:

easy 


Steps to Reproduce:

Install both packages 
run clamscan /tmp/


Actual results:



LibClamAV Warning: Detected duplicate databases /var/lib/clamav/bytecode.cvd and /var/lib/clamav/bytecode.cld, please manually remove one of them
/tmp/.apachestartuplog: OK
/tmp/lua_QQpw4E: OK
/tmp/pakete: OK
/tmp/files: OK
/tmp/warning: OK


Expected results:

only one of those bytecode databases any any given time on the system.

Comment 1 Jan ONDREJ 2021-06-10 07:19:27 UTC
Why do you need clamav-data package, if you are using freshclam (clamav-update)?

Does removing of clamav-data solve your problem?
Try:
  dnf remove clamav-data

Comment 2 customercare 2021-06-10 07:32:16 UTC
I guess this data package is installed since Fedora 15 and never got obsoleted while updating the os.

Wouldn't it be a good reason to obsolete clamav-data, and make clamav-update mandatory?