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

Matthew Ruffell 2045923 at bugs.launchpad.net
Thu Nov 21 00:45:34 UTC 2024


Attached is the debdiff I will eventually sponsor.

** Patch added: "Final debdiff for aide on jammy"
   https://bugs.launchpad.net/ubuntu/+source/aide/+bug/2045923/+attachment/5839011/+files/sponsored_debdiff.debdiff

-- 
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:
  Incomplete
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- % wget https://repo.protonvpn.com/debian/dists/stable/main/binary-all/protonvpn-stable-release_1.0.6_all.deb
  % sudo dpkg -i ./protonvpn-stable-release_1.0.6_all.deb && sudo apt update
  3- run aide and the following error will appear: % aideinit -f -y
  ******************************************************************************
  *          AIDE returned with exit code 17. Invalid configuration!           *
  ******************************************************************************

  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