I am trying to install the package claws-mail-clamd-plugin debian wheezy: claws-mail-clamd-plugin (3.8.1-2) debian stretch: claws-mail-clamd-plugin (3.14.1-3 and others)
I installed claws-mail-clamd-plugin:amd64 (3.14.1-3+b1) from from devuan repos #apt-cache policy claws-mail-clamd-plugin claws-mail-clamd-plugin: Installed: 3.14.1-3+b1 Candidate: 3.14.1-3+b1 Version table: *** 3.14.1-3+b1 500 500 http://pkgmaster.devuan.org/merged ascii/main amd64 Packages 100 /var/lib/dpkg/status But it also needs clamav-daemon, and here started my woes. (1) Start-Date: 2018-02-19 16:39:34 Commandline: apt-get install clamav-daemon Install: clamav-daemon:amd64 (0.99.2+dfsg-6+deb9u1), clamdscan:amd64 (0.99.2+dfsg-6+deb9u1, automatic) End-Date: 2018-02-19 16:40:12 The configuration automatically used a systemd overide to write /etc/clamav/clamd.conf (2) From /usr/share/doc/clamav-daemon/README.gz [...] ClamAV 0.99.2 is a release of bug fixes and minor enhancements. [...] - systemd support for clamd and freshclam. Patch provided by Andreas Cadhalpun. [...] So i tried to reconfigure it: (3) # dpkg-reconfigure clamav-daemon [ ok ] Stopping ClamAV daemon: clamd. Configuring clamav-daemon ------------------------- Some options must be configured for clamav-daemon. The ClamAV suite won't work if it isn't configured. If you do not configure it automatically, you'll have to configure /etc/clamav/clamd.conf manually or run 'dpkg-reconfigure clamav-daemon' later. In any case, manual changes in [More] /etc/clamav/clamd.conf will be respected. Handle the configuration file automatically? [yes/no] no Replacing config file /etc/clamav/clamd.conf with new version Disabling old systemd service override options for clamav-daemon Disabling old logrotate script for clamav-daemon [FAIL] Clamav is not configured. ... failed! [FAIL] Please edit /etc/clamav/clamd.conf and run '/etc/init.d/clamav-daemon start' ... failed! invoke-rc.d: initscript clamav-daemon, action "start" failed. So i tried to remove it and start again (4) #apt-get remove --purge clamav-daemon Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: clamdscan Use 'apt autoremove' to remove it. The following packages will be REMOVED: clamav-daemon* 0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded. After this operation, 1,094 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 147083 files and directories currently installed.) Removing clamav-daemon (0.99.2+dfsg-6+deb9u1) ... [FAIL] Clamav is not configured. ... failed! [FAIL] Please edit /etc/clamav/clamd.conf and run '/etc/init.d/clamav-daemon start' ... failed! invoke-rc.d: initscript clamav-daemon, action "stop" failed. dpkg: error processing package clamav-daemon (--remove): subprocess installed pre-removal script returned error exit status 6 Errors were encountered while processing: clamav-daemon E: Sub-process /usr/bin/dpkg returned an error code (1) So i commented out the line 'Example' in /etc/clamav/clamd.conf (5) #apt-get remove --purge clamav-daemon Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: clamdscan Use 'apt autoremove' to remove it. The following packages will be REMOVED: clamav-daemon* 0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded. After this operation, 1,094 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 147106 files and directories currently installed.) Removing clamav-daemon (0.99.2+dfsg-6+deb9u1) ... [ ok ] Stopping ClamAV daemon: clamd. Processing triggers for man-db (2.7.6.1-2) ... (Reading database ... 147082 files and directories currently installed.) Purging configuration files for clamav-daemon (0.99.2+dfsg-6+deb9u1) .. However, the package is preconfigured for systemd (6) #apt-get install clamav-daemon Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: apparmor clamav-docs daemon The following NEW packages will be installed: clamav-daemon 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 0 B/445 kB of archives. After this operation, 1,094 kB of additional disk space will be used. Preconfiguring packages ... Selecting previously unselected package clamav-daemon. (Reading database ... 147080 files and directories currently installed.) Preparing to unpack .../clamav-daemon_0.99.2+dfsg-6+deb9u1_amd64.deb ... Unpacking clamav-daemon (0.99.2+dfsg-6+deb9u1) ... Setting up clamav-daemon (0.99.2+dfsg-6+deb9u1) ... This automatically reinstalls the systemd configuration to /etc/clamav/clamd.conf; my attempts to reconfigure dpkg just reenter the loop at (3). And to make a bad situation worse, removing the claws-mail-clamd-plugin (3.14.1-3 and others) with a view to replacing it with the (3.8.1-2) apt-get wants to uninstall claws-mail itself. So two things: one, is there an apt-get switch that will block the preconfiguring and allow configuration of the native clamd.conf; and two, does this systemd configuration belong in a devuan package. Sorry for the long post, i hope that the above audit trail may be of some use. Many thanks leloft _______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng