can't upgrade to 11.1-STABLE using freebsd-update

Hi,

after 20 years of using linux I decided this week to start using FreeBSD on some of my machines. Learning progresses, but I stumbled upon a problem I can't solve (handbook read, forum searched).

The problem is I can't upgrade to 11.1-STABLE using freebsd-update (I know I can do it using source, but wanted to try freebsd-update approach first).

Do I do something wrong?

Data for analysis below, machine is currently 11.1-RELEASE, still quite pristine.

Code:
[root@lithium /usr/src]# uname -a
FreeBSD lithium 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
[root@lithium /usr/src]# freebsd-version
11.1-RELEASE-p1
[root@lithium /usr/src]# freebsd-update -r 11.1-STABLE upgrade
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 11.1-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/src world/base

The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/doc world/lib32 world/lib32-dbg

Does this look reasonable (y/n)? y

Fetching metadata signature for 11.1-STABLE from update4.freebsd.org... failed.
Fetching metadata signature for 11.1-STABLE from update5.freebsd.org... failed.
Fetching metadata signature for 11.1-STABLE from update6.freebsd.org... failed.
Fetching metadata signature for 11.1-STABLE from update3.freebsd.org... failed.
No mirrors remaining, giving up.
[root@lithium /usr/src]#
[root@lithium /usr/src]# svnlite info
Path: .
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/releng/11.1
Relative URL: ^/releng/11.1
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 322974
Node Kind: directory
Schedule: normal
Last Changed Author: delphij
Last Changed Rev: 322342
Last Changed Date: 2017-08-10 08:59:07 +0200 (Thu, 10 Aug 2017)

[root@lithium /usr/src]# svnlite update
Updating '.':
At revision 322975.
 
freebsd-update can be used only for RELEASE version of FreeBSD. If you want to "move" to STABLE you have to use sources (/usr/src/).
 
Thank you guys. I was mistaken by some other forum posts that it's possible. Proceeding to source operation.
Should I now change thread title prefix to 'SOLVED' even as it was my mistake?

Also, would it be sensible for me to submit to CURRENT patch for freebsd-update to return more meaningful error message in case different branch then RELEASE is used in -r upgrade ?
 
Also, would it be sensible for me to submit to CURRENT patch for freebsd-update to return more meaningful error message in case different branch then RELEASE is used in -r upgrade ?
Keep in mind that despite what their names might suggest both STABLE and CURRENT are developer snapshots. This is also the reason why you can't use freebsd-update. Why would you even want to use those? Note that there isn't even any guarantee that those versions will run at all on your setup.

So if you want to use / try FreeBSD and you're new to this then definitely stick with the commonly supported releases for now. So at the time of writing either 10.3 or 11.1.
 
Nothing wrong with running -STABLE. I've been running -STABLE since the FreeBSD 3.x era. The nice thing about -STABLE is that you get all the bug fixes and new features without the inherent instability of -CURRENT. I won't recommend it for production machines as it's a little difficult to keep track. But for testing or your home server, sure, why not?
 
Back
Top