[Bug 1999566] [NEW] [lunar] Hundreds of calls to lsb_release from apt-check
Andreas Hasenack
1999566 at bugs.launchpad.net
Tue Dec 13 20:03:33 UTC 2022
Public bug reported:
I'm not entirely sure the bug is in update-notifier, but let's start
here.
In lunar, this script is triggering hundreds of calls to "lsb_release -c
-s":
# time /usr/lib/update-notifier/apt-check --human-readable
221 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
real 0m7.628s
user 0m5.955s
sys 0m1.115s
Running execsnoop on the host, and apt-check in a lunar lxd container,
execsnoop records 222 lsb_release calls.
The exact lsb_release call comes from get_dist() from
https://git.launchpad.net/ubuntu/+source/update-
manager/tree/UpdateManager/Core/utils.py#n210
Here is a pastebin: https://paste.ubuntu.com/p/FKzBZ3k4nZ/
apt-check's pid is 352917 (line 39 of paste), and that's the PPID of
every lsb_release call following that
** Affects: update-notifier (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1999566
Title:
[lunar] Hundreds of calls to lsb_release from apt-check
Status in update-notifier package in Ubuntu:
New
Bug description:
I'm not entirely sure the bug is in update-notifier, but let's start
here.
In lunar, this script is triggering hundreds of calls to "lsb_release
-c -s":
# time /usr/lib/update-notifier/apt-check --human-readable
221 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
real 0m7.628s
user 0m5.955s
sys 0m1.115s
Running execsnoop on the host, and apt-check in a lunar lxd container,
execsnoop records 222 lsb_release calls.
The exact lsb_release call comes from get_dist() from
https://git.launchpad.net/ubuntu/+source/update-
manager/tree/UpdateManager/Core/utils.py#n210
Here is a pastebin: https://paste.ubuntu.com/p/FKzBZ3k4nZ/
apt-check's pid is 352917 (line 39 of paste), and that's the PPID of
every lsb_release call following that
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1999566/+subscriptions
More information about the foundations-bugs
mailing list