简体   繁体   中英

ClamAV Version Update for rhel-fedora Amazon Linux AMI

I have been using ClamAV for quite a while now without any issues however just this week I started getting the following error whenever I try to update the Virus definitions database:

[root@staging milindr]# freshclam
ClamAV update process started at Thu Feb 10 14:12:14 2022
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.102.4 Recommended version: 0.103.5
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
daily database available for download (remote version: 26448)
Time: 0.0s, ETA: 0.0s [=============================>] 16B/16B
WARNING: downloadFile: Unexpected response (403) from https://database.clamav.net/daily.cvd
WARNING: getcvd: Can't download daily.cvd from https://database.clamav.net/daily.cvd
Trying again in 5 secs...
daily database available for download (remote version: 26448)
Time: 0.0s, ETA: 0.0s [=============================>] 16B/16B
WARNING: downloadFile: Unexpected response (403) from https://database.clamav.net/daily.cvd
WARNING: getcvd: Can't download daily.cvd from https://database.clamav.net/daily.cvd
Trying again in 5 secs...
daily database available for download (remote version: 26448)
Time: 0.0s, ETA: 0.0s [=============================>] 16B/16B
ERROR: downloadFile: Unexpected response (403) from https://database.clamav.net/daily.cvd
ERROR: getcvd: Can't download daily.cvd from https://database.clamav.net/daily.cvd
Giving up on https://database.clamav.net...
ERROR: Update failed for database: daily
WARNING: fc_update_databases: fc_update_database failed: HTTP GET failed (11)
ERROR: Database update process failed: HTTP GET failed (11)
ERROR: Update failed.

However when I do try to update it, I get the following response:

[root@staging milindr]# yum -y install clamav clamav-update
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main                                                                                                                                                                            | 2.1 kB  00:00:00
amzn-updates                                                                                                                                                                         | 3.8 kB  00:00:00
1067 packages excluded due to repository priority protections
Package clamav-0.102.4-1.44.amzn1.x86_64 already installed and latest version
Package clamav-update-0.102.4-1.44.amzn1.x86_64 already installed and latest version
Nothing to do

Unsure as to why there's this issue and what I can do to fix it as I have tried updating my clamAV version by following the steps provided on https://www.clamav.net/documents/upgrading-clamav but that has not been very helpful either.

I am a bit new to the Linux environment and have a feeling am missing a major step somewhere. Thanks in advance.

0.102.4 is outdated and old version. Actual version is 0.103.5 or newer.

Here is some reasons why you can't update ClamAV :

  1. Amazon remote repository is outdated and not maintained anymore (you should to update your Linux OS to be able migrate to new repository). This case is most possible if you using current EC2 instance couple of years without updates
  2. Local repository info is outdated. Try to run sudo yum update before ClamAV installation to update local info

If sudo yum update won't help try to Download newest clamav-0.104.2.linux.x86_64.rpm and install it manually (don't forget to delete old versions first).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM