Announcement

Collapse
No announcement yet.

Adept and apt-get problems (localhost connection refused) [SOLVED]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adept and apt-get problems (localhost connection refused) [SOLVED]

    Hi all! I would like to say that I have really enjoyed this community and the help and encouragement it provides. I have searched this forum, google (of course), linuxforums, linuxquestions, etc. and have not had any luck at all with my problem.

    For some reason, adept (and apt-get) cannot connect to the repositories and I cannot update, upgrade, or install any software at all! I feel as if I've been crippled by this (and I'm sure that it's something I probably did somewhere) and it would be so wonderful to get this working again.

    Whenever I try to update (sudo apt-get update), after every location I get this error:

    Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

    Any ideas? Any help at all would be greatly appreciated, as I have no idea how to fix this (have tried using different repositories, mirrors, etc. with no luck). Thank you so much for your time.

    -Kyle Seigler

    #2
    Re: Adept and apt-get problems

    Post your /etc/apt/sources.list and we will see if anything unusual pops out at us.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Adept and apt-get problems

      /etc/apt/sources.list contains:

      #
      # deb cdrom:[Kubuntu 7.04 _Feisty Fawn_ - Release amd64 (20070417)]/ feisty main restricted

      # deb cdrom:[Kubuntu 7.04 _Feisty Fawn_ - Release amd64 (20070417)]/ feisty main restricted
      # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
      # newer versions of the distribution.

      deb http://ubuntu.beryl-project.org/ feisty main

      deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted
      deb-src http://us.archive.ubuntu.com/ubuntu/ feisty restricted main multiverse universe #Added by software-properties

      ## Major bug fix updates produced after the final release of the
      ## distribution.
      deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
      deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted #Added by software-properties

      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team, and may not be under a free licence. Please satisfy yourself as to
      ## your rights to use the software. Also, please note that software in
      ## universe WILL NOT receive any review or updates from the Ubuntu security
      ## team.
      deb http://us.archive.ubuntu.com/ubuntu/ feisty universe

      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team, and may not be under a free licence. Please satisfy yourself as to
      ## your rights to use the software. Also, please note that software in
      ## multiverse WILL NOT receive any review or updates from the Ubuntu
      ## security team.
      deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse

      ## Uncomment the following two lines to add software from the 'backports'
      ## repository.
      ## N.B. software from this repository may not have been tested as
      ## extensively as that contained in the main release, although it includes
      ## newer versions of some applications which may provide useful features.
      ## Also, please note that software in backports WILL NOT receive any review
      ## or updates from the Ubuntu security team.
      # deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
      # deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

      deb http://us.archive.ubuntu.com/ubuntu/ feisty-security main restricted
      deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-security restricted main multiverse universe #Added by software-properties
      deb http://us.archive.ubuntu.com/ubuntu/ feisty-security universe
      deb http://us.archive.ubuntu.com/ubuntu/ feisty-security multiverse
      deb http://www.getautomatix.com/apt feisty main

      #AUTOMATIX REPOS START

      deb http://archive.canonical.com/ubuntu feisty-commercial main

      deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
      deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse #Added by software-properties

      deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates universe multiverse
      deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates universe multiverse #Added by software-properties

      #AUTOMATIX REPOS END
      deb http://ubuntu.beryl-project.org feisty main
      deb-src http://ubuntu.beryl-project.org feisty main


      Thank you so much for the quick reply. If there's anything else at all that would be helpful, just let me know.

      -Kyle Seigler

      Comment


        #4
        Re: Adept and apt-get problems

        Well, the first thing that pops out, is you did/are/were using Automatix. Automatix is known to mess with the /etc/apt/sources.list, which results in Adept not working.

        Edit (as root) the sources.list file and comment out everything between #AUTOMATIX REPOS START and #AUTOMATIX REPOS END (put a # and a space in front of each line). Save and then in a Linux Console shell, type:
        Code:
        sudo apt-get update
        This will resynchronize the package index files from their sources. Exit the Console and open Adept Manager. See if this doesn't fix your problem.

        Originally posted by KyleSeigler
        /etc/apt/sources.list contains:

        #AUTOMATIX REPOS START

        deb http://archive.canonical.com/ubuntu feisty-commercial main

        deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
        deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse #Added by software-properties

        deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates universe multiverse
        deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates universe multiverse #Added by software-properties

        #AUTOMATIX REPOS END
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Adept and apt-get problems

          Okay, I opened the sources.list file in kate (as root) and commented out the automatix lines, saved, and went to the shell. When I execute "sudo apt-get update" I get the exact same errors as before. Just to make sure, I opened Adept Manager (both graphically and from console) and it still has the same problems: localhost connection refused.

          Is there something else that I'm missing? I heard about Automatix screwing up Adept but not until long after I used it (once, just to install the w32 codecs) and now greatly regret it...

          Any more ideas about what could be causing this? I also looked my network configurations and everything seems fine.

          -Kyle

          Comment


            #6
            Re: Adept and apt-get problems

            Kyle;

            I also used Adept and thought it was great, but it really is not. I had some very weird problems that all stemmed from my use of Adept. Several people on this forum suggested I use Synaptic instead because I would avoid the same kind of problems. They were correct. Since switching to Synaptic, I've had no install/update/remove problems at all.

            Also besides the two Automatix comment lines and everything in between, cited in the post above, there's another automatix line above those you need rem out.

            Mark
            "If you're in a room with another person who sees the world exactly as you do, one of you is redundant." Dr. Steven Covey, The 7-Habits of Highly Effective People

            Comment


              #7
              Re: Adept and apt-get problems

              The two additional lines referred to are:
              deb-src http://us.archive.ubuntu.com/ubuntu/ feisty restricted main multiverse universe #Added by software-properties
              deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted #Added by software-properties

              These add sources (source code) repositories. Unless you are compiling from source code, you don't need these two repositories, so they can be commented out as well.
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Adept and apt-get problems

                My friend Google reveals that you are not the first to have this problem:

                https://answers.launchpad.net/ubuntu/+question/6719

                Did you use Automatix to install the Nvidia driver? If my quick skim of the post is correct, that was probably where things went awry.

                You might want to try the fix offered in the last post on this thread:

                http://forums.debian.net/viewtopic.php?t=310&

                Good luck -- mark your subject [SOLVED] if you fix it, so others can be helped.

                Comment


                  #9
                  Re: Adept and apt-get problems

                  Okay, great news! Adept is now working, and I am able to update, upgrade, and install software.

                  In looking back, I did not use Automatix to install the Nvidia driver (had to do it from console because I used the alternate install CD last year).

                  I would like to thank all of you so much for your help. I've got things working just fine so far, though my solution is somewhat round-about (maybe some of you know an easier way or one that eliminates the remove and reinstall steps):

                  SOLUTION:

                  1. I used "sudo apt-get --purge remove anon-proxy" to remove anon-proxy from my system (it was screwing with my proxy settings).

                  2. I downloaded the package "anon-proxy" from http://packages.ubuntu.com/feisty/web/anon-proxy (the online Ubuntu package database).

                  3. I reinstalled this package from the downloaded .deb and in configuration told anon-proxy NOT to set the httproxy variable (the only question it has in configuration).

                  4. I rebooted my computer and everything was fine. "sudo apt-get update" runs successfully, as does adept and its updates and upgrades.



                  I think I may give Synaptic a try also, now that I have an easier way to install it (as opposed to going through dependency hell).
                  I'll also work with Google a little more next time to save you all...

                  Thank you again for your help!

                  Sincerely,
                  Kyle

                  Comment

                  Working...
                  X