[Bug 2045923] Re: AIDE returned with exit code 17. Invalid configuration!
Chris Johnston
2045923 at bugs.launchpad.net
Thu Dec 19 14:10:53 UTC 2024
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2045923
Title:
AIDE returned with exit code 17. Invalid configuration!
Status in aide package in Ubuntu:
Fix Released
Status in aide source package in Jammy:
Fix Committed
Status in aide package in Debian:
Fix Released
Bug description:
[Impact]
Currently there is a bug in the AIDE package on Ubuntu where it would
fail to run on certain sources and return error code 17.
The easiest way to see this issue is to remove a newline character
'\n' between software sources.
If you are missing a newline, you would see an error like:
******************************************************************************
* AIDE returned with exit code 17. Invalid configuration! *
******************************************************************************
AIDE error output (1 lines):
ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):263:65: error in rule '/var/lib/apt/lists/repo\.protonvpn\.com_debian_dists_stable_https://esm.ubuntu.com/cis/ubuntu_binary-(amd64|all)_Packages(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/repo\\.protonvpn\\.com_debian_dists_stable_https://esm.ubuntu.com/cis/ubuntu_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile')
End of AIDE error output
AIDE detected no changes.
[Test Plan]
1- Install the aide package: sudo apt install aide -y
2- cat >> /etc/apt/sources.list.d/plesk.list << EOF
deb http://autoinstall.plesk.com/pool/PSA_18.0.42_8472/ bullseye extras
deb http://autoinstall.plesk.com/PHP74_17/ bullseye all
deb http://autoinstall.plesk.com/PHP80_17/ bullseye all
deb http://autoinstall.plesk.com/PHP81_17/ bullseye all
EOF
cat >> /etc/apt/sources.list.d/protonvpn.list << EOF
deb https://repo.protonvpn.com/debian bullseye main
deb https://repo.protonvpn.com/debian bullseye main
deb https://repo.protonvpn.com/debian stable main
EOF
Open both files in vim, run:
:set noendofline binary
:w
Quit vim. $ sudo apt update (will likely fail but that is not
important)
3- run aide and the following error will appear: % aideinit -f -y
Running aide --init...
ERROR: /etc/aide/aide.conf.d/31_aide_apt (stdout):252:72: error in rule '/var/lib/apt/lists/autoinstall\.plesk\.com_PHP81_17_dists_bullseye_https://repo.protonvpn.com/debian_binary-(amd64|all)_Packages(\.diff_Index)?$': invalid double slash (line: '/var/lib/apt/lists/autoinstall\\.plesk\\.com_PHP81_17_dists_bullseye_https://repo.protonvpn.com/debian_binary-@@{APT_ARCH}_Packages(\\.diff_Index)?$ f VarFile')
AIDE --init return code 17
A fixed package should initialise the AIDE database correctly.
[Where problems could occur]
Other files might start returning the same error and cause aide to
crash with the same error code 17, although this risk is minimal since
this change has been in Debian for over 2 years now with no issues
[Other Info]
The fix has already been merged into Debian and this is a simple back-
port of that patch.
Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008277
Debian patch:
https://salsa.debian.org/debian/aide/-/commit/f946d19f4fd430c37aa4218be7453052eae18b74
The patch is already available in Noble and newer.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aide/+bug/2045923/+subscriptions
More information about the Ubuntu-sponsors
mailing list