OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: bbchucks on February 05, 2023, 04:52:39 AM

Title: missing folder /usr/local/etc/pkg/repo
Post by: bbchucks on February 05, 2023, 04:52:39 AM
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***
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: franco on February 05, 2023, 05:03:27 PM
Looks like you installed from the FreeBSD mirror. It's tricky to unbreak.

I'd try this first...

# opnsense-bootstrap


Cheers,
Franco
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: bbchucks on February 05, 2023, 05:07:32 PM
thanks for your help, after running this command, will it automatically restore my config.xml ?
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: franco on February 05, 2023, 05:10:20 PM
It won't touch your current config.xml (and all of /conf for that matter).


Cheers,
Franco
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: bbchucks on February 05, 2023, 05:14:20 PM
awesome, that worked! 

Is there a way I can update to 23+ now? or do I have to update to 22.7. major first?
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: franco on February 05, 2023, 05:17:23 PM
I'm not sure which version it bootstrapped due to your intermediate state. But it definitely told you when you confirmed installation.


Cheers,
Franco
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: bbchucks on February 05, 2023, 05:18:45 PM
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 ?
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: franco on February 05, 2023, 05:53:09 PM
Yes, why do you distrust the GUI?


Cheers,
Franco
Title: Re: missing folder /usr/local/etc/pkg/repo
Post by: bbchucks on February 05, 2023, 05:58:54 PM
hah it failed on me in the past but that was years ago.  thank you for your help today!