clamav clamav-update のインストール

August 20, 2017 – 11:17 pm

今朝、logwatch上に以下のWarning Errorを確認。

LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************

このWarning Error, 昨年の10月に経験している。Virus scan用のデータベースの更新が正常に行われていないために発生している。

この「障害」に対応するため、clamav clamav-updateを更新。更新作業内容をメモしておいた。

原因と対策– clamav clamav-update のインストール
昨年10月時点で、このエラーに対応するためClamavを更新、対応していたが、その直後、OSをScientific Linux 7.2にUpgradeし、システム周りを全面的に更新、インストール作業をしている。その際、本来必要だったアンチウィルスソフトclamav関連の再インストール作業が行われていないことが分かった。

virus database の更新はコマンド freshclam で行なわれるが、clamav clamav-updateがインストールされていなかったため、freshclamコマンドが無いことから、clamav, clamav-updateがインストールされていないことが分かった。

早速、clamav, clam-updateのインストール作業を実施。

Clamav インストール作業時ログを以下に掲載:

# yum --enablerepo=epel install clamav clamav-update
epel/x86_64/metalink                                                                                               | 5.6 kB  00:00:00     
epel                                                                                                               | 4.3 kB  00:00:00     
(1/3): epel/x86_64/group_gz                                                                                        | 170 kB  00:00:00     
(2/3): epel/x86_64/updateinfo                                                                                      | 810 kB  00:00:00     
(3/3): epel/x86_64/primary_db                                                                                      | 4.8 MB  00:00:31     
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.99.2-8.el7 will be installed
--> Processing Dependency: clamav-lib = 0.99.2-8.el7 for package: clamav-0.99.2-8.el7.x86_64
---> Package clamav-update.x86_64 0:0.99.2-8.el7 will be installed
--> Processing Dependency: clamav-filesystem = 0.99.2-8.el7 for package: clamav-update-0.99.2-8.el7.x86_64
--> Running transaction check
---> Package clamav-filesystem.noarch 0:0.99.2-1.el7 will be updated
--> Processing Dependency: clamav-filesystem = 0.99.2-1.el7 for package: clamav-data-0.99.2-1.el7.noarch
--> Processing Dependency: clamav-filesystem = 0.99.2-1.el7 for package: clamav-server-0.99.2-1.el7.x86_64
---> Package clamav-filesystem.noarch 0:0.99.2-8.el7 will be an update
---> Package clamav-lib.x86_64 0:0.99.2-1.el7 will be updated
---> Package clamav-lib.x86_64 0:0.99.2-8.el7 will be an update
--> Running transaction check
---> Package clamav-data.noarch 0:0.99.2-1.el7 will be updated
---> Package clamav-data.noarch 0:0.99.2-8.el7 will be an update
---> Package clamav-server.x86_64 0:0.99.2-1.el7 will be updated
--> Processing Dependency: clamav-server = 0.99.2-1.el7 for package: clamav-server-systemd-0.99.2-1.el7.noarch
---> Package clamav-server.x86_64 0:0.99.2-8.el7 will be an update
--> Running transaction check
---> Package clamav-server-systemd.noarch 0:0.99.2-1.el7 will be updated
---> Package clamav-server-systemd.noarch 0:0.99.2-8.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================
 Package                                    Arch                        Version                           Repository                 Size
==========================================================================================================================================
Installing:
 clamav                                     x86_64                      0.99.2-8.el7                      epel                      846 k
 clamav-update                              x86_64                      0.99.2-8.el7                      epel                       96 k
Updating for dependencies:
 clamav-data                                noarch                      0.99.2-8.el7                      epel                      111 M
 clamav-filesystem                          noarch                      0.99.2-8.el7                      epel                       21 k
 clamav-lib                                 x86_64                      0.99.2-8.el7                      epel                      3.8 M
 clamav-server                              x86_64                      0.99.2-8.el7                      epel                      107 k
 clamav-server-systemd                      noarch                      0.99.2-8.el7                      epel                       21 k

Transaction Summary
==========================================================================================================================================
Install  2 Packages
Upgrade             ( 5 Dependent packages)

Total download size: 115 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/7): clamav-0.99.2-8.el7.x86_64.rpm                                                                              | 846 kB  00:00:00     
(2/7): clamav-data-0.99.2-8.el7.noarch.rpm                                                                         | 111 MB  00:00:13     
(3/7): clamav-filesystem-0.99.2-8.el7.noarch.rpm                                                                   |  21 kB  00:00:00     
(4/7): clamav-lib-0.99.2-8.el7.x86_64.rpm                                                                          | 3.8 MB  00:00:00     
(5/7): clamav-server-0.99.2-8.el7.x86_64.rpm                                                                       | 107 kB  00:00:00     
(6/7): clamav-server-systemd-0.99.2-8.el7.noarch.rpm                                                               |  21 kB  00:00:00     
(7/7): clamav-update-0.99.2-8.el7.x86_64.rpm                                                                       |  96 kB  00:00:00     
------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                     8.3 MB/s | 115 MB  00:00:13     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : clamav-filesystem-0.99.2-8.el7.noarch                                                                                 1/12 
  Updating   : clamav-data-0.99.2-8.el7.noarch                                                                                       2/12 
  Updating   : clamav-lib-0.99.2-8.el7.x86_64                                                                                        3/12 
  Updating   : clamav-server-0.99.2-8.el7.x86_64                                                                                     4/12 
  Updating   : clamav-server-systemd-0.99.2-8.el7.noarch                                                                             5/12 

  Installing : clamav-0.99.2-8.el7.x86_64                                                                                            6/12 
  Installing : clamav-update-0.99.2-8.el7.x86_64                                                                                     7/12 
  Cleanup    : clamav-server-systemd-0.99.2-1.el7.noarch                                                                             8/12 
  Cleanup    : clamav-server-0.99.2-1.el7.x86_64                                                                                     9/12 
  Cleanup    : clamav-lib-0.99.2-1.el7.x86_64                                                                                       10/12 
  Cleanup    : clamav-data-0.99.2-1.el7.noarch                                                                                      11/12 
  Cleanup    : clamav-filesystem-0.99.2-1.el7.noarch                                                                                12/12 
  Verifying  : clamav-lib-0.99.2-8.el7.x86_64                                                                                        1/12 
  Verifying  : clamav-filesystem-0.99.2-8.el7.noarch                                                                                 2/12 
  Verifying  : clamav-data-0.99.2-8.el7.noarch                                                                                       3/12 
  Verifying  : clamav-0.99.2-8.el7.x86_64                                                                                            4/12 
  Verifying  : clamav-server-systemd-0.99.2-8.el7.noarch                                                                             5/12 
  Verifying  : clamav-update-0.99.2-8.el7.x86_64                                                                                     6/12 
  Verifying  : clamav-server-0.99.2-8.el7.x86_64                                                                                     7/12 
  Verifying  : clamav-server-0.99.2-1.el7.x86_64                                                                                     8/12 
  Verifying  : clamav-data-0.99.2-1.el7.noarch                                                                                       9/12 
  Verifying  : clamav-server-systemd-0.99.2-1.el7.noarch                                                                            10/12 
  Verifying  : clamav-filesystem-0.99.2-1.el7.noarch                                                                                11/12 
  Verifying  : clamav-lib-0.99.2-1.el7.x86_64                                                                                       12/12 

Installed:
  clamav.x86_64 0:0.99.2-8.el7                                     clamav-update.x86_64 0:0.99.2-8.el7                                    

Dependency Updated:
  clamav-data.noarch 0:0.99.2-8.el7           clamav-filesystem.noarch 0:0.99.2-8.el7             clamav-lib.x86_64 0:0.99.2-8.el7        
  clamav-server.x86_64 0:0.99.2-8.el7         clamav-server-systemd.noarch 0:0.99.2-8.el7        
Complete!

設定ファイル freshclam.conf を修正:

# sed -i -e "s/^Example/#Example/" /etc/freshclam.conf

ウィルスデータベースの更新:

# freshclam
ClamAV update process started at Sun Aug 20 21:39:25 2017
Downloading main-58.cdiff [100%]
main.cld updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 27.96.54.66)
WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 203.178.137.175)
WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
WARNING: getfile: Unknown response from database.clamav.net (IP: 219.94.128.99)
WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
daily.cvd updated (version: 23685, sigs: 1742430, f-level: 63, builder: neo)
Downloading bytecode-279.cdiff [100%]
Downloading bytecode-280.cdiff [100%]
Downloading bytecode-281.cdiff [100%]
Downloading bytecode-282.cdiff [100%]
Downloading bytecode-283.cdiff [100%]
Downloading bytecode-284.cdiff [100%]
Downloading bytecode-285.cdiff [100%]
Downloading bytecode-286.cdiff [100%]
Downloading bytecode-287.cdiff [100%]
Downloading bytecode-288.cdiff [100%]
Downloading bytecode-289.cdiff [100%]
Downloading bytecode-290.cdiff [100%]
Downloading bytecode-291.cdiff [100%]
Downloading bytecode-292.cdiff [100%]
Downloading bytecode-293.cdiff [100%]
Downloading bytecode-294.cdiff [100%]
Downloading bytecode-295.cdiff [100%]
Downloading bytecode-296.cdiff [100%]
Downloading bytecode-297.cdiff [100%]
Downloading bytecode-298.cdiff [100%]
Downloading bytecode-299.cdiff [100%]
Downloading bytecode-300.cdiff [100%]
Downloading bytecode-301.cdiff [100%]
Downloading bytecode-302.cdiff [100%]
Downloading bytecode-303.cdiff [100%]
Downloading bytecode-304.cdiff [100%]
Downloading bytecode-305.cdiff [100%]
Downloading bytecode-306.cdiff [100%]
Downloading bytecode-307.cdiff [100%]
Downloading bytecode-308.cdiff [100%]
Downloading bytecode-309.cdiff [100%]
bytecode.cld updated (version: 309, sigs: 69, f-level: 63, builder: bbaker)
Database updated (6308748 signatures) from database.clamav.net (IP: 218.44.253.75)

  


Post a Comment