Solved freebsd-update fetch fails

Hello,

Trying to upgrade a 32 bit system from FreeBSD 10.0-RELEASE-p1 to FreeBSD 10.0-RELEASE-p3:

Code:
# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 10.0-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 15 patches. done.
Applying patches... done.
Fetching 13 files... gunzip: (stdin): unexpected end of file
09839de11c831b4e8352986fca65883955b2550d88c5efb485b56023a381b475 has incorrect hash.

Is there a fix, or should I just wait and try again tomorrow?

Thanks,
sprock
 
Try removing the cache: rm -rf /var/db/freebsd-update/files/*
 
It looks like it's downloading the correct files but at least one of them is cut off. Are there any issues with your internet connection?
 
None of which I'm aware, all seems to be working normally.

I updated a 32 bit machine at work yesterday, perhaps I can get the necessary files from there. If I do that should I just copy the files into the cache and run freebsd-update install?

Thanks again.
sprock
 
I'm not sure but I don't think that'll work. There's a bit more information needed I think.

If this is a work environment, is there perhaps a proxy server inbetween? That might be the cause. It's perfectly fine to proxy freebsd-update(8) but perhaps the proxy isn't passing the data properly.

If you have a few FreeBSD machines it may be worthwhile to configure a cacheing proxy (if you don't have one already), you can cache the data from freebsd-update(8) so it only has to be downloaded from the internet once. Subsequent machines will get their data from the cache. I have this set up for a small internet company and it works quite good.
 
SirDice said:
I'm not sure but I don't think that'll work. There's a bit more information needed I think.

If this is a work environment, is there perhaps a proxy server inbetween? That might be the cause. It's perfectly fine to proxy freebsd-update(8) but perhaps the proxy isn't passing the data properly.

No the problem is on a machine at home; the update worked fine yesterday on a machine at work.

Looks like I'll have to leave it for now.

Thanks,
sprock
 
Good evening,

Similar situation. No problem upgrading four machines from 10.0 to 10.1 but one obstreperous machine refuses to upgrade. Even did the recursive rm -rf to no avail:

Code:
root@BSD10Covet1:~ # freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 10.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 191 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190 done.
Applying patches... done.
Fetching 20 files... gunzip: (stdin): unexpected end of file
2544581725798b5918f1e34c2efa759755470e9e0da5fa9c8a23e4a15fe54a48 has incorrect hash.
root@BSD10Covet1:~ # rm -rf /var/db/freebsd-update/files/*
root@BSD10Covet1:~ # freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 10.0-RELEASE from update3.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 191 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190 done.
Applying patches... done.
Fetching 20 files... gunzip: (stdin): unexpected end of file
2544581725798b5918f1e34c2efa759755470e9e0da5fa9c8a23e4a15fe54a48 has incorrect hash.
root@BSD10Covet1:~ #

Is there a logfile to check as to which of those 20 files is causing issues?

Thanks in advance,
MarkB
 
Update: rm -rf /usr/ports && rm -rf /var/db/freebsd-update/files/* && rm /var/db/portsnap/tag && portsnap fetch extract update then freebsd-update fetch also failed (exact same error as above). Uncle, I give up. Grumble. Now grabbing USB with .img and starting fresh.
 
Try removing the cache: rm -rf /var/db/freebsd-update/files/*

v b t looks like it's downloading the correct files but at least one of them is cut off. Are there any issues with your internet connection?

Мистика с PORTSNAP - forum.lissyara.su wifi up, wifi down, wifi up, wifi down, wifi up, wifi down

Is there a reason my wifi connection would be 100% functional? Let's rethink this. back to bbs: wasn't the rule "continue where you left off" ?

(trying to update from 11.1 to 12.0, i got hung up on at the end, etc. i'm still searching for a more recent thread on how to jump start it - patches were applied but install was never run but something now prevents even beginning the update)
 
Back
Top