missing folder /usr/local/etc/pkg/repo

Started by bbchucks, February 05, 2023, 04:52:39 AM

Previous topic - Next topic
I upgrade to 22.1.10_4 and now when i do an opnsense-update, i get the error:
Missing /usr/local/etc/pkg/repos/OPNsense.conf

In the gui i get
Firmware status
Could not find the repository on the selected mirror.

Here is the log from the GUI status/update function-
***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 22.1.10_4 (amd64/OpenSSL) at Sat Feb  4 22:52:05 EST 2023
Fetching changelog information, please wait... Missing /usr/local/etc/pkg/repos/OPNsense.conf
ld-elf.so.1: /usr/local/sbin/opnsense-verify: Undefined symbol "ucl_object_iterate"
Updating FreeBSD repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
Processing entries:
Newer FreeBSD version for package zziplib:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1301000
- running kernel: 1300523
Ignore the mismatch and continue? [y/N]: pkg: repository FreeBSD contains packages for wrong OS version: FreeBSD:13:amd64
Processing entries... done
Unable to update repository FreeBSD
Error updating repositories!
pkg: Unknown repository: OPNsense
***DONE***

Looks like you installed from the FreeBSD mirror. It's tricky to unbreak.

I'd try this first...

# opnsense-bootstrap


Cheers,
Franco

thanks for your help, after running this command, will it automatically restore my config.xml ?

It won't touch your current config.xml (and all of /conf for that matter).


Cheers,
Franco

awesome, that worked! 

Is there a way I can update to 23+ now? or do I have to update to 22.7. major first?

I'm not sure which version it bootstrapped due to your intermediate state. But it definitely told you when you confirmed installation.


Cheers,
Franco

i'm currently on 22.1.10_4

do i need to update to 22.7 first? how can i update to 23 from 22.1 ?

Yes, why do you distrust the GUI?


Cheers,
Franco

hah it failed on me in the past but that was years ago.  thank you for your help today!