If wget gives you the following message even though your browsers are able to access the Internet, it could be due to a problem with your /etc/resolv.conf
Resolving [some address]... failed: Temporary failure in name resolution
The solution is to edit /etc/resolv.conf and add IP addresses. On Debian systems, the file is /etc/nsswitch.conf