SOLVED IOCAGE Jail Update Broke PKG

Joined
May 2, 2017
Messages
211
I did the "iocage upgrade plex-server -r 12.2-RELEASE" and the upgrade succeeded. Now when I try to do "pkg update" I get the error in the screenshot. Can no longer perform regular updates to the jail... How do I fix this? I need PKG to install anything.
Broken.png
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Try pkg-static install -f pkg.
 
Joined
May 2, 2017
Messages
211
No luck...

Bad.png
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
What does /etc/pkg/FreeBSD.conf contain? Is there a /usr/local/etc/pkg/repos/FreeBSD.conf and if yes, what does that contain?

Please copy and paste text and not screenshots. Thank you.
 
Joined
May 2, 2017
Messages
211
Will check this evening. Just left for work….

Thanks…
 
Joined
May 2, 2017
Messages
211
What does /etc/pkg/FreeBSD.conf contain?

Code:
# $FreeBSD: releng/12.2/usr.sbin/pkg/FreeBSD.conf.quarterly 346780 2019-04-27 04
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}



Is there a /usr/local/etc/pkg/repos/FreeBSD.conf and if yes, what does that contain?

Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:11:x86:64/latest",
  mirror_type: "srv",
  enabled: yes
}



I see that says 11 for the version. I should now be on 12.2. Something clearly didn't go right. This is the only jail left over from the Warden days, and I have had the upgrade on my to-do list for quite some time. Being exposed to the internet, I don't want to keep EOL software running.

Is there a change I need to make here?

Thanks,
Steven
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Just remove the one in /usr/local/etc/pkg/repos and repeat the pkg-static thing and you should be good to go.
 
Joined
May 2, 2017
Messages
211
Delete the entire FreeBSD.conf file and let it recreate? Or just delete the line from the file?

I deleted the file, now "pkg" works. Doing an update/upgrade and it seems to be doing some other reinstallation stuff, like 89 packages.

I appreciate the help greatly, sir! Hopefully this update run fixes any old dependency issues and gets everything in order.
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Delete the file. It's a pkg override and deleting it will return the jail to default behavior.
 
Top