Thread View: linux.debian.bugs.dist
6 messages
6 total messages
Started by Eric Valette
Tue, 24 Nov 2026 10:20
Bug#1155112: apparmor: Error message on installation
Author: Eric Valette
Date: Tue, 24 Nov 2026 10:20
Date: Tue, 24 Nov 2026 10:20
37 lines
2605 bytes
2605 bytes
Package: apparmor Version: 5.0.2-6 Severity: normal Reloading AppArmor profiles Could not replace profile /var/cache/apparmor/48da56f3.0/usr.sbin.mariadbd : Argument invalide -- System Information: Debian Release: forky/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.18.65 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=fr_FR.UTF8, LC_CTYPE=fr_FR.UTF8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apparmor depends on: ii debconf [debconf-2.0] 1.5.92 ii libapparmor1 5.0.2-6 ii libc6 2.44-3 ii libgcc-s1 16.2.0-5 ii libstdc++6 16.2.0-5 ii libzstd1 1.5.7+dfsg-4 apparmor recommends no packages. Versions of packages apparmor suggests: pn apparmor-utils <none> -- debconf information: apparmor/homedirs:
Bug#1155112: [pkg-apparmor] Bug#1155112: apparmor: Error message on installation
Author: intrigeri
Date: Thu, 26 Nov 2026 09:10
Date: Thu, 26 Nov 2026 09:10
21 lines
2186 bytes
2186 bytes
Control: tag -1 + moreinfo Hi, Eric Valette (2026-11-24): > Reloading AppArmor profiles > Could not replace profile /var/cache/apparmor/48da56f3.0/usr.sbin.mariadbd : Argument invalide I can't reproduce this and I need more information. It looks like you might have a stray leftover /etc/apparmor.d/usr.sbin.mariadbd file that causes trouble. It seems it's not shipped by mariadb-server anymore which instead nowadays installs /etc/apparmor.d/mariadb. Please try to move /etc/apparmor.d/usr.sbin.mariadbd out of the way to a different director and restart apparmor? Cheers, -- intrigeri
Bug#1155112: [pkg-apparmor] Bug#1155112: apparmor: Error message on installation
Author: intrigeri
Date: Thu, 26 Nov 2026 13:50
Date: Thu, 26 Nov 2026 13:50
47 lines
3479 bytes
3479 bytes
Hi,
Eric Valette (2026-11-26):
>> It seems it's not shipped by mariadb-server anymore which instead
>> nowadays installs /etc/apparmor.d/mariadb.
>
> I beg to disagree.
Well, it's not really about agreeing or not.
I should have made it clear that I had installed mariadb-server in
a sid VM, and that's where my observations came from.
I just tested it *again* in a clean sid chroot, same results.
> dpkg -S /etc/apparmor.d/usr.sbin.mariadbd
> mariadb-server: /etc/apparmor.d/usr.sbin.mariadbd
IIRC an obsolete conffile would produce the exact same output, so that
might still be consistent with my hypothesis.
I'd love to see the output of:
dpkg -s mariadbd-server
I suspect you'll see an indication that this file is obsolete?
>> Please try to move /etc/apparmor.d/usr.sbin.mariadbd out of the way to
>> a different director and restart apparmor?
>
> Not a real solution as it will be reinstalled.
Did you actually test that?
If not, then please try to move /etc/apparmor.d/usr.sbin.mariadbd out of
the way, `apt --reinstall install mariadb`, and see if it is reinstalled?
Finally, one general comment: I feel my work is slightly disrespected
here. The onus to demonstrate a bug exists is on you; even more so
when the maintainer (yours truly) has already spend time trying to
reproduce, and failed. So, if you still firmly believe your hypothesis
is correct and mine is wrong, by all means, please provide a minimal
reproducer, that includes how I end up with
a /etc/apparmor.d/usr.sbin.mariadbd file installed, thanks.
Cheers,
--
intrigeri
Bug#1155112: [pkg-apparmor] Bug#1155112: apparmor: Error message on installation
Author: intrigeri
Date: Thu, 26 Nov 2026 15:20
Date: Thu, 26 Nov 2026 15:20
6 lines
2489 bytes
2489 bytes
Eric Valette (2026-11-26): > Or make apparmor correctly handle the staled/obsolette conf file. I don't think it would make sense for AppArmor (or any other package for that matter) to pay attention to conffiles's dpkg state. If a file is in /etc/apparmor.d/, it should be taken into account.
Bug#1155112: [pkg-apparmor] Bug#1155112: apparmor: Error message on installation
Author: intrigeri
Date: Thu, 26 Nov 2026 15:20
Date: Thu, 26 Nov 2026 15:20
15 lines
2652 bytes
2652 bytes
Eric Valette (2026-11-26): > True for everyone: the bug is not just on a single machine : I have it > on all machine that run mariabd server: > So instead of closing this bug, I would push it to mariadb server I understand you are suggesting the mariadb-server fails to cleanup this obsolete conffile upon upgrades, right? If so, yes, that makes sense to me, please go ahead and reassign it to mariadb-server. Cheers, -- intrigeri
Bug#1155112: [debian-mysql] Processed: reassign #1155112 mariadb-server
Author: Otto Kekäläinen
Date: Sat, 28 Nov 2026 04:20
Date: Sat, 28 Nov 2026 04:20
45 lines
4806 bytes
4806 bytes
--000000000000963abe06614e72b5 Content-Type: text/plain; charset="UTF-8" Control: retitle -1 mariadb: Old /etc/apparmor.d/usr.bin.mariadbd not removed on upgrade It seems the issue here is that when upgrading from Debian Trixie to Forky/unstable, the AppArmor upgrade errors on old file /etc/apparmor.d/usr.bin.mariadbd, which in turn wasn't correctly removed and replaced by /etc/apparmor.d/mariadbd? The original bug report and title are a bit sloppy: > Subject: apparmor: Error message on installation > > Reloading AppArmor profiles > Could not replace profile /var/cache/apparmor/48da56f3.0/usr.sbin.mariadbd : Argument invalide Next time you report an issue, please provide proper context on what you were doing and preferably steps to reproduce. Polished bug reports have a higher chance of being fixed quickly. --000000000000963abe06614e72b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"auto">Control: retitle -1 mariadb: Old /etc/ap= parmor.d/usr.bin.mariadbd not removed on upgrade<div dir=3D"auto"><br></div= ><div dir=3D"auto">It seems the issue here is that when upgrading from Debi= an Trixie to Forky/unstable, the AppArmor upgrade errors on old file /etc/a= pparmor.d/usr.bin.mariadbd, which in turn wasn't correctly removed and = replaced by /etc/apparmor.d/mariadbd?</div><div dir=3D"auto"><br></div><div= dir=3D"auto">The original bug report and title are a bit sloppy:</div><div= dir=3D"auto"><br></div><div dir=3D"auto"><div dir=3D"auto">> Subject: a= pparmor: Error message on installation</div><div dir=3D"auto">></div><di= v dir=3D"auto">> Reloading AppArmor profiles=C2=A0</div><div dir=3D"auto= ">> Could not replace profile /var/cache/apparmor/48da56f3.0/usr.sbin.ma= riadbd : Argument invalide</div><div dir=3D"auto"><br></div><div>Next time = you report an issue, please provide proper context on what you were doing a= nd preferably steps to reproduce. Polished bug reports=C2=A0have a higher c= hance of being fixed quickly.</div></div></div> </div> --000000000000963abe06614e72b5--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads