Announcement

Collapse
No announcement yet.

Kpackagekit won't connect to localhost 1080

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

    Kpackagekit won't connect to localhost 1080

    Fairly new installation of Kubuntu 9.10 with all patches applied. I merged my /home from 9.04 into this.
    lsb_release -rd
    Description: Ubuntu 9.10
    Release: 9.10
    ===
    apt-cache policy kpackagekit
    kpackagekit:
    Installed: 0.4.2-0ubuntu3
    Candidate: 0.4.2-0ubuntu3
    Version table:
    *** 0.4.2-0ubuntu3 0
    500 http://us.archive.ubuntu.com karmic/main Packages
    100 /var/lib/dpkg/status
    ===
    When I try to download packages with Kpackagekit, it refuses to install. The error message is as follows:

    The package download failed:
    Failed to fetch http://us.archive.ubuntu.com/ubuntu/...untu1_i386.deb Could not connect to localhost:1080 (127.0.0.1). - connect (111: Connection refused) [IP: 127.0.0.1 1080]

    If I run apt-get to install the same package, it works correctly.

    I'm not even sure why it is trying to connect to localhost anyway.

    Any help appreciated.

    JimR

    #2
    Re: Kpackagekit won't connect to localhost 1080

    Post your /etc/hosts file.
    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: Kpackagekit won't connect to localhost 1080

      even after removing the ipv6 lines, it still happens (IPv6 was previously disabled elsewhere).

      cat hosts
      127.0.0.1 localhost
      127.0.1.1 kd1yv11

      # The following lines are desirable for IPv6 capable hosts
      # ::1 localhost ip6-localhost ip6-loopback
      # fe00::0 ip6-localnet
      # ff00::0 ip6-mcastprefix
      # ff02::1 ip6-allnodes
      # ff02::2 ip6-allrouters
      # ff02::3 ip6-allhosts

      Comment


        #4
        Re: Kpackagekit won't connect to localhost 1080

        But you have access to the Internet otherwise? Are you connected to a Router? I'm guessing 'yes.' Do you have port blocking set up on the Router?
        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: Kpackagekit won't connect to localhost 1080

          Yes, internet and intranet are fine. However, this connection is only to localhost (127.0.0.1), so it should never go to the router.

          The Connection Refused message in this case usually means that there is no server listening on the requested port, 1080. What server would Kpackagekit expect to find here?

          Comment


            #6
            Re: Kpackagekit won't connect to localhost 1080

            Kpackagekit has much (still) to be desired. Most 'veterans' don't like it at all, and don't use it. I Googled, and there is a bug report on this exact error from Kpackagekit that you noted. That bug report can be viewed here. The work-around, until the bug is squashed, is to use the command line (CLI) and run sudo apt-get commands which work as usual.
            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

            Working...
            X