LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get has the problems to resolve address (https://www.linuxquestions.org/questions/linux-software-2/apt-get-has-the-problems-to-resolve-address-805202/)

ravi.xolve 04-30-2010 12:24 PM

apt-get has the problems to resolve address
 
I installed Lucid. I am sitting behind a passworded proxy therefore I set up this proxy variable:

Code:

http://user:password@host:port/
When I try use apt-get upgrade it shows the following error:

Code:

Err http://us.archive.ubuntu.com lucid Release.gpg                         
  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com lucid-security Release.gpg                 
  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)

.....

But when I try to use:

Code:

wget www.google.com
it just works fine and gets me the desired page. Looks like there is some problem. I tried using KPackagekit and installed Synaptic manually to resolve it but no help.

Please help me out of this. My PC is just plain OS with no applications I need.

rweaver 04-30-2010 12:30 PM

Well it appears to be attempting to resolve "us.archive.ubuntu.com:http" as a hostname. Have you checked your configs? Looks like there might be a missing space or malformed line... or maybe a bug. What does your sources.list look like (/etc/apt/sources.list)?

ravi.xolve 04-30-2010 01:21 PM

here is a snapshot of my sources: http://pastebin.com/EDYcMMC5
Its unmodified and the original one from the installation.

ravi.xolve 04-30-2010 01:21 PM

Ok now I manually updated the apt-get lists (yeah it was very tiresome). And now when I want to install a package I get the same error:


Code:

Err http://us.archive.ubuntu.com/ubuntu/ lucid/universe linuxdcpp 1.0.3-1
  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/...0.3-1_i386.deb  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)

Well whats the problem? Bug with apt-get?

Shadow_7 05-01-2010 02:21 AM

Not sure if it applies, but debian uses http://http.us.debian.org/.....

Perhaps:

deb http://http.us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://http.us.archive.ubuntu.com/ubuntu/ lucid main restricted

or not. The pastebin being just /us.ar... not /http.us.ar... just a guess though.


All times are GMT -5. The time now is 10:22 AM.