Solved Unable to update to 15.0-RELEASE-p4

I have a system that I updated to 15.0 with freebsd-update and then afterwords, used pkgbasify to change it to update with pkg.
It's worked to get me up to 15.0-RELEASE-p2. After seeing the security update notices, I went to update by running pkg update, pkg upgrade.
However, it is showing that all packages are up to date.
As far as I know, once one has switched to packages, you can't go back to freebsd-update. I think my /usr/local/etc/pkg/repos/FreeBSD is correct.
I have

FreeBSD-ports: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-kmods: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-base: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
enabled: no
}

I also have in that directory a FreeBSD-base.conf file which reads

FreeBSD-base: {
enabled: yes
}
[/icode]

As far as I understand this should take precedence over /etc/pkg/FreeBSD.conf which is just about identical to the /usr/local/etc/pkg/repos/FreeBSD.conf

I figure I'm missing something obvious, but don't know what. Earlier, I'd had a problem where running pkg update and pkg upgrade kept showing a bunch of conflicts because I'd apparently misconfigured the FreeBSD.conf file, having, for the first stanza, FreeBSD: rather than FreeBSD-ports. I fixed that with the help of the forum and all seemed fine, save that no upgrades are shown after running pkg update, pkg upgrade.

I don't know what my next step should be.
 
Hrrm, I just did that. Now I know I messed up somewhere because I ran
Code:
pkg upgrade -r FreeBSD-base

and I get a message of
Code:
No repositories are enabled

So I'm not sure now where to enable FreeBSD-base. As I wrote above, it's supposedly enabled in FreeBSD-base.conf. If you hadn't suggested that I wouldn't even have known what to look for.

I'm wondering if I should change that FreeBSD-base no to yes in FreeBSD.conf

But I see that it's identical, that is with FreeBSD-base set to no, on another machine where it worked without problems.
 
This is from my 15.0p4 which has been reinstalled, so no pkgbasify, it's pkgbase from start.
/etc/pkg/FreeBSD.conf
Code:
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#   echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#
# Note that the FreeBSD-base repository is disabled by default.
#

FreeBSD-ports: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: no
}

/usr/local/etc/pkg/repos/FreeBSD.conf
Code:
FreeBSD-base: { enabled: yes }
FreeBSD-ports: { url: "http://pkg0.sjb.freebsd.org/${ABI}/latest", mirror_type: "NONE" }

I've only added FreeBSD-ports line to point to a pkg mirror because sometimes I have ISP issues and slow link with default config.

/usr/local/etc/pkg.conf should not be touched.

Edit : normal pkg upgrade pulled 3 FreeBSD- packages yesterday, the -p4 upgrade.
 
I'm wondering if the problem is that the FreeBSD-base.conf just reads enabled: yes without any servers listed. In /usr/share/bsdinstall/FreeBSD-base.conf it gives a url and such.
 
Comparing the the machine that is working, I'm wondering if my /usr/local/etc/pkg/repos/FreeBSD-base.conf should read
FreeBSD-base: { url: "pkg+https://pkgbase.FreeBSD.org/${ABI}/base_release_0", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkgbase-15", enabled: yes }
Would anybody be able to correct or confirm as I'd rather not trash the system--yes I have a backup but I'm also lazy.
 
On a pkgbase installed machine I have the following in /etc/pkg/FreeBSD.conf (*almost* the same as what Zare shows)
FreeBSD-ports: {
url: "pkg+https://pkg.freebsd.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-ports-kmods: {
url: "pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-base: {
url: "pkg+https://pkg.freebsd.org/${ABI}/base_release_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
enabled: no
}
I have just the following in /usr/local/etc/pkg/repos/FreeBSD-base.conf
FreeBSD-base: { enabled: yes }
and no other files in that directory. Try this!
 
Thanks but that
Code:
FreeBSD-base: { enabled: yes }
is what I have now and that gives me the result I mentioned, No repositories enabled. My ports stanza is the same as the one you show.
 
Thanks but that
Code:
FreeBSD-base: { enabled: yes }
is what I have now and that gives me the result I mentioned, No repositories enabled. My ports stanza is the same as the one you show.
...and in /etc/pkg/FreeBSD.conf you have enabled:yes?
 
Thanks but that
Code:
FreeBSD-base: { enabled: yes }
is what I have now and that gives me the result I mentioned, No repositories enabled. My ports stanza is the same as the one you show.
Unless you fixed it, as per your original post you have these files swapped (between /etc and /usr/local/etc). I don't know if that matters but....
 
AND....
I went to the machine that updated correctly and copied its /usr/local/etc/pkg/repos/FreeBSD.conf to the machine giving me problems. bakul, I saw that in that file, (the FreeBSD.conf) it had
Code:
FreeBSD-base: { enabled: yes }
at the top. So, usig that I used fernandel's suggestion and ran
Code:
 pkg upgrade -r FreeBSD-base
and it updated.
Thanks everyone. Let me reboot as it's a new kernel and assuming it's good I'll mark this solved. Not sure why it required the FreeBSD-base enabled in FreeBSD.conf and it didn't work in FreeBSD-base.conf but I'm happy.
 
Ok, rebooted without issue. Once again thanks to all, marking this solved. For whatever reason, it required the line
Code:
FreeBSD-base: { enabled: yes }
in FreeBSD.conf and having it in FreeBSD-base.conf didn't do it. <shrug>. But all is working and I'm running -p4.
 
Back
Top