Today I removed and added the same package. The add failed.
Background:
- I install from my own custom package repo server
- I do not install from the FreeBSD package servers
- My packages are built via poudriere
- The same basic repo configuration file has been in use for years
This is what I just encountered:
[tallboy dan ~] % sudo pkg install postfix Updating local repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.pkg: 100% 272 KiB 278.4kB/s 00:01 Processing entries: 100% local repository update completed. 1039 packages processed. All repositories are up to date. New version of pkg detected; it needs to be installed first. The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: pkg: 1.19.1_1 -> 1.20.2 Number of packages to be upgraded: 1 The process will require 1 MiB more space. 9 MiB to be downloaded. Proceed with this action? [y/N]: y [1/1] Fetching pkg-1.20.2.pkg: 100% 9 MiB 4.5MB/s 00:02 Checking integrity... done (0 conflicting) [1/1] Upgrading pkg from 1.19.1_1 to 1.20.2... [1/1] Extracting pkg-1.20.2: 100% Updating local repository catalogue... pkg: No SRV record found for the repo 'local' pkg: packagesite URL error for pkg+https://fedex.unixathome.org/packages/FreeBSD:13:amd64//packagesite.pkg -- pkg+:// implies SRV mirror type pkg: packagesite URL error for pkg+https://fedex.unixathome.org/packages/FreeBSD:13:amd64//packagesite.txz -- pkg+:// implies SRV mirror type Unable to update repository local Error updating repositories!
This repo configuration has been been in use for years:
[tallboy dan /usr/local/etc] % cat /usr/local/etc/pkg/repos/local.conf local: { url: "pkg+https://fedex.unixathome.org/packages/${ABI}/" mirror_type: "src", signature_type: "PUBKEY", pubkey: "/etc/ssl/slocum.unixathome.org.cert", enabled: true }
I wasn’t sure what to change. I removed the mirror_type directive and tried again:
[tallboy dan /usr/local/etc] % sudo pkg install postfix Updating local repository catalogue... pkg: packagesite URL error for pkg+https://fedex.unixathome.org/packages/FreeBSD:13:amd64/meta.conf -- pkg+:// implies SRV mirror type pkg: packagesite URL error for pkg+https://fedex.unixathome.org/packages/FreeBSD:13:amd64/meta.txz -- pkg+:// implies SRV mirror type repository local has no meta file, using default settings pkg: packagesite URL error for pkg+https://fedex.unixathome.org/packages/FreeBSD:13:amd64/packagesite.pkg -- pkg+:// implies SRV mirror type pkg: packagesite URL error for pkg+https://fedex.unixathome.org/packages/FreeBSD:13:amd64/packagesite.txz -- pkg+:// implies SRV mirror type Unable to update repository local Error updating repositories!
Same problems, but note that the pkg: No SRV record found for the repo ‘local’ line is gone.
Let’s remove pkg+ and try again:
[tallboy dan /usr/local/etc] % sudo pkg install postfix Updating local repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.pkg: 100% 272 KiB 278.4kB/s 00:01 Processing entries: 100% local repository update completed. 1039 packages processed. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: postfix: 3.8.1,1 Number of packages to be installed: 1 The process will require 7 MiB more space. Proceed with this action? [y/N]: y
Success. I’m going to guess that recent pkg changes have caused this issue.
Next for me: Update all my hosts with a new package repo configuration file.