You are misinterpreting the output. The process that fails to load the .so is during the man-db stage, the needrestart process happens a bit later (after the install-info triggers have been run). Without mockuname needrestart wouldn't have detected a kernel upgrade in the first place.
It's something that I've always seen when using LD_PRELOAD on apt processes, I've never taken the time to investigate what exactly is going on, but I do know it's benign. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065863 Title: needrestart causes kernel upgrade messages in motd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2065863/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs