Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1008277: aideinit stops with error in rule

169 views
Skip to first unread message

Gwen

unread,
Mar 25, 2022, 4:50:03 PM3/25/22
to
Package: aide
Version: 0.17.3-4+deb11u1
Severity: important

Steps to reproduce

1. Have a Debian 11.2 server
2. Install aide with apt install aide
3. Open bash shell
4. Start aideinit
5. Error appears
root@srv11 ~ # aideinit -f -y
Running aide --init...
ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):105:70: error in rule '/var/lib/apt/lists/deb\.debian\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\\.diff_Index)?$ f VarFile')
AIDE --init return code 17



-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-12-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

aide depends on no packages.

Versions of packages aide recommends:
ii aide-common 0.17.3-4+deb11u1

Versions of packages aide suggests:
pn figlet <none>

-- no debconf information

Gwen

unread,
Mar 26, 2022, 8:40:03 AM3/26/22
to
Please close this report a Duplicate of 1008277: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008277.
I accidentally created Bug#1008278.

Lilo von Hanffstengel

unread,
Mar 26, 2022, 11:10:03 AM3/26/22
to
Similar issue after installing munin on Debian 11.2.

Error shows in shell:

aideinit -f -y
Running aide --init...
ERROR: /etc/aide/aide.conf.d/31_aide_munin-nodes (stdout):1: unexpected character: '/' (line: '/var/cache/munin/www/localdomain\n/(index\.html|localhost\\.localdomain/[-_[:alnum:]]+\.(png|html))$ f VarFile/var/lib/munin/localdomain/localhost\\.localdomain\n-.*\.rrd$ f VarFile/@@{RUN}/munin/munin-(update|datafile|localdomain-localhost\\.localdomain|limits)\.lock$ f VarFile')
AIDE --init return code 17

- - -

munin 2.0.67-3
aide 0.17.3-4+deb11u1
aide-common 0.17.3-4+deb11u1

Marc Haber

unread,
Mar 27, 2022, 7:10:02 AM3/27/22
to
On Fri, Mar 25, 2022 at 09:36:12PM +0100, Gwen wrote:
> ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):105:70: error in rule '/var/lib/apt/lists/deb\.debian\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\\.diff_Index)?$ f VarFile')

This looks like an error parsing a sources.list line that contains an
external repository. Can you show all sources.list lines that contain
"autoinstall.plesk.com"?

Greetings
Marc

Marc Haber

unread,
Mar 27, 2022, 7:30:03 AM3/27/22
to
Control: clone -1 -2
Control: retitle -1 rule error, probably parsing plesk sources.list line
Control: retitle -2 rule error, probably parsing munin.conf
thanks

Marc Haber

unread,
Mar 27, 2022, 7:40:03 AM3/27/22
to
Control: tags -1
thanks

On Sat, Mar 26, 2022 at 03:51:00PM +0100, Lilo von Hanffstengel wrote:
> aideinit -f -y
> Running aide --init...
> ERROR: /etc/aide/aide.conf.d/31_aide_munin-nodes (stdout):1: unexpected character: '/' (line: '/var/cache/munin/www/localdomain\n/(index\.html|localhost\\.localdomain/[-_[:alnum:]]+\.(png|html))$ f VarFile/var/lib/munin/localdomain/localhost\\.localdomain\n-.*\.rrd$ f VarFile/@@{RUN}/munin/munin-(update|datafile|localdomain-localhost\\.localdomain|limits)\.lock$ f VarFile')

Hi,

can I please see your /etc/munin/munin.conf?

Greetings
Marc

Lilo von Hanffstengel

unread,
Mar 27, 2022, 10:30:03 AM3/27/22
to
Good day Herr Haber,

am Sonntag, 27. März 2022 um 13:28 schrieben Sie:
Sorry, the previous sent munin.conf was from my other server.

Here is the one whose err message was reported to tracker:

# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files. They all
# must be writable by the user running munin-cron. They are all
# defaulted to the values you see here.
#
#dbdir /var/lib/munin
#htmldir /var/cache/munin/www
#logdir /var/log/munin
#rundir /var/run/munin

# Where to look for the HTML templates
#
#tmpldir /etc/munin/templates

# Where to look for the static www files
#
#staticdir /etc/munin/static

# temporary cgi files are here. note that it has to be writable by
# the cgi user (usually nobody or httpd).
#
# cgitmpdir /var/lib/munin/cgi-tmp

# (Exactly one) directory to include all files from.
includedir /etc/munin/munin-conf.d

# You can choose the time reference for "DERIVE" like graphs, and show
# "per minute", "per hour" values instead of the default "per second"
#
#graph_period second

# Graphics files are generated either via cron or by a CGI process.
# See http://munin-monitoring.org/wiki/CgiHowto2 for more
# documentation.
# Since 2.0, munin-graph has been rewritten to use the cgi code.
# It is single threaded *by design* now.
#
#graph_strategy cron

# munin-cgi-graph is invoked by the web server up to very many times at the
# same time. This is not optimal since it results in high CPU and memory
# consumption to the degree that the system can thrash. Again the default is
# 6. Most likely the optimal number for max_cgi_graph_jobs is the same as
# max_graph_jobs.
#
#munin_cgi_graph_jobs 6

# If the automatic CGI url is wrong for your system override it here:
#
#cgiurl_graph /munin-cgi/munin-cgi-graph

# max_size_x and max_size_y are the max size of images in pixel.
# Default is 4000. Do not make it too large otherwise RRD might use all
# RAM to generate the images.
#
#max_size_x 4000
#max_size_y 4000

# HTML files are normally generated by munin-html, no matter if the
# files are used or not. You can change this to on-demand generation
# by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2
#
# Notes:
# - moving to CGI for HTML means you cannot have graph generated by cron.
# - cgi html has some bugs, mostly you still have to launch munin-html by hand
#
#html_strategy cron

# munin-update runs in parallel.
#
# The default max number of processes is 16, and is probably ok for you.
#
# If set too high, it might hit some process/ram/filedesc limits.
# If set too low, munin-update might take more than 5 min.
#
# If you want munin-update to not be parallel set it to 0.
#
#max_processes 16

# RRD updates are per default, performed directly on the rrd files.
# To reduce IO and enable the use of the rrdcached, uncomment it and set it to
# the location of the socket that rrdcached uses.
#
#rrdcached_socket /var/run/rrdcached.sock

# Drop some...@fnord.comm and anoth...@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" some...@fnord.comm
#contact.anotheruser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" anoth...@blibb.comm
#
# For those with Nagios, the following might come in handy. In addition,
# the services must be defined in the Nagios server as well.
#contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf

# The maximum time the munin-update may take to get updates from all nodes,
# this might be interesting when using munin-async in case of large transactions and/or backlog.
# When using the munin protocol to connect to a node, then this value shouldn't be set higher than 240.
# In case it's higher, gaps might be seen in the graphs.
timeout_fetch_all_nodes 240

# The maximum amount of time in seconds we may work on 1 node.
# The value will be limited with timeout_fetch_all_nodes.
timeout_fetch_one_node 180

# a simple host tree
[localhost.localdomain]
address 127.0.0.1
use_node_name yes

#
# A more complex example of a host tree
#
## First our "normal" host.
# [fii.foo.com]
# address foo
#
## Then our other host...
# [fay.foo.com]
# address fay
#
## IPv6 host. note that the ip adress has to be in brackets
# [ip6.foo.com]
# address [2001::1234:1]
#
## Then we want totals...
# [foo.com;Totals] #Force it into the "foo.com"-domain...
# update no # Turn off data-fetching for this "host".
#
# # The graph "load1". We want to see the loads of both machines...
# # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
# load1.graph_title Loads side by side
# load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
#
# # The graph "load2". Now we want them stacked on top of each other.
# load2.graph_title Loads on top of each other
# load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
# load2.dummy_field.draw AREA # We want area instead the default LINE2.
# load2.dummy_field.label dummy # This is needed. Silly, really.
#
# # The graph "load3". Now we want them summarised into one field
# load3.graph_title Loads summarised
# load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
# load3.combined_loads.label Combined loads # Must be set, as this is
# # not a dummy field!
#
## ...and on a side note, I want them listen in another order (default is
## alphabetically)
#
# # Since [foo.com] would be interpreted as a host in the domain "com", we
# # specify that this is a domain by adding a semicolon.
# [foo.com;]
# node_order Totals fii.foo.com fay.foo.com
#





--
Mit freundlichen Grüßen
Lilo von Hanffstengel

Lilo von Hanffstengel

unread,
Mar 27, 2022, 11:30:03 AM3/27/22
to
Hi,

>> deb [arch=amd64] http://autoinstall.plesk.com/PMM_0.1.11 bullseye all
>
> I guess that the apt aide rule code doesn't handle the [arch=amd64] part
> correctly yet. That's a relatively new notation. Can you try removing it
> just to check?

Removing that in apt list file did not solve the issue.

# aideinit -f -y
Running aide --init...
ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):103:70: error in rule '/var/lib/apt/lists/deb\.debian\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\\.diff_Index)?$ f VarFile')
AIDE --init return code 17


--
Greetings

Marc Haber

unread,
Mar 27, 2022, 11:50:03 AM3/27/22
to
On Sun, Mar 27, 2022 at 05:15:45PM +0200, Lilo von Hanffstengel wrote:
> > we can write in German if that helps.
>
> No, i think my english is understandable to give you all information you need.

Ok, I'm fine with that.

> > What does this call print on your machine?
>
> Which call?

/etc/aide/aide.conf.d/31_aide_munin-nodes

>
> > Was that file by any chance edited on a windows box and saved with Windows Line
> > Endings CR/LF? Can you please gzip /etc/munin/munin.conf and
> > /etc/aide/aide.conf.d/31_aide_munin-nodes and send me the result as an
> > attachment?
>
> After changing to CRLF line endings in conf files (see
> munin-aide-conf.zip) a run of aideinit -f -y in bash shell fails with
> this err:
>
> Running aide --init...
> ')(line: 'etc/aide/aide.conf.d/31_aide_munin-nodes:4: unexpected character: '
> AIDE --init return code 17
>
> > Does "file /etc/munin/munin.conf" print "ASCII text" or "ASCII
> > text, with CRLF, LF line terminators"?
>
> It prints ASCII text. So this original had the correct Linux lineending.

I would like to see the original. What you sent me is with CRLF
lineending. The rule should (must!) work with unix style line ending,
but somehow an extra \n is written to the aide rule.

> > What does your /bin/sh point to?
>
> /usr/bin/sh
> and a ls -al /usr/bin/sh gives /usr/bin/sh -> dash

Ok, that's the same on my reference system.

Greetings
Marc


--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

Lilo von Hanffstengel

unread,
Mar 28, 2022, 5:20:02 AM3/28/22
to
Hi,

> Ah, now I see. This is a duplicate of #994168. Try the following patch:

> --- etc/aide/aide.conf.d/31_aide_munin-nodes 2022-01-16 13:07:29.000000000 +0100
> +++ /etc/aide/aide.conf.d/31_aide_munin-nodes 2021-12-31 22:10:09.905341513 +0100
> @@ -17,7 +17,7 @@
> DOMAIN=$(escape_dots "${HOST#*.}")
> DHOST=$(escape_dots "${HOST}")
>
> - printf
> "/var/cache/munin/www/%s/(index\\.html|%s/[-_[:alnum:]]+\\.(png|html))$
> f VarFile" "${DOMAIN}\\n" "${DHOST}"
> - printf "/var/lib/munin/%s/%s-.*\\.rrd$ f VarFile" "${DOMAIN}" "${DHOST}\\n"
> + printf
> "/var/cache/munin/www/%s/(index\\.html|%s/[-_[:alnum:]]+\\.(png|html))$
> f VarFile\\n" "${DOMAIN}" "${DHOST}"
> + printf "/var/lib/munin/%s/%s-.*\\.rrd$ f VarFile\\n" "${DOMAIN}" "${DHOST}"
> printf
> "/@@{RUN}/munin/munin-(update|datafile|%s-%s|limits)\\.lock$ f
> VarFile\\n" "${DOMAIN}" "${DHOST}"
> done

> This was fixed in aide 0.17.3-5 which didn't make it into bullseye.

Thanks, that patch fixes errors with 31_aide_munin-nodes.


--
Greetings
Lilo von Hanffstengel

Marc Haber

unread,
Mar 30, 2022, 2:40:02 AM3/30/22
to
Control: tags -1 moreinfo
thanks
May I remind?

Greetings
Marc

Marc Haber

unread,
Mar 30, 2022, 4:00:03 AM3/30/22
to
On Wed, Mar 30, 2022 at 09:51:19AM +0200, Lilo von Hanffstengel wrote:
> > On Sun, Mar 27, 2022 at 01:03:30PM +0200, Marc Haber wrote:
> >> On Fri, Mar 25, 2022 at 09:36:12PM +0100, Gwen wrote:
> >> > ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):105:70: error in rule '/var/lib/apt/lists/deb\.debian\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\\.diff_Index)?$ f VarFile')
> >>
> >> This looks like an error parsing a sources.list line that contains an
> >> external repository. Can you show all sources.list lines that contain
> >> "autoinstall.plesk.com"?
> >
> > May I remind?
>
> Attached.

And there is no deb-src line for plesk anywhere?!?

Marc Haber

unread,
Mar 30, 2022, 5:20:03 AM3/30/22
to
On Wed, Mar 30, 2022 at 09:51:19AM +0200, Lilo von Hanffstengel wrote:
> Attached.

Please try the following attached 31_aide_apt with augmented debug
output (will be in the next upload) with the following call:

DEBUG=1 UPAC_settingsd=/etc/aide/aide.settings.d /path/to/31_aide_apt

and let me see the output. Thanks.

Lilo von Hanffstengel

unread,
Mar 30, 2022, 5:30:03 AM3/30/22
to
Hi,

> On Wed, Mar 30, 2022 at 09:51:19AM +0200, Lilo von Hanffstengel wrote:
>> > On Sun, Mar 27, 2022 at 01:03:30PM +0200, Marc Haber wrote:
>> >> On Fri, Mar 25, 2022 at 09:36:12PM +0100, Gwen wrote:
>> >> > ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):105:70: error in rule '/var/lib/apt/lists/deb\.debian\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\\.diff_Index)?$ f VarFile')
>> >>
>> >> This looks like an error parsing a sources.list line that contains an
>> >> external repository. Can you show all sources.list lines that contain
>> >> "autoinstall.plesk.com"?
>> >
>> > May I remind?
>>
>> Attached.

> And there is no deb-src line for plesk anywhere?!?

No, the plesk lists have no deb-src lines.

Lilo von Hanffstengel

unread,
Mar 30, 2022, 5:30:03 AM3/30/22
to
Hi,


> Please try the following attached 31_aide_apt with augmented debug
> output (will be in the next upload) with the following call:

> DEBUG=1 UPAC_settingsd=/etc/aide/aide.settings.d /path/to/31_aide_apt

> and let me see the output.


@@define APT_TRANSLATIONS (ca|cs|da|de|de_DE|en|eo|es|eu|fi|fr|hr|hu|id|it|ja|km|ko|nb|nl|pl|pt|pt_BR|ro|ru|sk|sr|sv|uk|vi|zh|zh_CN|zh_TW)
@@define APT_ARCH (@@{ARCH}|all)


1: deb, 2: , 3: , 4: http://deb.debian.org/debian, 5: bullseye, 6: main contrib non-free
# deb: deb
# uri http://deb.debian.org/debian
# dist: bullseye
# comp: main contrib non-free
# HOST deb\\.debian\\.org
# HOSTPATH _debian
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_main_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_main_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_main_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_main_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_contrib_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_contrib_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_contrib_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_contrib_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_non-free_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_non-free_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_non-free_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_non-free_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
!/var/lib/apt/lists/partial/deb\\.debian\\.org_debian_dists_bullseye_Release\\.gpg\\.reverify$ f


1: deb-src, 2: , 3: , 4: http://deb.debian.org/debian, 5: bullseye, 6: main contrib non-free
# deb: deb-src
# uri http://deb.debian.org/debian
# dist: bullseye
# comp: main contrib non-free
# HOST deb\\.debian\\.org
# HOSTPATH _debian
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_main_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_contrib_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_non-free_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile




1: deb, 2: , 3: , 4: http://deb.debian.org/debian-security/, 5: bullseye-security, 6: main contrib non-free
# deb: deb
# uri http://deb.debian.org/debian-security/
# dist: bullseye-security
# comp: main contrib non-free
# HOST deb\\.debian\\.org
# HOSTPATH _debian-security
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_main_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_main_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_main_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_main_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_contrib_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_contrib_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_contrib_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_contrib_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_non-free_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_non-free_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_non-free_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_non-free_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
!/var/lib/apt/lists/partial/deb\\.debian\\.org_debian-security_dists_bullseye-security_Release\\.gpg\\.reverify$ f


1: deb-src, 2: , 3: , 4: http://deb.debian.org/debian-security/, 5: bullseye-security, 6: main contrib non-free
# deb: deb-src
# uri http://deb.debian.org/debian-security/
# dist: bullseye-security
# comp: main contrib non-free
# HOST deb\\.debian\\.org
# HOSTPATH _debian-security
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_main_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_contrib_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_non-free_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian-security_dists_bullseye-security_(InRelease|Release(\\.gpg)?)$ f VarFile




1: deb, 2: , 3: , 4: http://deb.debian.org/debian, 5: bullseye-updates, 6: main contrib non-free
# deb: deb
# uri http://deb.debian.org/debian
# dist: bullseye-updates
# comp: main contrib non-free
# HOST deb\\.debian\\.org
# HOSTPATH _debian
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_main_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_main_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_main_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_main_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_contrib_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_contrib_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_contrib_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_contrib_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_non-free_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_non-free_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_non-free_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_non-free_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
!/var/lib/apt/lists/partial/deb\\.debian\\.org_debian_dists_bullseye-updates_Release\\.gpg\\.reverify$ f


1: deb-src, 2: , 3: , 4: http://deb.debian.org/debian, 5: bullseye-updates, 6: main contrib non-freedeb [arch=amd64] http://autoinstall.plesk.com/PMM_0.1.11 bullseye all
# deb: deb-src
# uri http://deb.debian.org/debian
# dist: bullseye-updates
# comp: main contrib non-freedeb [arch=amd64] http://autoinstall.plesk.com/PMM_0.1.11 bullseye all
# HOST deb\\.debian\\.org
# HOSTPATH _debian
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_main_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_contrib_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_non-freedeb_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_[arch=amd64]_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_http://autoinstall.plesk.com/PMM_0.1.11_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_bullseye_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_all_source_Sources(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/deb\\.debian\\.org_debian_dists_bullseye-updates_(InRelease|Release(\\.gpg)?)$ f VarFile




1: deb, 2: , 3: , 4: http://autoinstall.plesk.com/pool/PSA_18.0.42_8472/, 5: bullseye, 6: extras
# deb: deb
# uri http://autoinstall.plesk.com/pool/PSA_18.0.42_8472/
# dist: bullseye
# comp: extras
# HOST autoinstall\\.plesk\\.com
# HOSTPATH _pool_PSA_18\\.0\\.42_8472
/var/lib/apt/lists/autoinstall\\.plesk\\.com_pool_PSA_18\\.0\\.42_8472_dists_bullseye_extras_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/autoinstall\\.plesk\\.com_pool_PSA_18\\.0\\.42_8472_dists_bullseye_extras_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/autoinstall\\.plesk\\.com_pool_PSA_18\\.0\\.42_8472_dists_bullseye_extras_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/autoinstall\\.plesk\\.com_pool_PSA_18\\.0\\.42_8472_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/autoinstall\\.plesk\\.com_pool_PSA_18\\.0\\.42_8472_dists_bullseye_extras_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
!/var/lib/apt/lists/partial/autoinstall\\.plesk\\.com_pool_PSA_18\\.0\\.42_8472_dists_bullseye_Release\\.gpg\\.reverify$ f


1: deb, 2: , 3: , 4: http://autoinstall.plesk.com/PHP74_17/, 5: bullseye, 6: all
# deb: deb
# uri http://autoinstall.plesk.com/PHP74_17/
# dist: bullseye
# comp: all
# HOST autoinstall\\.plesk\\.com
# HOSTPATH _PHP74_17
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP74_17_dists_bullseye_all_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP74_17_dists_bullseye_all_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP74_17_dists_bullseye_all_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP74_17_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP74_17_dists_bullseye_all_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
!/var/lib/apt/lists/partial/autoinstall\\.plesk\\.com_PHP74_17_dists_bullseye_Release\\.gpg\\.reverify$ f


1: deb, 2: , 3: , 4: http://autoinstall.plesk.com/PHP80_17/, 5: bullseye, 6: all
# deb: deb
# uri http://autoinstall.plesk.com/PHP80_17/
# dist: bullseye
# comp: all
# HOST autoinstall\\.plesk\\.com
# HOSTPATH _PHP80_17
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP80_17_dists_bullseye_all_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP80_17_dists_bullseye_all_Contents-@@{APT_ARCH}((\\.diff_Index|\\.lz4))?$ f VarFile
@@ifdef FOREIGN_ARCHES
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP80_17_dists_bullseye_all_binary-@@{FOREIGN_ARCHES}_Packages(\\.diff_Index)?$ f VarFile
@@endif
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP80_17_dists_bullseye_(InRelease|Release(\\.gpg)?)$ f VarFile
/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP80_17_dists_bullseye_all_i18n_Translation-@@{APT_TRANSLATIONS}(\\.diff_Index)?$ f VarFile
!/var/lib/apt/lists/partial/autoinstall\\.plesk\\.com_PHP80_17_dists_bullseye_Release\\.gpg\\.reverify$ f


/var/lib/apt/lists(/(auxfiles|partial))?$ d VarDir
/var/lib/apt/lists/lock$ f VarFile
/var/lib/apt/periodic/(download-upgradeable|update)-stamp$ f VarTime
/var/lib/apt/(daily_lock|extended_states)$ f VarFile
/var/lib/apt$ d VarDir

/var/lib/systemd/timers/stamp-apt-daily(-upgrade)?\\.timer$ f VarFile

/var/log/apt/(term|history)\\.log$ f Log
/var/log/apt/(term|history)\\.log\\.1\\.@@{LOGEXT}$ f LoSerMemberLog
/var/log/apt/(term|history)\\.log\\.([2-9]|1[0-1])\\.@@{LOGEXT}$ f SerMemberLog
/var/log/apt/(term|history)\\.log\\.12\\.@@{LOGEXT}$ f HiSerMemberLog
/var/log/apt/eipp\\.log\\.xz$ f VarFile
/var/log/apt$ d VarDir

/var/backups/apt\\.extended_states\\.0$ f LowLog
/var/backups/apt\\.extended_states\\.1\\.@@{LOGEXT}$ f LoSerMemberLog
/var/backups/apt\\.extended_states\\.[2345]\\.@@{LOGEXT}$ f SerMemberLog
/var/backups/apt\\.extended_states\\.6\\.@@{LOGEXT}$ f HiSerMemberLog

Marc Haber

unread,
Mar 30, 2022, 5:40:03 AM3/30/22
to
Sorry, forgot the attachment. But what you sent was already helpful.

On Wed, Mar 30, 2022 at 11:22:45AM +0200, Lilo von Hanffstengel wrote:
> 1: deb-src, 2: , 3: , 4: http://deb.debian.org/debian, 5: bullseye-updates, 6: main contrib non-freedeb [arch=amd64] http://autoinstall.plesk.com/PMM_0.1.11 bullseye all

I guess that the deb file containing something like
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free is missing its trailing newline.

Is that possible?

Lilo von Hanffstengel

unread,
Mar 30, 2022, 5:50:03 AM3/30/22
to
Hi,

> I guess that the deb file containing something like
> deb-src http://deb.debian.org/debian bullseye-updates main contrib
> non-free is missing its trailing newline.
>
> Is that possible?

Oh, yes!
I checked list now with od and saw a \n is missing in last
deb-src line, wierd.

After adding a new line with vim the aideinit runs file :-)

Perhaps the aide config rules need some polish to be more robust.

Marc Haber

unread,
Mar 30, 2022, 6:10:03 AM3/30/22
to
On Wed, Mar 30, 2022 at 11:44:15AM +0200, Lilo von Hanffstengel wrote:
> Perhaps the aide config rules need some polish to be more robust.

We are already trying to be robust for hellfire. A text file without a
trailing newline is really hard to obtain ;-)

Can you break the file again and try changing the

cat ${SOURCESLIST} /dev/null

against

awk '{print}' ${SOURCESLIST} /dev/null

please?

Greetings
Marc, nearly 30 years of Unix experience and not knowing _that_ one.

Lilo von Hanffstengel

unread,
Mar 30, 2022, 9:30:03 AM3/30/22
to
Hi,

> Can you break the file again and try changing the
>
> cat ${SOURCESLIST} /dev/null
>
> against
>
> awk '{print}' ${SOURCESLIST} /dev/null
>
> please?

This line in 31_aide_apt works for me!

awk '{print}' ${SOURCESLIST} /dev/null | sed 's/ #.*$//' | while read -r line; do

aideinit runs without any issues now.

Nice fix!
Thanks.
0 new messages