[Pkg-clamav-devel] daemon installation fails with invoke-rc.d: syntax error: unknown option "--skip-systemd-native"

Martin Weck martin.weck at innoq.com
Wed Apr 15 15:21:44 BST 2020


Hi Scott,

Thank you for your fast answer, after having uninstalled clamav, 
clamav-base, clamav-deamon, then having reinstalled them using the 
standard ubuntu repository. The clamav-daemon did not started per 
default, but I had been able to install it. Then I downloaded the 
missing files http://database.clamav.net/main.cvd, 
http://database.clamav.net/daily.cvd, copied them to /var/lib/clamav 
with sudo chown clamav:clamav *.cvd, then I got:

[martin at holmes apt]$ sudo service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
    Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; 
vendor preset: enabled)
   Drop-In: /etc/systemd/system/clamav-daemon.service.d
            └─extend.conf
    Active: active (running) since Wed 2020-04-15 16:16:04 CEST; 2s ago
      Docs: man:clamd(8)
            man:clamd.conf(5)
            https://www.clamav.net/documents/
   Process: 16352 ExecStartPre=/bin/chown clamav /run/clamav 
(code=exited, status=0/SUCCESS)
   Process: 16351 ExecStartPre=/bin/mkdir /run/clamav (code=exited, 
status=1/FAILURE)
  Main PID: 16359 (clamd)
     Tasks: 1 (limit: 4915)
    CGroup: /system.slice/clamav-daemon.service
            └─16359 /usr/sbin/clamd --foreground=true

Apr 15 16:16:04 holmes systemd[1]: Starting Clam AntiVirus userspace 
daemon...
Apr 15 16:16:04 holmes mkdir[16351]: /bin/mkdir: cannot create directory 
‘/run/clamav’: File exists
Apr 15 16:16:04 holmes systemd[1]: Started Clam AntiVirus userspace daemon.
[martin at holmes apt]$ /usr/bin/clamdscan --no-summary --fdpass 
--multiscan --move=/tmp 
/home/martin/telis/server/uploads/136fee6e6cf8902d80bb8317f834f6403697dd5372924c3f294224204d2646f4/virus_template.pdf


So all is good it works!!!

Thank you!

Kind regards,

Martin

On 15.04.20 14:29, Martin Weck wrote:
> Hi,
>
> I am failing to install: clamav-daemon (0.102.2+dfsg-2) on Ubuntu 
> 18.04.2 LTS
>
> I get:
>
> sudo apt-get install clamav-daemon
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> clamav-daemon is already the newest version (0.102.2+dfsg-2).
> 0 upgraded, 0 newly installed, 0 to remove and 554 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] Y
> Setting up clamav-daemon (0.102.2+dfsg-2) ...
> invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
> dpkg: error processing package clamav-daemon (--configure):
>  installed clamav-daemon package post-installation script subprocess 
> returned error exit status 1
> Errors were encountered while processing:
>  clamav-daemon
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> clamscan -r --bell -i myfile.txt
> works without problems, but I like to use the daemon and I am unable 
> to get it installed. Do you have any suggestion what I could do to get 
> rid of the
>
> invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
>
> error?
>
> Thank you for your help!
>
> Martin
>
-- 
Martin Weck, martin.weck at innoq.com, http://www.innoq.com
innoQ Deutschland GmbH, Krischerstr. 100, 40789 Monheim, Germany
Tel: +49 170 2066802 Fax: +49 2173 3366 222




More information about the Pkg-clamav-devel mailing list