Bug 191186 - File Contains a Tilde on Line 23017 Which Bombs freebsd-update
Summary: File Contains a Tilde on Line 23017 Which Bombs freebsd-update
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Many People
Assignee: freebsd-bugs (Nobody)
URL: http://update.freebsd.org/10.0-RELEAS...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-19 14:36 UTC by Miki Janosi
Modified: 2014-06-19 16:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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