Results 1 to 7 of 7

Thread: ERROR: Can't open/parse /etc/clamav/freshclam.conf

  1. #1
    Join Date
    Jul 2019
    Beans
    4

    ERROR: Can't open/parse /etc/clamav/freshclam.conf

    I am running Ubuntu 16.04 LTS and recently attempted to install clamav. I ran the command "sudo apt-get install clamav clamav-daemon clamtk" and then edited the /etc/clamav.freshclam.conf file to add my proxy information. When I ran the command "sudo freshclam" I received the error "ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf". After googling I found this stackexchange conversation on the topic https://askubuntu.com/questions/5263...-run-freshclam and tried to reconfigure freshclam with the command "sudo dpkg-reconfigure clamav-freshclam" which did not resolve the issue. I also tried placing the symlink as suggested in the stackexchange article. I have also tried removing the installation and reinstalling to no avail. Does anyone have any thoughts as to what I could be doing wrong?

    Thank you for any help you can provide.
    Last edited by ajgreeny; 1 Week Ago at 10:27 PM. Reason: Font normalised

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,088
    Distro
    Kubuntu 19.04 Disco Dingo

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Did you actually install the clamav-freshclam package?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Jul 2019
    Beans
    4

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Yes I did.
    sudo apt-get install clamav-freshclam
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    clamav-freshclam is already the newest version (0.100.3+dfsg-0ubuntu0.16.04.1).
    clamav-freshclam set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.
    peter@AEB809:~$ sudo freshclam
    ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,088
    Distro
    Kubuntu 19.04 Disco Dingo

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Is there an /etc/clamav/freshclam.conf? What owner:group and permissions does it have? I don't use ClamAV on Linux workstations, just on mail servers and web proxies. Anti-virus software is largely unnecessary on Linux. I've been using this OS since the mid-90's and never had any sort of malware or infection.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Jul 2019
    Beans
    4

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    I normally don't have any AV software on my workstation but my company has made it policy to have it so I am trying to be compliant. That said I do have a /etc/clamav/freshclam.conf file with these permissions
    -r-------- 1 clamav adm 944 Jul 12 11:42 freshclam.conf
    I have tried changing the permissions and seen where that causes ClamAV to complain about the permissions. These permissions were set when I ran
    sudo dpkg-reconfigure clamav-freshclam

  6. #6
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,088
    Distro
    Kubuntu 19.04 Disco Dingo

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Those are incredibly restrictive. Try making it readable to all users with "sudo chmod 444 /etc/clamav/freshclam.conf". Any better?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Jul 2019
    Beans
    4

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Sorry for the delay. Here is the results of your suggestion:

    sudo chmod 444 /etc/clamav/freshclam.conf
    peter@AEB809:~$ sudo freshclam
    ERROR: Incorrect argument format for option HTTPProxyPort
    ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf

    Not sure what caused the new error.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •