Ubuntu Disable Pending Kernel Msg

This can be controlled from this configuration file /etc/needrestart/needrestart.conf

vi /etc/needrestart/needrestart.conf

Find this line.

#$nrconf{kernelhints} = -1;

And remove the # in front of it so it looks like this.

$nrconf{kernelhints} = -1;