Comment 4 for bug 1447809

Revision history for this message
duke (john-jcroucher) wrote :

This seems to be a fix for the "error /var/lib/dpkg/info/clamav-daemon.postinst: 626: /var/lib/dpkg/info/clamav-daemon.postinst: cannot create : Directory nonexistent"

line 626 of clamav-daemon.postinst has a typo:

    [ -n "$PidFile" ] && echo "PidFile $PidFile" >> $DEBCONFILE

should actually be

    [ -n "$PidFile" ] && echo "PidFile $PidFile" >> $DEBCONFFILE

Source:

http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/2015-February/005074.html

I edited the file /var/lib/dpkg/info/clamav-daemon.postinst making the change, then re-ran apt-get install clamav which then worked.