1. Erreur obtenue
Erreur obtenue lors du lancement de Freshclam
root@olivia:~# freshclam
ClamAV update process started at Mon Nov 17 10:52:21 2008
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/support/faq for an explanation.
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.93.3 Recommended version: 0.94.1
DON'T PANIC! Read http://www.clamav.net/support/faq
Downloading main-48.cdiff [100%]
Downloading main-49.cdiff [100%]
main.cld updated (version: 49, sigs: 437972, f-level: 35, builder: sven)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 33, recommended = 35
DON'T PANIC! Read http://www.clamav.net/support/faq
WARNING: getfile: daily-7963.cdiff not found on remote server (IP: 212.180.1.29)
WARNING: getpatch: Can't download daily-7963.cdiff from database.clamav.net
WARNING: getfile: daily-7963.cdiff not found on remote server (IP: 193.218.105.9)
WARNING: getpatch: Can't download daily-7963.cdiff from database.clamav.net
WARNING: getfile: daily-7963.cdiff not found on remote server (IP: 193.218.105.9)
WARNING: getpatch: Can't download daily-7963.cdiff from database.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
daily.cvd updated (version: 8642, sigs: 26115, f-level: 35, builder: guitar)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 33, recommended = 35
DON'T PANIC! Read http://www.clamav.net/support/faq
Database updated (464087 signatures) from database.clamav.net (IP: 212.180.1.29)
L'erreur n'est pas blocante mais c'est freshclam qu'il faut pouvoir mettre à jour
2.Upgrade en Clamav 0.94.1
2-a. sans option spécifique
On fait habituellement
wget http://freshmeat.net/redir/clamav/29355/url_tgz/clamav-0.94.1.tar.gz
tar xzf clamav-0.94.1.tar.gz
cd clamav-0.94.1
./configure --with-user=simscan
make
make install
On redémarre les services clamav-daemon et clamav-freshclam
root@olivia:~/clamav-0.94.1# /etc/init.d/clamav-daemon restart
* Stopping ClamAV daemon clamd [ OK ]
* Starting ClamAV daemon clamd [fail]
Running as user simscan (UID 3001, GID 3001)
ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
ERROR: Problem with internal logger. Please check the permissions on the /var/log/clamav/clamav.log file.
Il suffit de changer les permissions sur /var/log/clamav/clamav.log et on redémarre les deux services
root@olivia:~/clamav-0.94.1# chmod 777 /var/log/clamav/clamav.log
root@olivia:~/clamav-0.94.1# /etc/init.d/clamav-daemon restart
* Stopping ClamAV daemon clamd [ OK ]
* Starting ClamAV daemon clamd
Running as user simscan (UID 3001, GID 3001)
[ OK ]
root@olivia:~/clamav-0.94.1# /etc/init.d/clamav-freshclam restart
* Stopping ClamAV virus database updater freshclam [ OK ]
* Starting ClamAV virus database updater freshclam
En rejouant freshclam, on aura noté le warning suivant
root@olivia:~/clamav-0.94.1# freshclam
ClamAV update process started at Mon Nov 17 11:04:31 2008
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/support/faq for an explanation.
main.cld is up to date (version: 49, sigs: 437972, f-level: 35, builder: sven)
daily.cvd is up to date (version: 8642, sigs: 26115, f-level: 35, builder: guitar)
Ce WARNING est dû en parti à la levée rencontrée lors du configure
configure: WARNING: ****** GNU MP 2 or newer NOT FOUND - digital signature support will be disabled !
On va maintenant compiler en fontion de la librairie adéquate
2-b. avec option nécessaire pour signatures
Il est nécessaire d'ajouter une librairie
apt-get install libgmp3-dev
Et on reprend tout
./configure --with-user=simscan
make
make install
ldconfig
On redémarre les deux services (voir section précédente)
Enfin on rejoue freshclam
root@olivia:~/clamav-0.94.1# freshclam
ClamAV update process started at Mon Nov 17 16:38:08 2008
main.cld is up to date (version: 49, sigs: 437972, f-level: 35, builder: sven)
daily.cvd is up to date (version: 8642, sigs: 26115, f-level: 35, builder: guitar)
Bingo 