From owner-freebsd-questions@freebsd.org Thu Feb 15 00:12:10 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13A8BF0940B for ; Thu, 15 Feb 2018 00:12:10 +0000 (UTC) (envelope-from srs0=gzmm=fj=mail.sermon-archive.info=doug@sermon-archive.info) Received: from mail.sermon-archive.info (sermon-archive.info [71.177.216.148]) by mx1.freebsd.org (Postfix) with ESMTP id 875547530D for ; Thu, 15 Feb 2018 00:12:09 +0000 (UTC) (envelope-from srs0=gzmm=fj=mail.sermon-archive.info=doug@sermon-archive.info) Received: from [10.0.1.251] (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 3zhcCX5K9Bz2fk0r; Wed, 14 Feb 2018 16:12:08 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: any problem going from 9.x (don't laugh) to 11 directly? From: Doug Hardie In-Reply-To: <86lgfvi20e.fsf@red.stonehenge.com> Date: Wed, 14 Feb 2018 16:12:08 -0800 Cc: FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <86lgfvjk6c.fsf@red.stonehenge.com> <7F0B2921-9F04-4E15-BD0F-17A0EA8E953B@mail.sermon-archive.info> <86lgfvi20e.fsf@red.stonehenge.com> To: "Randal L. Schwartz" X-Mailer: Apple Mail (2.3445.5.20) X-Virus-Scanned: clamav-milter 0.99.2 at mail X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2018 00:12:10 -0000 I can't find the original email, but here is what I did find via google: 10.0-RELEASE is no longer supported, which means you didn't get the = important FreeBSD-EN-16:09.freebsd-update errata fix for freebsd-update. You'll have to patch freebsd-update manually. Open up = /usr/sbin/freebsd-update, and in the function fetch_metadata_sanity(), = you'll see this: # Check that the first four fields make sense. if gunzip -c < files/$1.gz | grep -qvE "^[a-z]+\|[0-9a-z]+\|${P}+\|[fdL-]\|"; then fetch_metadata_bogus "" return 1 fi Add a hyphen at the end of [0-9a-z] like so: grep -qvE "^[a-z]+\|[0-9a-z-]+\|${P}+\|[fdL-]\|"; then Save, and now it should work. =E2=80=A2 permalink =E2=80=A2 embed =E2=80=A2 save =E2=80=A2 parent [=E2=80=93]ddp 2 points 1 year ago=20 Unfortunately that didn't resolve it; same failure. # Check that the first four fields make sense. = =20 if gunzip -c < files/$1.gz | grep -qvE "^[a-z]+\|[0-9a-z-]+\|${P}+\|[fdL-]\|"; then fetch_metadata_bogus "" return 1 fi =E2=80=A2 permalink =E2=80=A2 embed =E2=80=A2 save =E2=80=A2 parent [=E2=80=93]DaemonWithin 2 points 1 year ago*=20 It's definitely failing within fetch_metadata_sanity() somewhere.=20 Does /var/db/freebsd-update/sanitycheck.tmp exist when freebsd-update = exits? If so, post its contents. If not, then it's failing at the point = you quoted. (Incidentally, bspatch isn't executed yet, so the problem = isn't connected to your truncating bspatch.) Also, post your /usr/sbin/freebsd-update to pastebin or something. I'll = compare it with my later version. =E2=80=A2 permalink =E2=80=A2 embed =E2=80=A2 save =E2=80=A2 parent [=E2=80=93]ddp 2 points 1 year ago*=20 I don't have a sanitycheck.tmp there. http://pastebin.com/A1MGqr3L =E2=80=A2 permalink =E2=80=A2 embed =E2=80=A2 save =E2=80=A2 parent [=E2=80=93]DaemonWithin 4 points 1 year ago*=20 I think I've found the problem. In the same function, fetch_metadata_sanity(), add a comma to this: P=3D"[-+./:=3D%@_[~[:alnum:]]" like so: P=3D"[-+./:=3D,%@_[~[:alnum:]]" The comma doesn't exist before 10.2, explaining why some people are = having luck upgrading to 10.3 first. If that's what the problem is, then = I'd say an errata needs to be released for the still-supported 10.1 and = 9.3. There are two patches there. The second may be all that you need. I = just don't recall if I used the first one also. There is a Bug report: = Bug 211398 that has the original patch that I used. Note, that the line = numbers were not exactly the same for any of my systems. =20 -- Doug