Hi Zemajtis
Thank you for taking the time to report this bug and helping to make Ubuntu
better.
>From the log:
touch: cannot touch '/var/log/clamav/freshclam.log': No such file or directory
Hmm the postinst for freshclam really has on line 151:
touch "$udlogfile"
Via some indirections that is to the path
FRESHCLAMLOGFILE=/var/log/clamav/freshclam.log
There is no related mkdir or such around so it really might fail, but I'd
assume that dependencies should create the dir.
And there it is - in the postinst of clamav-base, not only would that postinst
fail as it chown's the path.
LOGDIR=/var/log/clamav
But further the package itself owns the path:
$ dpkg -L clamav-base | grep log
/var/log
/var/log/clamav
$ dpkg -S /var/log/clamav
clamav-base: /var/log/clamav
That said, clamav-freshclam which you installed depends on clamav-base
so that path should exist if not e.g. manually removed.
Could you check the existence and integrity of clamav-base in your case via:
$ dpkg --verify clamav-base
Those packages should - due to the dependency - always install in the
right order, but you could try to reinstall clamav-base and then check
integrity again as above. After this the install/upgrade of clamav-
freshclam should work.
$ apt install --reinstall clamav-base
$ dpkg --verify clamav-base
$ apt install clamav-freshclam
Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I'm marking this bug as Incomplete for now
until further info was provided.
** Changed in: clamav (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1700040
Title:
package clamav-freshclam 0.99.2+dfsg-0ubuntu0.16.04.1 failed to
install/upgrade: subprocess installed post-installation script
returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1700040/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs