Page 1 of 5 123 ... LastLast
Results 1 to 10 of 47

Thread: apt-get has the problems to resolve address

  1. #1
    Join Date
    Feb 2008
    Beans
    116

    Exclamation 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.

  2. #2
    Join Date
    Feb 2008
    Beans
    116

    Re: apt-get has the problems to resolve address

    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?

  3. #3
    Join Date
    Feb 2008
    Beans
    116

    Re: apt-get has the problems to resolve address

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

  4. #4
    Join Date
    Jul 2009
    Location
    #ubuntu
    Beans
    141
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: apt-get has the problems to resolve address

    I have the exact same problem, error -5 and everything. It has been present since I got the pre-release of Lucid; the first one I got was Beta 1, and, on my machine, it has been present through Beta 2 and RC. I wasn't going to say anything because I thought it would be caught before it went final, but i guess it didn't.

    Now, the behavior, at least for me. it's behaving pretty erratically. If apt-get update is run a bunch of times, eventually it will complete with no errors, but the next time through more than one server might not resolve.

    My network connection is working fine (3008kbps down/512kbps up ADSL), and I checked, I don't have packet loss or anything.. Also apt-get install x works fine once the package lists are downloaded, and every other Internet related program works fine. It's ONLY apt-get update, or something that uses it, like Update Manager's "Check" function, or aptitude updating the lists.

    A notable thing is that the offending server (whatever it might be, it's completely random) sometimes sits at "Waiting for headers" for a awhile before petering out. This means it's probably timing out for some reason. Then again, it's sometimes instant. Like I said, it's very erratic.

    Anyway, yes, that's it, Lucid is awesome, I have no other problems it, except for the Nvidia/plymouth problem, but I've rectified that with the Grub hack.

    Hope this gets fixed soon.
    Last edited by ThatBum; May 3rd, 2010 at 01:47 AM.

  5. #5
    Join Date
    Feb 2008
    Beans
    116

    Re: apt-get has the problems to resolve address

    This is just unexplainable how can this major functionality go undetected during alphas, betas and RC's. I don't know what to do except the manual installtion.

  6. #6
    Join Date
    Jun 2007
    Location
    China
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-get has the problems to resolve address

    Ah! This is similar to the problem I'm having:

    http://ubuntuforums.org/showthread.p...ht=proxy+lucid

    but it's odder if you sudo -i than put in the command it works but sudo doesn't. For example:

    Code:
    sudo -i
    then
    Code:
    apt-get install flashplugin-nonfree
    works
    Code:
    sudo apt-get install flashplugin-nonfree
    fails

    or

    Code:
    sudo i
    then
    Code:
    wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
    works

    Code:
    sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
    fails



    Although with me sudo apt-get update works
    Last edited by Gone fishing; May 2nd, 2010 at 10:03 AM.

  7. #7
    Join Date
    Feb 2008
    Beans
    116

    Re: apt-get has the problems to resolve address

    @Gone fishing how is your reply related to this post.

  8. #8
    Join Date
    Jun 2007
    Location
    China
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-get has the problems to resolve address

    Well we both seem to be having resolve issues through a proxy server. I'm finding that when I use sudo it fails to use the proxy for eg the message from a terminal command

    sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
    [sudo] password for john:
    --2010-05-02 10:54:39-- http://www.medibuntu.org/sources.list.d/lucid.list
    Resolving www.medibuntu.org... failed: Name or service not known.
    wget: unable to resolve host address `www.medibuntu.org
    However, it finds the proxy setting with sudo -i then the the command

  9. #9
    Join Date
    Feb 2008
    Beans
    116

    Re: apt-get has the problems to resolve address

    Thanks, your tip did the work. Earlier I thought that some ways its a bug in apt-get. However, if there is any way to make the behavior of sudo again as earlier, it would be cool.

  10. #10
    Join Date
    Jun 2007
    Location
    China
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-get has the problems to resolve address

    Thanks

    This is a bug - but I'm not sure how. The proxy settings with apt, and wget? are being applied inconsistently with sudo.

    I haven't quite got my head round what isn't working and why. Certainly it all works with sudo -i and only some of it works with sudo.

Page 1 of 5 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •