Public bug reported:
The file /usr/lib/python3/dist-packages/perf/__init__.py tries give the
user a helpful hint as to what flavor of the linux-tools-* package
should be installed, in case the perf.so module cannot be loaded.
That text will always append the `-generic` suffix to the version,
resulting in non-existing package names:
f" linux-tools-{kernel_version}-generic\n"
And kernel_version comes from uname -r:
$ uname -r
6.8.0-38-generic
For example, in AWS:
$ python3 -c "import perf"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/perf/__init__.py", line 24, in <module>
raise KernelNotFoundError()
perf.KernelNotFoundError: WARNING: python perf module not found for kernel
6.8.0-1009-aws
You may need to install the following packages for this specific kernel:
linux-tools-6.8.0-1009-aws-generic
You may also want to install of the following package to keep up to date:
linux-tools-generic
The linux-tools-6.8.0-1009-aws-generic package does not exist.
Similarly, when running the generic kernel, the recommendation will be:
linux-tools-6.8.0-38-generic-generic
Which also does not exist.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2073117
Title:
Recommendation for linux-tools version is incorrect
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2073117/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs