In this post:
- FreeBSD 15.0
If you’re running pkgbasify, and you hit this message:
[15:02 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error
… my “fix” was:
[15:04 zuul dvl ~/tmp] % fetch --no-verify-peer https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:04 zuul dvl ~/tmp] % fetch --no-verify-peer https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:04 zuul dvl ~/tmp] % fetch --no-verify-peer https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua pkgbasify.lua 21 kB 25 MBps 00s [15:04 zuul dvl ~/tmp] %
As you can see, it took a few tries to be successful.
So I thought, do I need the –no-verify-peer?
[15:04 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:05 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:05 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:05 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:05 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua pkgbasify.lua 21 kB 59 MBps 00s [15:05 zuul dvl ~/tmp] %
No, I don’t. I just have to keep trying.
But wait, there’s more
If, during the run of pkgbasify, you get an Authentication error, just try again:
[107/332] Fetching FreeBSD-libmagic-15.0: 100% 820 KiB 839.4 kB/s 00:01 [108/332] Fetching FreeBSD-ufs-lib-15.0: 100% 27 KiB 27.4 kB/s 00:01 [109/332] Fetching FreeBSD-nfs-15.0: 100% 169 KiB 173.1 kB/s 00:01 pkg: https://pkgmir.geo.freebsd.org/FreeBSD:15:amd64/base_release_0/Hashed/FreeBSD-libexecinfo-dbg-15.0~f2fa18c92f.pkg: Authentication error Fetching packages failed, try again? (y/n) y
Later, we go:
[120/223] Fetching FreeBSD-bmake-dbg-15.0: 100% 295 KiB 302.3 kB/s 00:01 [121/223] Fetching FreeBSD-hyperv-tools-15.0: 100% 19 KiB 19.4 kB/s 00:01 [122/223] Fetching FreeBSD-powerd-15.0: 100% 12 KiB 12.5 kB/s 00:01 pkg: https://pkgmir.geo.freebsd.org/FreeBSD:15:amd64/base_release_0/Hashed/FreeBSD-libyaml-15.0~30c135ea22.pkg: Authentication error Fetching packages failed, try again? (y/n)
Hit ‘y’ again.
Notice how it’s now 223 packages, not the original 332. It’s grabbing only the ones it didn’t get downloaded…
Again:
[ 63/101] Fetching FreeBSD-bsdinstall-15.0p9: 100% 82 KiB 84.4 kB/s 00:01 [ 64/101] Fetching FreeBSD-tcpd-dbg-15.0: 100% 67 KiB 68.2 kB/s 00:01 [ 65/101] Fetching FreeBSD-lp-dbg-15.0: 100% 302 KiB 308.8 kB/s 00:01 pkg: https://pkgmir.geo.freebsd.org/FreeBSD:15:amd64/base_release_0/Hashed/FreeBSD-zfs-lib-15.0p10~f98e68ab91.pkg: Authentication error Fetching packages failed, try again? (y/n)
Repeat as necessary.











