In the GUI, visit System > Update, Update Settings tab, make sure the Stable branch is selected then click Save even if you did not make any changes.
Then try it again.
If it still fails, make sure the firewall has working DNS and connectivity from the shell (try to ping some Internet sites by name from a shell prompt)