Results 1 to 7 of 7

Thread: gpgkeys: HTTP fetch error 7: couldn't connect to hos

  1. #1
    Join Date
    Mar 2010
    Beans
    52

    gpgkeys: HTTP fetch error 7: couldn't connect to hos

    When I run sudo apt-get update I get the following message at the bottom:

    W: GPG error: http://ppa.launchpad.net karmic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF4186FE247510BE
    W: GPG error: http://switch.dl.sourceforge.net all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CCC158AFC1289A29
    W: GPG error: http://downloads.sourceforge.net all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CCC158AFC1289A29

    I have tried numerous ways to add the keys i.e:

    gpg --keyserver keyserver.ubuntu.com --recv-keys EF4186FE247510BE && gpg --export --armor EF4186FE247510BE | sudo apt-key add -

    However, I then get the following message:

    gpg: requesting key 247510BE from hkp server keyserver.ubuntu.com
    gpgkeys: HTTP fetch error 7: couldn't connect to host
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0

    Does anyone know what the problem is and why I cannot connect?

    Thanks

  2. #2
    Join Date
    Mar 2010
    Beans
    52

    Re: gpgkeys: HTTP fetch error 7: couldn't connect to hos

    I seem to have got rid of the error message by unchecking all sources except the following:

    http://archive.canonical.com/ubuntu

    Therefore, I now have the following unchecked:

    http://archive.canonical.com/ubuntu
    http://downloads.sourceforge.net/pro...la/mozilla/apt
    http://switch.dl.sourceforge.net/pro...la/mozilla/apt
    http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu

    Is this ok or do I need any of these checked??

  3. #3
    Join Date
    Jul 2007
    Beans
    105

    Re: gpgkeys: HTTP fetch error 7: couldn't connect to hos

    I used the Ubuntu Sources List Generator to produce the list of commands I needed to enter, in order to enable the repositories I wanted. I ran those commands. I got several instances of this pair of errors:

    Code:
    gpgkeys: HTTP fetch error 7:  couldn't connect to host
    gpg: no valid OpenPGP data found.
    The desired repositories are listed in Software Sources > Other Software, but not in Software Sources > Authentication.

    Suggestions?

  4. #4
    Join Date
    Jun 2007
    Location
    San Diego
    Beans
    99
    Distro
    Ubuntu

    Re: gpgkeys: HTTP fetch error 7: couldn't connect to hos

    I am fairly certain that this has to do with a proxy, though I wish I had something better to say about fixing it. I tried setting both my http_proxy and https_proxy variables in my .bashrc (sourced) to no avail, though that doesn't mean that you shouldn't try that out.
    i.e. in .bashrc put in these lines:
    Code:
    export http_proxy="my.proxy:port"
    export https_proxy="my.proxy:port"
    I doubt it uses the ftp_proxy, but you can set that too if you have one.

  5. #5
    Join Date
    Sep 2011
    Beans
    6

    Re: gpgkeys: HTTP fetch error 7: couldn't connect to hos

    Where are you checking and unchecking these sources? How do I find that menu?

  6. #6
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: gpgkeys: HTTP fetch error 7: couldn't connect to hos

    I think it should be an entry in the "edit" menu of the software centre called "package sources" or something similar
    Michael

  7. #7
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: gpgkeys: HTTP fetch error 7: couldn't connect to hos

    Old thread closed.

    "If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful."

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
  •