If you do not want your Ubuntu system from sleeping.
Command
Can be ran as both root or non-root privileges
gsettings set org.gnome.desktop.session idle-delay 0
Solution found from this thread: https://askubuntu.com/questions/473037/how-to-permanently-disable-sleep-suspend