Restart the softwareupdate daemon
/bin/launchctl kickstart -k system/com.apple.softwareupdated
sudo launchctl kickstart -k system/com.apple.softwareupdated
https://macmule.com/2015/11/02/jss-setting-software-update-server-to-httpindex-sucatalog/
apple macos invalid catalogurl found: from preference setting
——– another script recommended on Slack
#!/bin/zsh
/bin/launchctl kickstart -k system/com.apple.softwareupdated
/usr/bin/killall 'System Preferences'