[Bug 2045923] Re: AIDE returned with exit code 17. Invalid configuration!

Timo Aaltonen 2045923 at bugs.launchpad.net
Tue Dec 17 15:52:14 UTC 2024


Hello Muhammed, or anyone else affected,

Accepted aide into jammy-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/aide/0.17.4-1ubuntu0.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: aide (Ubuntu Jammy)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-jammy

-- 
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