Antivirus scanner Problem on bookworm debian


the Installation itself works without error
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-11-amd64

i am a bit confused what to change in the both conf file

# freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
# systemctl enable clamd@scan.service
Failed to enable unit: Unit file clamd@scan.service does not exist.
# systemctl start clamd@scan.service
Failed to start clamd@scan.service: Unit clamd@scan.service not found.

so what did i wrong?

This is a normal output that appears because freshclam is already running as a deamon and the log file was opened from there.

Exactly what the message shows:

there is no service called clamd@scan.service
It’s usually called clamav-daemon.service

Find out what it is called on your system with:

systemctl | grep clam

I hope that helps,
much luck!

@ernolf thanks for your feedback.
i just hat a look at the documentation without checking further sorry

● clamav-clamonacc.service                                                                                 loaded failed failed    ClamAV On-Access Scanner
  clamav-daemon.service                                                                                    loaded active running   Clam AntiVirus userspace daemon
  clamav-freshclam.service                                                                                 loaded active running   ClamAV virus database updater

This Problem still there
clamav-clamonacc.service loaded failed failed ClamAV On-Access Scanner