I'm running FreeBSD 15.1-RELEASE (p3) on aarch64, and use the latest packages. This was working fine until today, when I tried to upgrade my packages with pkg upgrade -y when I got the message that pkg: Repository FreeBSD-ports-kmods has a wrong packagesite, need to re-create database and refused to upgrade the packages. I was also unable to install new packages due to the same error.
I have attached my usual /usr/local/etc/pkg/repos/FreeBSD.conf, but it is identical to /etc/pkg/FreeBSD.conf with quarterly replaced with latest. It had been working fine since I upgraded from FreeBSD 14 to 15 in October last year.
Not knowing what to do, I saved the output of pkg info, and decided to remove my pkg database and reinstall my packages, including recreating /usr/local/etc/pkg/repos/FreeBSD.conf just in case. However, this did not fix it, and now I get a pkg: Repository FreeBSD-ports cannot be opened. 'pkg update' required error instead (and pkg update does not resolve it).
Here is the output of my attempt:
As you can see, two of the errors match those in this thread:
However, my FreeBSD.conf seems fine.
If I remove /var/db/pkg and /usr/local/etc/pkg/repos/FreeBSD.conf, I can install quarterly packages, so it doesn't make sense to me that the rest of the packages site wouldn't be accessible to pkg, especially as I can browse the site in my web browser on another machine on the LAN.
I have even tried removing /usr/local/sbin/pkg, and running pkg bootstrap again, but nothing changes.
Does anyone know what is going on? Could it be related to the other thread? Is there something I missed when removing the old pkg database?
I have attached my usual /usr/local/etc/pkg/repos/FreeBSD.conf, but it is identical to /etc/pkg/FreeBSD.conf with quarterly replaced with latest. It had been working fine since I upgraded from FreeBSD 14 to 15 in October last year.
Not knowing what to do, I saved the output of pkg info, and decided to remove my pkg database and reinstall my packages, including recreating /usr/local/etc/pkg/repos/FreeBSD.conf just in case. However, this did not fix it, and now I get a pkg: Repository FreeBSD-ports cannot be opened. 'pkg update' required error instead (and pkg update does not resolve it).
Here is the output of my attempt:
Code:
# pkg delete -afy
# rm -rf /var/db/pkg
# rm /usr/local/etc/pkg/repos/FreeBSD.conf
# awk '{gsub(/quarterly/,"latest"); print}' /etc/pkg/FreeBSD.conf > /usr/local/etc/pkg/repos/FreeBSD.conf
# pkg install tmux
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100% 168 B 0.2 kB/s 00:01
Fetching data: 100% 9167 KiB 2.4 MB/s 00:04
pkg: repository archive entry is too large: data
pkg: No signature found
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
Fetching meta.conf: 100% 179 B 0.2 kB/s 00:01
Fetching data: 100% 17 KiB 17.5 kB/s 00:01
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 80 packages processed.
All repositories are up to date.
pkg: Repository FreeBSD-ports cannot be opened. 'pkg update' required
pkg: No packages available to install matching 'tmux' have been found in the repositories
# pkg update
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100% 168 B 0.2 kB/s 00:01
Fetching data: 100% 9167 KiB 1.9 MB/s 00:05
pkg: repository archive entry is too large: data
pkg: No signature found
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
# pkg install tmux
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100% 168 B 0.2 kB/s 00:01
Fetching data: 100% 9167 KiB 1.9 MB/s 00:05
pkg: repository archive entry is too large: data
pkg: No signature found
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
pkg: Repository FreeBSD-ports cannot be opened. 'pkg update' required
pkg: No packages available to install matching 'tmux' have been found in the repositories
As you can see, two of the errors match those in this thread:
Code:
pkg: repository archive entry is too large: data
pkg: No signature found
However, my FreeBSD.conf seems fine.
If I remove /var/db/pkg and /usr/local/etc/pkg/repos/FreeBSD.conf, I can install quarterly packages, so it doesn't make sense to me that the rest of the packages site wouldn't be accessible to pkg, especially as I can browse the site in my web browser on another machine on the LAN.
I have even tried removing /usr/local/sbin/pkg, and running pkg bootstrap again, but nothing changes.
Does anyone know what is going on? Could it be related to the other thread? Is there something I missed when removing the old pkg database?