Date: Wed, 14 Feb 2018 16:12:08 -0800 From: Doug Hardie <bc979@lafn.org> To: "Randal L. Schwartz" <merlyn@stonehenge.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: any problem going from 9.x (don't laugh) to 11 directly? Message-ID: <CBD0F80A-3366-4256-9F52-2B5EC236BA76@mail.sermon-archive.info> In-Reply-To: <86lgfvi20e.fsf@red.stonehenge.com> References: <86lgfvjk6c.fsf@red.stonehenge.com> <7F0B2921-9F04-4E15-BD0F-17A0EA8E953B@mail.sermon-archive.info> <86lgfvi20e.fsf@red.stonehenge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CBD0F80A-3366-4256-9F52-2B5EC236BA76>