Wget timed out usually indicates that you’re using an HTTP proxy to access the outside world. If so, you will need to configure the http_proxy environment variable for wget to use the same proxy. Add the below settings and it should resolve the issue.
E.g: export http_proxy=http://126.96.36.199:8080
This should fix the wget time out issue.
Note: similarly you can do this for ftp_proxy as well.