2754d "freebsd-update fetch", fetching public key failed. - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old January 4th, 2009, 18:14
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default "freebsd-update fetch", fetching public key failed.

A FreeBSD installed in a vmware server 2 in win 2003.
When the first time I tried to update, I got the following problem:
Code:
# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching public key from update1.FreeBSD.org... failed.
No mirrors remaining, giving up.
The same as portsnap:
Code:
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from portsnap1.FreeBSD.org... failed.
Fetching public key from portsnap2.FreeBSD.org... failed.
Fetching public key from portsnap4.FreeBSD.org... failed.
No mirrors remaining, giving up.
#

And ping:
Code:
# ping update1.freebsd.org
PING update1.freebsd.org (72.21.59.252): 56 data bytes
36 bytes from 192.168.10.1: Communication prohibited by filter
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 7075   0 0000  7e  01 b3f9 192.168.211.128  72.21.59.252
Google doesn't help.
Thanks.
Reply With Quote
  #2  
Old January 4th, 2009, 18:42
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default

does actually any networking work on your vmware installation?
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
The Following User Says Thank You to danger@ For This Useful Post:
Logan (January 5th, 2009)
  #3  
Old January 4th, 2009, 19:02
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by danger@ View Post
does actually any networking work on your vmware installation?
Thank you for replying.
Yes, ping www.google.com:

Code:
$ ping www.google.com
PING www-china.l.google.com (64.233.189.147): 56 data bytes
64 bytes from 64.233.189.147: icmp_seq=0 ttl=128 time=41.187 ms
Reply With Quote
  #4  
Old January 4th, 2009, 19:12
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default

is there any firewall in front of you?
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
  #5  
Old January 4th, 2009, 20:08
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,861
Thanks: 30
Thanked 1,896 Times in 1,338 Posts
Default

Where is 192.168.10.1 in your network? Is that part of your LAN?
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
Logan (January 5th, 2009)
  #6  
Old January 4th, 2009, 22:16
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

I have the same problem with PCBSD-7.0.2. I'm trying to update it from 7.1-PRERELEASE to 7.1-RELEASE.

Quote:
# [0:10:26] /usr>> freebsd-update -r 7.1-RELEASE fetch
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching public key from update1.FreeBSD.org... failed.
No mirrors remaining, giving up.
# [0:10:31] /usr>> uname -a
FreeBSD sora 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Mon Nov 24 20:22:16 EST 2008 root@pcbsdx32-7:/usr/obj/pcbsd-build/cvs/7.0.2-src/sys/PCBSD i386
# [0:10:44] /usr>> ping update1.FreeBSD.org
PING update1.FreeBSD.org (72.21.59.252): 56 data bytes
64 bytes from 72.21.59.252: icmp_seq=0 ttl=52 time=200.389 ms
64 bytes from 72.21.59.252: icmp_seq=1 ttl=52 time=201.245 ms
64 bytes from 72.21.59.252: icmp_seq=2 ttl=52 time=198.088 ms
64 bytes from 72.21.59.252: icmp_seq=3 ttl=52 time=199.026 ms
^C
--- update1.FreeBSD.org ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 198.088/199.687/201.245/1.216 ms
Do you have any ideas?

PS: Sorry for my English...
Reply With Quote
  #7  
Old January 4th, 2009, 22:49
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default freebsd-update supported versions

Your problem is different. In your case, updating from 7.1-PRERELEASE is not supported. 7.1-PRERELEASE is just a different name for 7.1-STABLE which is a moving target. A list of supported versions by freebsd-update(8) can be found at http://update.freebsd.org/.

Your options are either to wait for the pc-bsd group to release a new version based on 7.1-RELEASE (which I'm sure they will release soon after the 7.1-RELEASE will be officially announced), or perform the standard csup/buildworld/buildkernel procedure.
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
The Following 2 Users Say Thank You to danger@ For This Useful Post:
Logan (January 5th, 2009), sasha (January 5th, 2009)
  #8  
Old January 5th, 2009, 07:42
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Thank you!
Reply With Quote
  #9  
Old January 5th, 2009, 08:45
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by danger@ View Post
is there any firewall in front of you?
Yes, the server is in a LAN, but has a global IP. FreeBSD vm connect to the internet via NAT.
If the problem is about the Host, I can handle it, e.g. Forwarding some ports.
Otherwise, if it is about the Lan firewall, well, I should try another way.

Can I get the key manually?

192.168.10.1 seems not in my LAN, for I can ping www.google.com successfully.

Thanks.
Reply With Quote
  #10  
Old January 5th, 2009, 09:44
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Logan View Post
Can I get the key manually?
I found the key here: http://update1.freebsd.org/7.1-RELEASE/i386/pub.ssl
Reply With Quote
The Following User Says Thank You to sasha For This Useful Post:
Logan (January 5th, 2009)
  #11  
Old January 5th, 2009, 10:08
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sasha View Post
Thanks.
But where to put the key?
Reply With Quote
  #12  
Old January 5th, 2009, 10:11
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,861
Thanks: 30
Thanked 1,896 Times in 1,338 Posts
Default

Quote:
Originally Posted by Logan View Post
192.168.10.1 seems not in my LAN, for I can ping www.google.com successfully.
I was referring to:

Code:
# ping update1.freebsd.org
PING update1.freebsd.org (72.21.59.252): 56 data bytes
36 bytes from 192.168.10.1: Communication prohibited by filter
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 7075   0 0000  7e  01 b3f9 192.168.211.128  72.21.59.252
That seems to be the host blocking access.
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
Logan (January 5th, 2009)
  #13  
Old January 5th, 2009, 10:14
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
I was referring to:

Code:
# ping update1.freebsd.org
PING update1.freebsd.org (72.21.59.252): 56 data bytes
36 bytes from 192.168.10.1: Communication prohibited by filter
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 7075   0 0000  7e  01 b3f9 192.168.211.128  72.21.59.252
That seems to be the host blocking access.
Yes, I think so. Google told me that some of servers block ICMP, but not all the Communication.

Thanks.
Reply With Quote
  #14  
Old January 5th, 2009, 10:44
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Logan View Post
But where to put the key?
Maybe into /var/db/freebsd-update.

But it will try to fetch a lot of data after - I don't think that manually fetched key will solve your problem.

Can you post output of `uname -a` here?
Reply With Quote
The Following User Says Thank You to sasha For This Useful Post:
Logan (January 5th, 2009)
  #15  
Old January 5th, 2009, 11:35
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sasha View Post
Maybe into /var/db/freebsd-update.

But it will try to fetch a lot of data after - I don't think that manually fetched key will solve your problem.

Can you post output of `uname -a` here?
Of cause.

Code:
FreeBSD  7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
Reply With Quote
  #16  
Old January 5th, 2009, 12:37
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Try `freebsd-update -v debug fetch` and post result here.
Reply With Quote
The Following User Says Thank You to sasha For This Useful Post:
Logan (January 5th, 2009)
  #17  
Old January 5th, 2009, 18:14
tangram's Avatar
tangram tangram is offline
Member
 
Join Date: Nov 2008
Location: Portugal
Posts: 524
Thanks: 13
Thanked 65 Times in 56 Posts
Default

I once had a similar issue.

Try this:

Code:
% su
# env UNAME_r=7.1-PRERELEASE freebsd-update upgrade -r 7.1
Substitute the current and target versions according to you particular system and you should be able to update the system as usual.

Last edited by tangram; January 5th, 2009 at 18:15. Reason: Added code box.
Reply With Quote
The Following User Says Thank You to tangram For This Useful Post:
Logan (January 5th, 2009)
  #18  
Old January 5th, 2009, 18:43
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sasha View Post
Try `freebsd-update -v debug fetch` and post result here.
Code:
# freebsd-update -v debug fetch
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching public key from update1.FreeBSD.org... fetch: http://update1.FreeBSD.org/7.0-RELEASE/i386/pub.ssl: Connection refused
failed.
No mirrors remaining, giving up.
More details. Does it help?

Quote:
Originally Posted by tangram View Post
I once had a similar issue.

Try this:

Code:
% su
# env UNAME_r=7.1-PRERELEASE freebsd-update upgrade -r 7.1
Substitute the current and target versions according to you particular system and you should be able to update the system as usual.
Code:
# env UNAME_r=7.0-RELEASE freebsd-update upgrade -r 7.1
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching public key from update1.FreeBSD.org... failed.
No mirrors remaining, giving up.
#
Reply With Quote
  #19  
Old January 5th, 2009, 19:19
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Connection refused... Very strange. May be your provider had closed access to this server?

Try manually fetch it:
# fetch -vvv http://update1.FreeBSD.org/7.0-RELEASE/i386/pub.ssl

Or you can update with cvsup

# cvsup /usr/share/examples/cvsup/stable-supfile

Also you can do something like this:
http://www.freebsd.org/doc/en_US.ISO...bsdupdate.html
Section 24.2.3.2 (from the CD-ROM)
Reply With Quote
The Following User Says Thank You to sasha For This Useful Post:
Logan (January 5th, 2009)
  #20  
Old January 5th, 2009, 19:56
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

I have got this answer.
Thanks to you all, especially sasha.
There is sth wrong with the LAN, some of the website could be visited directly, some of them counld not, but via a http proxy.

Thanks again. It is my first post here.
Reply With Quote
  #21  
Old January 5th, 2009, 19:57
Logan Logan is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Thanks: 9
Thanked 0 Times in 0 Posts
Default

How to Change to status of this thread to 'solved'?
Reply With Quote
  #22  
Old May 5th, 2009, 12:37
JuniorRoy JuniorRoy is offline
Junior Member
 
Join Date: May 2009
Posts: 1
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Can I join with the same problem? I have DesktopBSD 1.6 and kernel version is:
Code:
FreeBSD HomePC 6.3-RC2 FreeBSD 6.3-RC2 #30: Sun Jan  6 01:54:42 UTC 2008     root@tinderbox.3c-consulting.lokal:/usr/obj/usr/src/sys/SMP  i386
trying to do minor update to 6.4-RELEASE:
Code:
sh freebsd-update.sh -f freebsd-update.conf -r 6.4-REALEASE upgrade
as recommended at http://www.daemonology.net/blog/2007...n-upgrade.html
and get this:
Code:
Looking up update.FreeBSD.org mirrors... 6 mirrors found.
Fetching public key from update5.FreeBSD.org... failed.
Fetching public key from update4.FreeBSD.org... failed.
Fetching public key from update2.FreeBSD.org... failed.
Fetching public key from update3.FreeBSD.org... failed.
Fetching public key from update6.FreeBSD.org... failed.
Fetching public key from update1.FreeBSD.org... failed.
No mirrors remaining, giving up.
What am I doing wrong?
And how can I do the upgrade?
Reply With Quote
  #23  
Old May 5th, 2009, 12:55
sasha's Avatar
sasha sasha is offline
Junior Member
 
Join Date: Dec 2008
Location: Russia, Moscow
Posts: 16
Thanks: 2
Thanked 5 Times in 5 Posts
Default

http://update.freebsd.org/ - Here a list of versions, from which you can update your system using freebsd-update. Unfortunately, 6.3-RC2 is not supported, so you can use cvsup and rebuild everything or reinstall system from CD.
Reply With Quote
The Following User Says Thank You to sasha For This Useful Post:
JuniorRoy (May 5th, 2009)
  #24  
Old February 17th, 2012, 06:57
pete pete is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi!

Code:
phoenix# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... none found.
Fetching public key from portsnap.FreeBSD.org... failed.
No mirrors remaining, giving up.

dig portsnap.freebsd.org +short
208.86.224.118

phoenix# portsnap -s 208.86.224.118 fetch
Looking up 208.86.224.118 mirrors... none found.
Fetching public key from 208.86.224.118... done.
Fetching snapshot tag from 208.86.224.118... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Fri Feb 17 01:13:22 CET 2012:
c878fde6d2fd132543fc7ff786975ddb700fa491b5bb69100% of   66 MB  240 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from 208.86.224.118... done.
Fetching snapshot metadata... done.
Updating from Fri Feb 17 01:13:22 CET 2012 to Fri Feb 17 06:09:40 CET 2012.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 2 patches.. done.
Applying patches... done.
Fetching 0 new ports or files... done.
phoenix# 

Best Regards!

Last edited by DutchDaemon; February 17th, 2012 at 12:03. Reason: Use [code], not [cmd] for output.
Reply With Quote
  #25  
Old September 25th, 2012, 19:10
pete pete is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi!

Code:
phoenix# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... none found.
Fetching metadata signature for 9.0-RELEASE from update.FreeBSD.org... failed.
No mirrors remaining, giving up.
Determine mirror`s IP address :

Code:
phoenix# ping update.FreeBSD.org
PING update.FreeBSD.org (149.20.53.40): 56 data bytes 64 bytes from 149.20.53.40: icmp_seq=0 ttl=54 time=411.142 ms
64 bytes from 149.20.53.40: icmp_seq=1 ttl=54 time=336.141 ms
Modify /etc/freebsd-update.conf:

Code:
# Server or server pool from which to fetch updates.  You can change
# this to point at a specific server if you want, but in most cases
# using a "nearby" server won't provide a measurable improvement in
# performance.
ServerName 149.20.53.40 #update.FreeBSD.org
Or just run :

Code:
phoenix# freebsd-update -s 149.20.53.40 fetch
Looking up 149.20.53.40 mirrors... none found.
Fetching metadata signature for 9.0-RELEASE from 149.20.53.40... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
Best Regards!

Last edited by SirDice; September 26th, 2012 at 08:08. Reason: Proper use of [file] tags: http://forums.freebsd.org/showthread.php?t=8816#file
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to select "primary" video card (not related to sli or crossfire)... edhunter System Hardware 8 January 26th, 2010 07:06
"Invalid address" Running apps via WINE tbyte Installation and Maintenance of FreeBSD Ports or Packages 12 December 14th, 2008 21:27
Trisentry replacement? "portsentry, hostsentry,logsentry" neurosis Networking 3 December 11th, 2008 22:35
"free" command/perl script for freebsd unixdude General 10 November 20th, 2008 10:57
Creating Audio CD "image" files wiscodisco Multimedia 4 November 19th, 2008 17:39


All times are GMT +1. The time now is 21:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0