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

Scott Kitterman debian at kitterman.com
Wed Apr 15 13:36:32 BST 2020


On Wednesday, April 15, 2020 8:29:02 AM EDT 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

You are attempting to install Debian packages in Ubuntu which is not 
supported.  Clamav 102.2 is available from the official Ubuntu package archive:

clamav | 0.102.2+dfsg-0ubuntu0.18.04.1     | bionic-updates
clamav | 0.102.2+dfsg-0ubuntu0.18.04.1     | bionic-security

Use those.

If for some reason you don't have those available, then you have a non-Debian, 
non-Clamav issue that you should consult Ubuntu support resources to resolve.

Note that since the Ubuntu packages have a lower revision number, you'll need 
to remove the Debian packages first.

Scott K
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20200415/404d31f2/attachment.sig>


More information about the Pkg-clamav-devel mailing list