pkg: cannot parse fingerprints: error while parsing <unknown>: line: 1, column: 0 - 'key must begin with a letter', character: '-' #3

Open
opened 9 months ago by grahamperrin · 3 comments

From https://codeberg.org/pkgbase/website/pulls/1#issue-54568:

Should I be concerned by … line 5?

% sudo pkg update
grahamperrin's password:
Updating FreeBSD repository catalogue...
Fetching packagesite.txz: 100%    6 MiB   6.4MB/s    00:01    
pkg: cannot parse fingerprints: error while parsing <unknown>: line: 1, column: 0 - 'key must begin with a letter', character: '-'
Processing entries: 100%
The provides database is up-to-date.
FreeBSD repository update completed. 30214 packages processed.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
% sh
$ sudo -H bectl jail -o host=inherit \
>     -o ip4=inherit -o ip6=inherit \
>     -o allow.chflags=1 PkgBase
# whoami
root
# pkg update -r FreeBSD-base
No repositories are enabled.
# exit
jail: /bin/sh: failed
$ exit
% 
From <https://codeberg.org/pkgbase/website/pulls/1#issue-54568>: > Should I be concerned by … line 5? ```text % sudo pkg update grahamperrin's password: Updating FreeBSD repository catalogue... Fetching packagesite.txz: 100% 6 MiB 6.4MB/s 00:01 pkg: cannot parse fingerprints: error while parsing <unknown>: line: 1, column: 0 - 'key must begin with a letter', character: '-' Processing entries: 100% The provides database is up-to-date. FreeBSD repository update completed. 30214 packages processed. Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. Updating poudriere repository catalogue... poudriere repository is up to date. All repositories are up to date. % sh $ sudo -H bectl jail -o host=inherit \ > -o ip4=inherit -o ip6=inherit \ > -o allow.chflags=1 PkgBase # whoami root # pkg update -r FreeBSD-base No repositories are enabled. # exit jail: /bin/sh: failed $ exit % ```
Poster

I have seen this a few times, most recently this morning (below).

Probably in all cases, the line appears before the apparent check of FreeBSD-base.

As if the error occurs with the FreeBSD repository but only (and only occasionally) after there's a base.conf alongside FreeBSD.conf at /usr/local/etc/pkg/repos/.

It's curious, but not a concern.

root@mowa219-gjp4-8570p:~ # pkg update
Updating FreeBSD repository catalogue...
Fetching packagesite.txz: 100%    6 MiB   6.4MB/s    00:01    
pkg: cannot parse fingerprints: error while parsing <unknown>: line: 1, column: 0 - 'key must begin with a letter', character: '-'
Processing entries: 100%
Fetching provides database: 100%   14 MiB   7.3MB/s    00:02    
Extracting database....success
FreeBSD repository update completed. 30278 packages processed.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
root@mowa219-gjp4-8570p:~ # 
% ls -hlrt /usr/local/etc/pkg/repos/
total 1
-rw-r--r--  1 root  wheel    30B  1 Feb  2019 FreeBSD.conf
-rw-r--r--  1 root  wheel   138B 12 Jan 14:25 poudriere.conf
-rw-r--r--  1 root  wheel   208B  7 Mar 01:41 base.conf
-rw-------  1 root  wheel    11M  7 Mar 10:00 bectl.core
% cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
    priority: 3,
}
% cat /usr/local/etc/pkg/repos/poudriere.conf
poudriere: {
        url: "file:///usr/local/poudriere/data/packages/main-default",
        enabled: yes,
        priority: 4,
        CONSERVATIVE_UPGRADE: false,
}
% cat /usr/local/etc/pkg/repos/base.conf
# FreeBSD pkgbase repo

FreeBSD-base: {
  url: "https://alpha.pkgbase.live/current/${ABI}/latest",
  signature_type: "pubkey",
  pubkey: "/usr/share/keys/pkg/trusted/alpha.pkgbase.live.pub",
  enabled: yes
}
% cat /etc/pkg/FreeBSD.conf 
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
% 
I have seen this a few times, most recently this morning (below). Probably in all cases, the line appears **before** the apparent check of `FreeBSD-base`. As if the error occurs with the `FreeBSD` repository _but only_ (and only occasionally) after there's a `base.conf` alongside `FreeBSD.conf` at `/usr/local/etc/pkg/repos/`. It's curious, but not a concern. ```text root@mowa219-gjp4-8570p:~ # pkg update Updating FreeBSD repository catalogue... Fetching packagesite.txz: 100% 6 MiB 6.4MB/s 00:01 pkg: cannot parse fingerprints: error while parsing <unknown>: line: 1, column: 0 - 'key must begin with a letter', character: '-' Processing entries: 100% Fetching provides database: 100% 14 MiB 7.3MB/s 00:02 Extracting database....success FreeBSD repository update completed. 30278 packages processed. Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. Updating poudriere repository catalogue... poudriere repository is up to date. All repositories are up to date. root@mowa219-gjp4-8570p:~ # ``` ```text % ls -hlrt /usr/local/etc/pkg/repos/ total 1 -rw-r--r-- 1 root wheel 30B 1 Feb 2019 FreeBSD.conf -rw-r--r-- 1 root wheel 138B 12 Jan 14:25 poudriere.conf -rw-r--r-- 1 root wheel 208B 7 Mar 01:41 base.conf -rw------- 1 root wheel 11M 7 Mar 10:00 bectl.core % cat /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD: { priority: 3, } % cat /usr/local/etc/pkg/repos/poudriere.conf poudriere: { url: "file:///usr/local/poudriere/data/packages/main-default", enabled: yes, priority: 4, CONSERVATIVE_UPGRADE: false, } % cat /usr/local/etc/pkg/repos/base.conf # FreeBSD pkgbase repo FreeBSD-base: { url: "https://alpha.pkgbase.live/current/${ABI}/latest", signature_type: "pubkey", pubkey: "/usr/share/keys/pkg/trusted/alpha.pkgbase.live.pub", enabled: yes } % cat /etc/pkg/FreeBSD.conf # $FreeBSD$ # # To disable this repository, instead of modifying or removing this file, # create a /usr/local/etc/pkg/repos/FreeBSD.conf file: # # mkdir -p /usr/local/etc/pkg/repos # echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf # FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } % ```
Owner

let's submit this bug to the freebsd/pkg repo the

let's submit this bug to the freebsd/pkg repo the
Poster
[254434 – ports-mgmt/pkg pkg: cannot parse fingerprints: error while parsing <unknown>: line: 1, column: 0 - 'key must begin with a letter', character: '-'](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254434)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.