Public bug reported:
% lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.1 LTS
Release: 24.04
% LANG=C apt policy python3-apparmor
python3-apparmor:
Installed: 4.0.1really4.0.1-0ubuntu0.24.04.3
Candidate: 4.0.1really4.0.1-0ubuntu0.24.04.3
Version table:
*** 4.0.1really4.0.1-0ubuntu0.24.04.3 500
500 http://jp.archive.ubuntu.com/ubuntu noble-updates/main amd64
Packages
100 /var/lib/dpkg/status
4.0.0-beta3-0ubuntu3 500
500 http://jp.archive.ubuntu.com/ubuntu noble/main amd64 Packages
To reproduce an error
<error>
% sudo aa-complain
/var/lib/snapd/apparmor/profiles/snap.firmware-updater.firmware-notifier
Traceback (most recent call last):
File "/usr/sbin/aa-complain", line 33, in <module>
tool.cmd_complain()
File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 140, in
cmd_complain
for (program, prof_filename, output_name) in self.get_next_for_modechange():
File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 97, in
get_next_for_modechange
aaui.UI_Info(_('Profile for %s not found, skipping') % output_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
An unexpected error occurred!
For details, see /tmp/apparmor-bugreport-p60izqjw.txt
Please consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues
and attach this file.
</error>
A dummy assignment with _ on line 93 in file
/usr/lib/python3/dist-packages/apparmor/tools.py
overwrites a function defined on line 24.
24 _ = init_translation()
93 for (program, _, prof_filename) in self.get_next_to_profile():
94 output_name = prof_filename if program is None else program
95
96 if not os.path.isfile(prof_filename) or
is_skippable_file(prof_filename):
97 aaui.UI_Info(_('Profile for %s not found, skipping') %
output_name)
98 continue
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: python3-apparmor 4.0.1really4.0.1-0ubuntu0.24.04.3
ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
Uname: Linux 6.8.0-45-generic x86_64
NonfreeKernelModules: zfs nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 9 15:02:43 2024
PackageArchitecture: all
ProcKernelCmdline: BOOT_IMAGE=/vmlinuz-6.8.0-45-generic
root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash vt.handoff=7
SourcePackage: apparmor
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: apparmor (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2084008
Title:
aa-complain: TypeError: 'NoneType' object is not callable
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2084008/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs