Page 1 sur 2

Clamav/Clamtk ne charge aucune définition de virus

Posté : dim. 5 avr. 2020 15:14
par Manu62170
Bonjour à tous.

Depuis que j'ai remplacé Mint 18.3 KDE par Mint 19.3 Cinnamon sur notre PC 64 bits et Mint 19.3 XFCE nos PC 32 bits, notre antivirus usuel, clamav/clamtk ne charge plus aucune définition de virus. C'est comme si freshclam ne faisait plus son travail...

J'ai désinstallé, réinstallé clam/clamtk avec synaptic, en cochant un maximum de cases (gnome et autres...). Rien n'y fait...

Un grand merci d'avance pour l'aide.

Bon dimanche... chez vous :-)

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : lun. 6 avr. 2020 13:33
par Mia88
Bonjour,

Pareil pour moi, la fenêtre affiche systématiquement "Mise à jour disponibles".
Quand je clique sur "Mettre à jour" il est affiché" Signatures de l'antivirus 25734", mais ça ne change jamais ! :(

Il y a un message disant "Votre configuration permet de recevoir les mises à jour automatiquement" .
Dans l'assistant de mises à jour, la case" Mon ordinateur reçoit automatiquement" les mises à jour est cochée.

Je ne t'apporte pas de solution, mais tu te sentiras moins seul :D

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : lun. 6 avr. 2020 14:03
par Mia88

Code : Tout sélectionner

mia@mia-PC5:~$ freshclam  --verbose
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
mia@mia-PC5:~$ 
:?

Merci ;)

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : lun. 6 avr. 2020 14:21
par Mia88
mia@mia-PC5:~$ ls -l /var/log/clamav/freshclam.log

Code : Tout sélectionner

-rw-r----- 1 clamav adm 0 avril  5 07:52 /var/log/clamav/freshclam.log
mia@mia-PC5:~$ groups
mia adm cdrom sudo dip plugdev lpadmin sambashare vboxusers
mia@mia-PC5:~$ 

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : lun. 6 avr. 2020 15:17
par Mia88

Code : Tout sélectionner

mia@mia-PC5:/usr/share/smart-notifier/smart_notifier$ sudo freshclam  --verbose
[sudo] Mot de passe de mia :             
Mon Apr  6 15:16:04 2020 -> ClamAV update process started at Mon Apr  6 15:16:04 2020
Mon Apr  6 15:16:04 2020 -> *Current working dir is /var/lib/clamav/
Mon Apr  6 15:16:04 2020 -> ^DNS Update Info disabled. Falling back to HTTP mode.
Mon Apr  6 15:16:04 2020 -> *Current working dir is /var/lib/clamav/
Mon Apr  6 15:16:04 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Mon Apr  6 15:16:04 2020 -> Reading CVD header (daily.cld): Mon Apr  6 15:16:04 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:04 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:04 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:04 2020 -> Reading CVD header (daily.cvd): Mon Apr  6 15:16:04 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:04 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:04 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:04 2020 -> ^Failed to get daily database version information from server: http://true
Mon Apr  6 15:16:04 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Mon Apr  6 15:16:04 2020 -> *updatedb: daily database update failed.
Mon Apr  6 15:16:04 2020 -> Trying again in 5 secs...
Mon Apr  6 15:16:09 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Mon Apr  6 15:16:09 2020 -> Reading CVD header (daily.cld): Mon Apr  6 15:16:09 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:09 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:09 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:09 2020 -> Reading CVD header (daily.cvd): Mon Apr  6 15:16:09 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:09 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:09 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:09 2020 -> ^Failed to get daily database version information from server: http://true
Mon Apr  6 15:16:09 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Mon Apr  6 15:16:09 2020 -> *updatedb: daily database update failed.
Mon Apr  6 15:16:09 2020 -> Trying again in 5 secs...
Mon Apr  6 15:16:14 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Mon Apr  6 15:16:14 2020 -> Reading CVD header (daily.cld): Mon Apr  6 15:16:14 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:14 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:14 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:14 2020 -> Reading CVD header (daily.cvd): Mon Apr  6 15:16:14 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:14 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:14 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:14 2020 -> ^Failed to get daily database version information from server: http://true
Mon Apr  6 15:16:14 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Mon Apr  6 15:16:14 2020 -> *updatedb: daily database update failed.
Mon Apr  6 15:16:14 2020 -> Trying again in 5 secs...
Mon Apr  6 15:16:19 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Mon Apr  6 15:16:19 2020 -> Reading CVD header (daily.cld): Mon Apr  6 15:16:19 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:19 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:19 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:19 2020 -> Reading CVD header (daily.cvd): Mon Apr  6 15:16:19 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:19 2020 -> ^remote_cvdhead: Download failed (6) Mon Apr  6 15:16:19 2020 -> ^ Message: Couldn't resolve host name
Mon Apr  6 15:16:19 2020 -> ^Failed to get daily database version information from server: http://true
Mon Apr  6 15:16:19 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Mon Apr  6 15:16:19 2020 -> *updatedb: daily database update failed.
Mon Apr  6 15:16:19 2020 -> Trying again in 5 secs...
Mon Apr  6 15:16:24 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Mon Apr  6 15:16:24 2020 -> Reading CVD header (daily.cld): Mon Apr  6 15:16:24 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:24 2020 -> !remote_cvdhead: Download failed (6) Mon Apr  6 15:16:24 2020 -> ! Message: Couldn't resolve host name
Mon Apr  6 15:16:24 2020 -> Reading CVD header (daily.cvd): Mon Apr  6 15:16:24 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Mon Apr  6 15:16:24 2020 -> !remote_cvdhead: Download failed (6) Mon Apr  6 15:16:24 2020 -> ! Message: Couldn't resolve host name
Mon Apr  6 15:16:24 2020 -> ^Failed to get daily database version information from server: http://true
Mon Apr  6 15:16:24 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Mon Apr  6 15:16:24 2020 -> *updatedb: daily database update failed.
Mon Apr  6 15:16:24 2020 -> Giving up on http://true...
Mon Apr  6 15:16:24 2020 -> !Update failed for database: daily
Mon Apr  6 15:16:24 2020 -> ^fc_update_databases: fc_update_database failed: HTTP GET failed (11)
Mon Apr  6 15:16:24 2020 -> !Database update process failed: HTTP GET failed (11)
Mon Apr  6 15:16:24 2020 -> !Update failed.
mia@mia-PC5:/usr/share/smart-notifier/smart_notifier$ 
On dirait que ça se précise ;)

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : lun. 6 avr. 2020 16:15
par Mia88
ce que j'en comprends, avec mon angliche tout pourri :
l'update de la data base est failed
ça me fait penser que j'ai repéré un truc étrange dans le cron daily, j'ai plus le temps aujourd'hui, j'y reviens demain ;)

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : mar. 7 avr. 2020 10:36
par Mia88
Re ;)

J'avais remarqué plusieurs lignes qui mentionnent daily dans la commande verbeuse, ça m'a fait penser que j'avais rencontré un problème avec anacron, mais vérification faite ce n'est pas avec l'anacron daily mais avec le hourly (il ne fonctionne pas car il n'y a aucune ligne dans /etc/anacrontab concernant la programmation horaire, alors que pour la programmation journalière, la ligne y est et ça fonctionne normalement).

J'ai relancé la commande, je vois cette ligne qui doit expliquer où se situe le problème, mais je ne sais pas comment le résoudre :

Code : Tout sélectionner

Tue Apr  7 09:39:43 2020 -> ^remote_cvdhead: Download failed (6) Tue Apr  7 09:39:43 2020 -> ^ Message: Couldn't resolve host name

Code : Tout sélectionner

mia@mia-PC5:/etc$ sudo freshclam  --verbose
[sudo] Mot de passe de mia :             
Tue Apr  7 09:39:43 2020 -> ClamAV update process started at Tue Apr  7 09:39:43 2020
Tue Apr  7 09:39:43 2020 -> *Current working dir is /var/lib/clamav/
Tue Apr  7 09:39:43 2020 -> ^DNS Update Info disabled. Falling back to HTTP mode.
Tue Apr  7 09:39:43 2020 -> *Current working dir is /var/lib/clamav/
Tue Apr  7 09:39:43 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Tue Apr  7 09:39:43 2020 -> Reading CVD header (daily.cld): Tue Apr  7 09:39:43 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Tue Apr  7 09:39:43 2020 -> ^remote_cvdhead: Download failed (6) Tue Apr  7 09:39:43 2020 -> ^ Message: Couldn't resolve host name
Tue Apr  7 09:39:43 2020 -> Reading CVD header (daily.cvd): Tue Apr  7 09:39:43 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : mer. 8 avr. 2020 11:30
par Mia88
Merci pour tes recherches ;)

Code : Tout sélectionner

mia@mia-PC5:~$ sudo wget http://database.clamav.net/main.cvd -o /var/db/clamav/main.cvd
[sudo] Mot de passe de mia :             
wget: /var/db/clamav/main.cvd: Aucun fichier ou dossier de ce type
mia@mia-PC5:~$ 
J'ai regardé s'il était ailleurs, pas trouvé de fichier clamav/main.cvd
J'ai donc crée le dossier dv/clamav dans /var et relancé la commande.

La signature de l'antivirus est toujours 25734, ça ne s'est pas mis à jour (j'ai pas redémarré).

Dans le doute, j'ai changé màj auto pour choisir manuel dans les options de clamav .

Code : Tout sélectionner

mia@mia-PC5:~$ sudo freshclam  --verbose
Wed Apr  8 11:16:32 2020 -> ClamAV update process started at Wed Apr  8 11:16:32 2020
Wed Apr  8 11:16:32 2020 -> *Current working dir is /var/lib/clamav/
Wed Apr  8 11:16:32 2020 -> ^DNS Update Info disabled. Falling back to HTTP mode.
Wed Apr  8 11:16:32 2020 -> *Current working dir is /var/lib/clamav/
Wed Apr  8 11:16:32 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Wed Apr  8 11:16:32 2020 -> Reading CVD header (daily.cld): Wed Apr  8 11:16:32 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:32 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:32 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:32 2020 -> Reading CVD header (daily.cvd): Wed Apr  8 11:16:32 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:32 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:32 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:32 2020 -> ^Failed to get daily database version information from server: http://true
Wed Apr  8 11:16:32 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Wed Apr  8 11:16:32 2020 -> *updatedb: daily database update failed.
Wed Apr  8 11:16:32 2020 -> Trying again in 5 secs...
Wed Apr  8 11:16:37 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Wed Apr  8 11:16:37 2020 -> Reading CVD header (daily.cld): Wed Apr  8 11:16:37 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:37 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:37 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:37 2020 -> Reading CVD header (daily.cvd): Wed Apr  8 11:16:37 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:37 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:37 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:37 2020 -> ^Failed to get daily database version information from server: http://true
Wed Apr  8 11:16:37 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Wed Apr  8 11:16:37 2020 -> *updatedb: daily database update failed.
Wed Apr  8 11:16:37 2020 -> Trying again in 5 secs...
Wed Apr  8 11:16:42 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Wed Apr  8 11:16:42 2020 -> Reading CVD header (daily.cld): Wed Apr  8 11:16:42 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:42 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:42 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:42 2020 -> Reading CVD header (daily.cvd): Wed Apr  8 11:16:42 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:42 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:42 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:42 2020 -> ^Failed to get daily database version information from server: http://true
Wed Apr  8 11:16:42 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Wed Apr  8 11:16:42 2020 -> *updatedb: daily database update failed.
Wed Apr  8 11:16:42 2020 -> Trying again in 5 secs...
Wed Apr  8 11:16:47 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Wed Apr  8 11:16:47 2020 -> Reading CVD header (daily.cld): Wed Apr  8 11:16:47 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:47 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:47 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:47 2020 -> Reading CVD header (daily.cvd): Wed Apr  8 11:16:47 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:47 2020 -> ^remote_cvdhead: Download failed (6) Wed Apr  8 11:16:47 2020 -> ^ Message: Couldn't resolve host name
Wed Apr  8 11:16:47 2020 -> ^Failed to get daily database version information from server: http://true
Wed Apr  8 11:16:47 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Wed Apr  8 11:16:47 2020 -> *updatedb: daily database update failed.
Wed Apr  8 11:16:47 2020 -> Trying again in 5 secs...
Wed Apr  8 11:16:52 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.
Wed Apr  8 11:16:52 2020 -> Reading CVD header (daily.cld): Wed Apr  8 11:16:52 2020 -> *Trying to retrieve CVD header from http://true/daily.cld
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:52 2020 -> !remote_cvdhead: Download failed (6) Wed Apr  8 11:16:52 2020 -> ! Message: Couldn't resolve host name
Wed Apr  8 11:16:52 2020 -> Reading CVD header (daily.cvd): Wed Apr  8 11:16:52 2020 -> *Trying to retrieve CVD header from http://true/daily.cvd
* Could not resolve host: true
* Closing connection 0
Wed Apr  8 11:16:52 2020 -> !remote_cvdhead: Download failed (6) Wed Apr  8 11:16:52 2020 -> ! Message: Couldn't resolve host name
Wed Apr  8 11:16:52 2020 -> ^Failed to get daily database version information from server: http://true
Wed Apr  8 11:16:52 2020 -> !check_for_new_database_version: Failed to find daily database using server http://true.
Wed Apr  8 11:16:52 2020 -> *updatedb: daily database update failed.
Wed Apr  8 11:16:52 2020 -> Giving up on http://true...
Wed Apr  8 11:16:52 2020 -> !Update failed for database: daily
Wed Apr  8 11:16:52 2020 -> ^fc_update_databases: fc_update_database failed: HTTP GET failed (11)
Wed Apr  8 11:16:52 2020 -> !Database update process failed: HTTP GET failed (11)
Wed Apr  8 11:16:52 2020 -> !Update failed.
mia@mia-PC5:~$ 

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : mer. 8 avr. 2020 18:59
par Manu62170
Bonjour à topus.

De mon côté, c'est toujours pareil. Zéro définition de virus, et peudo-analyse en une fraction de seconde avec évidemment comme résultat "aucune menace détectée" " sur nos trois PC fonctionnant sous 19.3 Cinnamon ou XFCE, qu'ils soient 64 ou 32 bits.

J'ai cherché sur Internet, y compris sur des sites en anglais ou en allemand, je ne trouve pas la solution. Je crains qu'il ne faille attendre une réactualisation...

Et pour l'instant, je n'ai réussi à trouver aucun autre antivirus gratuit réellement installable sous Linux (j'ai juste pu installer chkrootkit et rkhunter, mais c'est à mon sens insuffisant)...

Si un @mi du forum peut m'en indiquer un et joindre le lien, car une des galères que je rencontre, c'est cliquer sur un lien vers la version Linux de tel ou tel antivirus, et finalement me retrouver avec une version pour Windows...

Je sais bien que sous Linux, on ne risque pas grand chose, mais bon, je sais aussi ce que c'est q'une clé USB infectée sur un PC extérieur sous Windows que je n'arrive à récupérer précisément que sous Linux, jusqu'à présent grâce à Clamav/Clamtk...

Bonne soirée à chacun(e).

Re: Clamav/Clamtk ne charge aucune définition de virus

Posté : jeu. 9 avr. 2020 11:23
par Mia88
Bonjour Manu62170

Essaye la commande de cyrille, les nouvelles définitions de virus se téléchargent bien, ça dure entre une et deux minutes.
Mais visiblement Clamav ne sais pas aller les chercher, pour ma part les signatures installées sont toujours 25734, avec l'indication que des mises à jours sont disponibles :(
Si tu es plus doué que moi, essaye de voir s'il y a une ligne quelque part qui indique à Clamav où il doit aller chercher les nouvelles définitions virus ;)