Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Proxy authentication settings are set properly in the /etc/apt/apt.conf and even in the network settings. But the sudo apt-get update command gives an error "something wicked happend in resolving proxy. (-5 - no hostname attached ) . This happens only with the connection in my room. It works normally with the internet connection in my friends room. But again the strange thing is, I have a windows 7 alongside ubuntu 12.04 and the proxy settings are working properly in windows (even with my room's connection). Any help could be appreciated. Thanks in advance..

share|improve this question

1 Answer 1

Please verify that the line in the /etc/apt/apt.conf is in the following format:

Acquire::http::proxy "http://username:password@yourproxy:80";

This is including the ; on the end, and the quotes on each end of the address. You could shorten it to the following when no authentication is necessary.

Acquire::http::proxy "http://yourproxy:80";
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.