Some problems with pkg ...

By updating the pkgbase - pkg update I get following errors :
Code:
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01    
Fetching data.pkg: 100%   10 MiB   5.3MB/s    00:02    
pkg: Error extracting the archive: 'Write error'
pkg: No signature found
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01    
Fetching data.pkg: 100%   30 KiB  30.3kB/s    00:01    
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 205 packages processed.
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01    
Fetching data.pkg: 100%   10 MiB   5.3MB/s    00:02    
pkg: Error extracting the archive: 'Write error'
pkg: No signature found
FreeBSD repository is up to date.
All repositories are up to date.

I googled around but no clue ....


My FreeBSD.conf :

Code:
FreeBSD: {
  url: "pkg+[URL]http://pkg.freebsd.org/$[/URL]{ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

Regards
 
Hum... There is a discrepancy between your pkg output and your FreeBSD.conf.

You should specify the content of /etc/pkg/FreeBSD.conf (to be sure it's this one) and the content of any files ending by .conf in /usr/local/etc/pkg/repos/.

Also, what's your FreeBSD version?
 
Code:
cat /etc/pkg/FreeBSD.conf
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#   echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD-ports: {
  url: "pkg+[URL]https://pkg.freebsd.org/$[/URL]{ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+[URL]https://pkg.freebsd.org/$[/URL]{ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

Code:
tail -n +2 /usr/local/etc/pkg/repos/*
 FreeBSD : {
url: "pkg+[URL]http://pkg.freebsd.org/$[/URL]{ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

Code:
freebsd-version -kru
15.0-BETA4
15.0-BETA4
15.0-BETA4
 
Last edited by a moderator:
My FreeBSD.conf :
Rich (BB code):
FreeBSD: { url: "pkg+[URL]http://pkg.freebsd.org/$[/URL]{ABI}/latest",
                     ^^^^^                       ^^^^^^^
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes 
}
I have no idea where the indicated (^) "[URL]" and "$[URL]" come from they shouldn't be there. The correct repository name for FreeBSD 15.0's base packages is FreeBSD-base.

When using a pkgbasified 15.0-BETAx version, and using 'latest', you're output should resemble:
Rich (BB code):
[1-0] #  pkg -vv | sed -nE -e '/^OSVERSION|^ABI/ p' -e '/^Repositories:/,$ p'
ABI = "FreeBSD:15:amd64";
OSVERSION = "1500068";
Repositories:
  FreeBSD-ports: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-ports-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

The above is the result when the variables in my original settings:
Rich (BB code):
[4-0] # egrep  -h  '^[^#].*' /usr/local/etc/pkg/repos/*.conf
FreeBSD-ports: {
    url:            "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
    priority:       0,
    mirror_type:    "SRV",
    signature_type: "FINGERPRINTS",
    fingerprints:   "/usr/share/keys/pkg",
    enabled:        yes,
}
FreeBSD-ports-kmods: {
    url:            "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}",
    priority:       0,
    mirror_type:    "SRV",
    signature_type: "FINGERPRINTS",
    fingerprints:   "/usr/share/keys/pkg"
    enabled:        yes,
}
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes,
}
are expanded by using pkg -vv.
Adjust your pkg conf settings accordingly.
 
This is not a pkgbasified 15.0-BETAx version
By updating the pkgbase - pkg update I get following errors :
The last quote suggests that you are using pkg to update something which has to do with base packages. To upgrade base packages with pkg, I'd switch to an actual package based base system.

If you want to use base packages, I suggest you run pkgbasify

P.S. There have been messages that a 'new' (/adjusted) form of freebsd-update is under development to function in a way resembling freebsd-update(8) of the 14 branch. This new freebsd-update, however, will be based on the underlying package system as far as I know. I'm not aware of its current status.

I've come from 14.2-RELEASE (non-pkgbasified) -> freebsd-update ... -> 15.0-BETA1 -> adjust repository settings -> pkgbasify -> pkg upgrade -r FreeBSD-base. Currently at 15.0-BETA5.
 
1. Removed the file in
Code:
 /usr/local/etc/pkg/
. Won't work.

2. Installed new version of pkg through ports. Won't work either.

That was not my first choice but I think I will use pkgbasify
 
If it is your new system/install , then may try with fresh clean install from 14.3-RELEASE. If it working properly then you may upgrade to 15-RELEASE when available.
 
Back
Top