sudo kill -9 pid doesn't kill softwareupdated in mac

I have a process softwareupdated which is consuming lot of data. I just want to close the process as I dont want to update . I tried sudo kill -9 pid but it doesn't kill softwareupdated in mac. I keep getting Operation not permitted when I try to kill process.

enter image description here

enter image description here

enter image description here


Solution 1:

It appears that some processes managed by launchd cannot be killed via normal means. For example, softwareupdated does not permit sudo kill -9 from the root user or the _softwareupdate user. One workaround is to get launchd to send the signal for you:

$ sudo su -
$ launchctl list | grep -i softwareupdated  ;# Find PID and full service-name
$ launchctl kill 9 system/com.apple.softwareupdated

Another variant of this last command might require less guessing to construct:

$ launchctl kill 9 pid/<pid>/com.apple.softwareupdated