9237
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi!
I tried to upgrade from 7.2. to 7.3 using freebsd-update on the remote host over ssh. Unfortunately I didn't use "screen"-like tool and when I was merging configuration files SSH-connection was closed because of network problems. After I reconnected I noticed that there is no more running freebsd-update script and when I tried to run It again, I got: Code:
# freebsd-update upgrade -r 7.3-RELEASE Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 7.2-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin world/base world/dict world/games world/info world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: world/catpages world/doc Does this look reasonable (y/n)? y Fetching metadata signature for 7.3-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... gunzip: data stream error metadata is corrupt. Any ideas? Best regards, |
|
#2
|
|||
|
|||
|
I had the same problem.
I looked at the relevant part of the freebsd-update shells script (search exactly for "metadata is corrupt") and that part of the code downloads some .gz files, whose names are their sha256 hashes - so for example 60a4e27e4126f4e53cef56ac88437040773513fc30aae3f5c4 a48538edeba44f.gz After downloading and before unzipping, it runs sha256 to see if the hash of the file matches its name, and if it doesnt, that error is thrown. In my case, I believe it was because during the upgrade I had some packet loss and high latency, so the files downloaded were themselves corrupt. I tried rerunning freebsd-update 3 times, and third time it worked, so I think its really matter of retrying utnil you get it. You can also put some sort of an echo statement within that part of the code in freebsd-update and try to download and verify the files yourself. Hope it helps! Last edited by DutchDaemon; January 21st, 2012 at 19:20. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] FreeBSD Openssh upgrade/update | Janice | Installing & Upgrading | 14 | October 20th, 2011 23:53 |
| 'freebsd-update -r 7.1-RELEASE upgrade' in jail | noobster | Installing & Upgrading | 5 | February 28th, 2010 05:14 |
| Upgrade from 5.4 using freebsd-update? | misschristylea | Installing & Upgrading | 4 | April 2nd, 2009 15:47 |
| freebsd-update upgrade best practices | alief | Installing & Upgrading | 6 | December 9th, 2008 12:09 |
| FreeBSD-update fails downloading upgrade information | Steije | Installing & Upgrading | 3 | November 25th, 2008 20:12 |