If your machine is behind a proxy running a Microsoft NTLM based web proxy you may need something like the (python based) ntlmaps to sit between wget/apt-get and the real proxy to do the authentication for you.