Bug#697249: rkhunter: cupt reports syntax error in /etc/apt/apt.conf.d/90rkhunter: "E: syntax error: line 4, character 1: expected: semicolon ('; ')"
Axel Beckert
abe at debian.org
Thu Jan 3 00:51:36 UTC 2013
Package: rkhunter
Version: 1.4.0-1
Severity: minor
Dear Maintainer,
cupt seems to parse /etc/apt/apt.conf.d/ files more strictly than APT
itself and issues the following warning on rkhunter's apt.conf.d file:
E: syntax error: line 2, character 162: expected: semicolon (';')
E: unable to parse the config file '//etc/apt/apt.conf.d/90rkhunter'
W: skipped the configuration file '//etc/apt/apt.conf.d/90rkhunter'
There are actually two semicolons missing in front of and behind the
closing curly bracket:
Current line 2:
DPkg::Post-Invoke { "if [ -x /usr/bin/rkhunter ] && grep -qiE '^APT_AUTOGEN=.?(true|yes)' /etc/default/rkhunter; then /usr/share/rkhunter/scripts/rkhupd.sh; fi" }
Syntactically correct line 2:
DPkg::Post-Invoke { "if [ -x /usr/bin/rkhunter ] && grep -qiE '^APT_AUTOGEN=.?(true|yes)' /etc/default/rkhunter; then /usr/share/rkhunter/scripts/rkhupd.sh; fi"; };
See the SYNTAX section in apt.conf(5) and
https://wiki.debian.org/Cupt#line-53 for reasoning and details.
-- System Information:
Debian Release: 7.0
APT prefers testing-updates
APT policy: (902, 'testing-updates'), (901, 'testing-proposed-updates'), (900, 'testing'), (800, 'unstable'), (110, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages rkhunter depends on:
ii binutils 2.22-7.1
ii cdebconf [debconf-2.0] 0.180
ii debconf [debconf-2.0] 1.5.48
ii file 5.11-2
ii net-tools 1.60-24.2
ii perl 5.14.2-16
ii ucf 3.0025+nmu3
Versions of packages rkhunter recommends:
ii curl 7.26.0-1
ii iproute 20120521-3
ii links 2.7-1
ii lsof 4.86+dfsg-1
ii postfix [mail-transport-agent] 2.9.3-2.1
ii unhide 20110113-4
ii wget 1.13.4-3
Versions of packages rkhunter suggests:
ii bsd-mailx [mailx] 8.1.2-0.20111106cvs-1
pn libdigest-whirlpool-perl <none>
ii liburi-perl 1.60-1
ii libwww-perl 6.04-1
ii mailutils [mailx] 1:2.99.97-3
ii powermgmt-base 1.31
pn tripwire <none>
-- debconf information:
rkhunter/apt_autogen: false
rkhunter/cron_daily_run:
rkhunter/cron_db_update:
More information about the forensics-devel
mailing list