Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.