Bug 191186

Summary: File Contains a Tilde on Line 23017 Which Bombs freebsd-update
Product: Base System Reporter: Miki Janosi <maci61>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Many People    
Priority: Normal    
Version: 9.1-RELEASE   
Hardware: Any   
OS: Any   
URL: http://update.freebsd.org/10.0-RELEASE/i386/m/c27389769fdf447e6a24a567a19a1ef0f9a6241a7c46258f3d851cc72241fc00.gz

Description Miki Janosi 2014-06-19 14:36:34 UTC
When I run freebsd-update -r 10.0-RELEASE upgrade I get the following error:

The update metadata is correctly signed, but failed an integrity check.
Cowardly refusing to proceed any further.

The error code comes from lines 1208-1212 in /usr/sbin/freebsd-update :

        # 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 "$1"
                return 1
        fi

The file it bombs on is c27389769fdf447e6a24a567a19a1ef0f9a6241a7c46258f3d851cc72241fc00.gz

The line it bombs on is 23017 which contains a tilde '~':

src|src|/usr/src/contrib/openpam/m4/lt~obsolete.m4|f|0|0|0644|0|ee8a1723c8c022eb20bb2d03450cc37f92ec6c3db2c7b8c313eb3f5e935249fc|
Comment 1 Glen Barber freebsd_committer freebsd_triage 2014-06-19 14:49:34 UTC
You did not provide which version of FreeBSD you are currently running.

Please see:

http://www.freebsd.org/security/advisories/FreeBSD-EN-13:04.freebsd-update.asc
http://www.freebsd.org/security/advisories/FreeBSD-EN-13:05.freebsd-update.asc
Comment 2 Miki Janosi 2014-06-19 16:14:13 UTC
Ok, thanks, Glen! Doing:

# freebsd-update fetch
# freebsd-update install

fixed it and the upgrade is proceeding.
Comment 3 Miki Janosi 2014-06-19 16:17:20 UTC
(In reply to Glen Barber from comment #1)
> You did not provide which version of FreeBSD you are currently running.
I did in the header:

Version: FreeBSD 9.1-RELEASE