Bug 211398 - freebsd-update cannot update from 9.3 to 11.0-BETA2
Summary: freebsd-update cannot update from 9.3 to 11.0-BETA2
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 9.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-27 00:21 UTC by bc979
Modified: 2017-06-15 22:35 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bc979 2016-07-27 00:21:17 UTC
I installed the patches from the EN for freebsd-update today on a number of systems.  The one system running 11.0-BETA1 then was able to upgrade to BETA2 with no problems.  However, none of the 9.3 systems would upgrade.  This is what happened on each of them:

mail# uname -a
FreeBSD mail 9.3-RELEASE-p43 FreeBSD 9.3-RELEASE-p43 #0: Sat May 28 00:19:32 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
mail# freebsd-update upgrade -r 11.0-BETA2
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 9.3-RELEASE from update6.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base

The following components of FreeBSD do not seem to be installed:
world/doc world/games world/lib32

Does this look reasonable (y/n)? y

Fetching metadata signature for 11.0-BETA2 from update6.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
Comment 1 bc979 2016-07-31 00:38:38 UTC
Just tried this afternoon upgrading to BETA3.  Same issue.
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2016-08-07 06:38:32 UTC
Please check if applying the small fix from

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211354

helps.
Comment 3 Xin LI freebsd_committer freebsd_triage 2016-08-07 07:03:20 UTC

*** This bug has been marked as a duplicate of bug 211354 ***
Comment 4 bc979 2016-08-07 08:03:41 UTC
Sorry - but that patch was already installed.  freebsd-update still does not work.  This bug is not fixed.  I installed the EN before even trying the update.  It may duplicate that other bug report, but the cause is not the same.
Comment 5 Xin LI freebsd_committer freebsd_triage 2016-08-07 08:13:04 UTC
(In reply to bc979 from comment #4)

Can you try applying this? (r279901)

Index: head/usr.sbin/freebsd-update/freebsd-update.sh
===================================================================
--- head/usr.sbin/freebsd-update/freebsd-update.sh      (revision 279900)
+++ head/usr.sbin/freebsd-update/freebsd-update.sh      (revision 279901)
@@ -1231,7 +1231,7 @@ fetch_metadata_sanity () {
        # Some aliases to save space later: ${P} is a character which can
        # appear in a path; ${M} is the four numeric metadata fields; and
        # ${H} is a sha256 hash.
-       P="[-+./:=%@_[~[:alnum:]]"
+       P="[-+./:=,%@_[~[:alnum:]]"
        M="[0-9]+\|[0-9]+\|[0-9]+\|[0-9]+"
        H="[0-9a-f]{64}"
Comment 6 bc979 2016-08-07 09:26:51 UTC
I don't have src on the system, but edited the actual file.  The lines were a little off, but it was easy to find the right place.  r279901 seems to have fixed the problem.  I have only tested one system, but it is now downloading files for the update.  Looks like it will take hours ;-).  Thanks for the help.
Comment 7 rainer 2016-08-22 22:16:13 UTC
The is also a problem on 10.1.
Without replacing that line in 10.1-RELEASE-p37 (i.e. with the EN installed), I cannot upgrade it to 11.0-RC1.
10.1->10.3->11.0-RC1 is no problem.
Comment 8 Jochen Neumeister freebsd_committer freebsd_triage 2016-08-26 10:24:23 UTC
The same here from 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264 to FreeBSD 11.0 RC2:

 # freebsd-update upgrade -r 11.0-RC2
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from update5.freebsd.org... done.
Fetching metadata signature for 10.3-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base

The following components of FreeBSD do not seem to be installed:
world/doc world/games world/lib32

Does this look reasonable (y/n)? y

Fetching metadata signature for 11.0-RC2 from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
root@irc-vServer:/usr/home/joneum # rehash 
root@irc-vServer:/usr/home/joneum # freebsd-update upgrade -r 11.0-RC2
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 10.3-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base

The following components of FreeBSD do not seem to be installed:
world/doc world/games world/lib32

Does this look reasonable (y/n)? y

Fetching metadata signature for 11.0-RC2 from update4.freebsd.org... done.
Fetching metadata index... done.

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
Comment 9 Jochen Neumeister freebsd_committer freebsd_triage 2016-08-26 12:00:54 UTC
first, i updated to 10.3-p7, and than, the Update to 11.0-RC2 works for me
Comment 10 bc979 2016-08-27 00:24:00 UTC
That approach works if your hardware will boot on 10.x.  Mine will not boot.  It boots fine on 9.x and 11.0-x.  The patch was required to upgrade.
Comment 11 Filipp Lepalaan 2016-11-09 21:14:03 UTC
This patch helped me get from 10.3-RELEASE-p41 to 11.0-RELEASE. Thank you!
Comment 12 Jochen Neumeister freebsd_committer freebsd_triage 2017-06-15 15:32:49 UTC
I think, we can close here?
Comment 13 bc979 2017-06-15 22:30:31 UTC
It might be considered OBE, but I still get an occasional request for assistance with the conversion.  There never was an update to 9.3 to fix the problem.  I suspect it may no longer be worth the effort to correct that.
Comment 14 Xin LI freebsd_committer freebsd_triage 2017-06-15 22:35:00 UTC
This is WAI.  Do not skip major release when upgrading.