Difficulty upgrading to 14.3 from 14.2

Over the past few days, I have attempted to freebsd-update -r 14.3-RELEASE upgrade from 14.2-p3.

Every attempt results in this error, among others:
Code:
"Installing updates.../usr/sbin/freebsd-update: cannot open INDEX-NEW: No such file or directory

/usr/sbin/freebsd-update: cannot open INDEX-NEW: No such file or directory

sort: No such file or directory'
Obviously, some pointer somewhere is not correct, but I have, so far, not been able to find it.

Then, when I attempt to upgrade my packages, here is what happens:
Code:
root@KensOffice:/ # pkg upgrade
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
pkg: packagesite URL error for pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/meta.conf[/URL] -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/meta.txz[/URL] -- pkg+:// implies SRV mirror type
repository FreeBSD has no meta file, using default settings
pkg: packagesite URL error for pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/data.pkg[/URL] -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/data.tzst[/URL] -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/packagesite.pkg[/URL] -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/packagesite.tzst[/URL] -- pkg+:// implies SRV mirror type
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
Unable to update repository FreeBSD-kmods
Error updating repositories!
In

Any help here?

Ken Gordon
 
Sorry, this is just another one for the books... freebsd-update(8) is oversold without regard for the mess that pkg(8) infrastructure is these days, and without regard for the fact that a lot of hardware drivers are in fact kernel-dependent.

I personally recommend making a good backup of stuff you don't wanna lose, take a deep breath, and go for a clean reinstall from scratch, just with 14.3-RELEASE (or better yet, with 15.0-RELEASE when it drops in December).
 
Thank you for the advice. I may end up doing just that.

However, I DID discover (after much searching) that the main reason for my problems was that the pointers to the URLs where the files needed to be downloaded from, all FreeBSD.conf files, were written like this:

pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}

When, instead, they SHOULD all be like this:

https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}

without the pkg+ bit in front.

After editing those files, pkg update worked, and also freebsd-update -r 14.3-RELEASE upgrade also worked, up until it came time to do FreeBSD-kmod, where both fail.

I am still having GREAT difficulty finding the pointer to the FreeBSD-kmod files, and have so far had zero luck finding that one. :-(

That one still contains the darned pkg+ bit

Might you have any idea where to find that one?

Ken Gordon
 
This is the default configuation for pkg(8).
Rich (BB code):
#
# 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+https://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

For freebsd-update(8), please provide the full output of the command.
 
This is the default configuation for pkg(8).
Rich (BB code):
#
# 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+https://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

For freebsd-update(8), please provide the full output of the command.
The above is not for 14.3-RELEASE; this is the default for FreeBSD 15 onwards, where FreeBSD-ports and FreeBSD-ports-kmods are the new names for the two repositories for packages from the ports tree.

See message #69 and the following #70 how you can check your settings.
 
Back
Top