freebsd-update fails to fetch metadata files

Hi,

12.0-p10 system. This was arrived at by upgrading an old 12-stable system (r349995)

# freebsd-version -ku
12.0-RELEASE-p10
12.0-RELEASE-p10

# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... failed.

deleting and re-creating /var/db/freebsd-update makes no difference. There's plenty of disk space.

There's a few reports of this but never a fix, and not for this version. How to fix?

thanks
 
I remembered - phttpget was missing

so the fix is
cd /usr/src/usr.sbin/portsnap/phttpget && make && make install
 
Why would it be 'missing'? Did you remove it?
not directly. It was an old 12-stable system that I wanted to bring up to 12.0-p10 so the OS could be managed with freebsd-update. It had, as 12-stable, WITHOUT_FREEBSD_UPDATE defined in /etc/src.conf. I removed it before getting 12.0-p10 sources

But it seems that even in removing WITHOUT_FREEBSD_UPDATE, downloading sources and building/installing everything, freebsd-update wasn't automatically made [and I don't know why that would be]. So in the end, I had to do the following to get a working freebsd-update:

1. cd /usr/src/usr.sbin/freebsd-update
2. make && make install
3. cd /usr/src/usr.sbin/portsnap/phttpget
4. make && make install
 
Back
Top