I decided to install Ubuntu 10.04 (Lucid Lynx) in PC today and the outlook looks good. I was very much surprised that “GIMP” was missing in this release and then I tried to update Lucid Lynx.
verman@verman-desktop:~$ sudo apt-get update
[sudo] password for verman:
Err http://security.ubuntu.com lucid-security Release.gpg
Something wicked happened resolving ‘security.ubuntu.com:http’ (-5 – No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_IN
Something wicked happened resolving ‘security.ubuntu.com:http’ (-5 – No address associated with hostname)
————-
————-
————-
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/source/Sources.gz Something wicked happened resolving ‘in.archive.ubuntu.com:http’ (-5 – No address associated with hostname)
E: Some index files failed to download, they have been ignored, or old ones used instead.
This Showed me a error “No address associated with hostname” in all the line.
Then I tried all the possibility to update Lucid Lynx.
I was using Proxy Internet connect and I didn’t touch any settings.
Proxy is working fine and able to browse all website in the Internet.
Then suspect it has nothing to do with proxy .
Even when i manually exported HTTP proxy: http://myname:mypassword@proxy Port: 8080 , apt-get update was not working.
After a long search using my friend google, I found that we had to acquire http proxy in apt.conf file
Then I just added a line in /etc/apt/apt.conf
Acquire::http::Proxy “http://myname:mypassword@proxy:8080″;
after that it worked charm!
verman@verman-desktop:~$ sudo apt-get update
[sudo] password for verman:
Hit http://in.archive.ubuntu.com lucid Release.gpg
Ign http://in.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_IN
————-
————-
————-
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Reading package lists… Done
verman@verman-desktop:~$
Thanks to Google ……….
Now I will try installing “GIMP”


it really worked..
i was trying this for days.,..
atlast thanks dude
thank you, Thank You, THANK YOU
It Worked
I was also trying for DAYS
Thanks alot for this. I have been trying to solve the same problem and your article really helped me to fix it.
Thanks!
not work for my ubuntu 10.04
Do you have a internet connection ?
What is your really problem ?
If you copy paste it won’t work,
try to added a line by typing in /etc/apt/apt.conf
Acquire::http::Proxy “http://myname:mypassword@proxy:8080″;
it will work !
It’s still not working.. currently using 10.04 here at work…
if i am to use
Acquire::http::Proxy “http://myname:mypassword@proxy:8080″;
should the domain be included as:
“http://mydomain\myname:mypassword@proxy:8080″;
I had this problem and your post solved it. Thanks!
Hi guyz
I am new to ubuntu and this computer stuffs, sorry to ask that question which might seem stupid but please do i have to change the “myname” and “mypassword” ? to the name and password i use?
isn’t dangerous to put the password in the open like this?
Also help me how to find the “myname” ….
if in the console we have :
verman@verman-desktop:~$
thus the “myname” is verman???
Thanks for your explanation.
Then I just added a line in /etc/apt/apt.conf
Acquire::http::Proxy “http://myname:mypassword@proxy:8080″;
in addition to this i added in .bashrc
http_proxy=”http://…:port_number” and
ftp_proxy=”http://…:port_number”
then it started working.
To make sure the proxy is correct, i used the wget command and to make wget command to work, i added the proxy details to /etc/wgetrc and tried to get the google web page using wget http://www.google.com.
If you find /etc/apt/apt.conf doesn’t exist on 10.04 Ubuntu boxes, you can just create it.
You might want to also set an FTP and HTTPS proxy…
Acquire::http::proxy “http:///”;
Acquire::ftp::proxy “ftp:///”;
Acquire::https::proxy “https:///”;
you need not to do that thing manually you can do this that is you can configure your proxy using network proxy manager preinstalled in ubuntu.
wow,
i tried it
it works,
thanks
Thanx a lot to you, your clue solved my problem
sir i do not have apt.conf file in my etc/apt/ here what should i do
Wow !! amazing post I was stuck with this for an hour….And immediatly after adding the file in to the /etc/apt created the file apt.conf simply added the line of code along with my credentials and viola it worked like a charm !! thanks a lot u guys !!
Thanks dear it works
This does not work in Ubuntu 11.04.
There seems to be nothing regarding a “Direct connection” (i.e. No Proxy) option. Shouldn’t this work without any proxy ?
you are great…thanks a lot for this post..
m trying to create a virtual host and facing this error
not tried yet but i hope this will work
thanx it works if you modified /etc/apt/apt.conf
Acquire::http::proxy “http://user:paswd@proxy:port
thanx a lot man, after a long search i found out solution here.
I have just upgraded to ubuntu 11.10 and I have the same problem. I cannot use apt-get update, but everything else works such as wget and web browsing. But I cannot install any software because of this apt-get problem. When I opened /etc/apt/apt.conf it has only one line in it, which is
Acquire::http::proxy “http://127.0.0.1:9666/”;
I didn’t set a password and username and I am using ultrasurf. Anyone help me please?
[...] งงอยุนานก็มาเจอบล็อคนี้ครับ เค้าบอกว่าให้ไปแก้ที่ apt.conf แทน [...]
Hi i am raviraj,
I facing below error while installing packages..
———
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/r/rpm/librpmio0_4.7.2-1lbuild1_i386.deb
Something wicked happened resolving ‘ubuntuz01.sasken.com:3142′ (-5 – No address associated with hostname)
———-
please help me to resolve this issue…
FINALLY !!!!!!!!!!! Thank you for the post.