Can't update plugins

I can't update plugins via the dashboard. when I do it via the plugins page I get a 504 error and it breaks the site and when done via the dashboard it just does something (spinner is visible) then it stops and shows the following error
Download failed. cURL error 28: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received