[Pkg-clamav-devel] Errors using apt-get to install clamav=freshclam_0.103.11 on Ubuntu 20.04 LTS
Michael McNamara
mac at adapt-ip.com
Thu Jun 6 00:38:30 BST 2024
Trying to install clamav on
_root at mail:/etc/init.d# cat /etc/os-release_
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
root at mail:/etc/init.d#
and get:
_
_
_root at mail:/etc/init.d# apt-get install clamav clamav-daemon -_y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
clamav-freshclam
Suggested packages:
libclamunrar clamav-docs apparmor
The following NEW packages will be installed:
clamav clamav-daemon clamav-freshclam
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/397 kB of archives.
After this operation, 2,257 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package clamav-freshclam.
(Reading database ... 164565 files and directories currently installed.)
Preparing to unpack
.../clamav-freshclam_0.103.11+dfsg-0ubuntu0.20.04.1_amd64.deb ...
Unpacking clamav-freshclam (0.103.11+dfsg-0ubuntu0.20.04.1) ...
Selecting previously unselected package clamav.
Preparing to unpack .../clamav_0.103.11+dfsg-0ubuntu0.20.04.1_amd64.deb ...
Unpacking clamav (0.103.11+dfsg-0ubuntu0.20.04.1) ...
Selecting previously unselected package clamav-daemon.
Preparing to unpack
.../clamav-daemon_0.103.11+dfsg-0ubuntu0.20.04.1_amd64.deb ...
Unpacking clamav-daemon (0.103.11+dfsg-0ubuntu0.20.04.1) ...
Setting up clamav-freshclam (0.103.11+dfsg-0ubuntu0.20.04.1) ...
Setting up clamav-daemon (0.103.11+dfsg-0ubuntu0.20.04.1) ...
*/var/lib/dpkg/info/clamav-daemon.postinst: line 156: export:
`#Automatically=Generated': not a valid identifier*
dpkg: error processing package clamav-daemon (--configure):
installed clamav-daemon package post-installation script subprocess
returned error exit status 1
Note that the config files the install creates have this "#Automatically
Generated" as their first line:
_
_
_root at mail:/etc/init.d# head /etc/clamav/clamd.conf _
#Automatically Generated by clamav-daemon postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
User clamav
_
_
_root at mail:/etc/init.d# head /etc/clamav/freshclam.conf _
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogRotate true
root at mail:/etc/init.d#
--
Michael McNamara
Adapt-IP.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20240605/6fdb99a0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mac.vcf
Type: text/vcard
Size: 293 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20240605/6fdb99a0/attachment.vcf>
More information about the Pkg-clamav-devel
mailing list