Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
missing folder /usr/local/etc/pkg/repo
« previous
next »
Print
Pages: [
1
]
Author
Topic: missing folder /usr/local/etc/pkg/repo (Read 2859 times)
bbchucks
Newbie
Posts: 24
Karma: 2
missing folder /usr/local/etc/pkg/repo
«
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***
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #1 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
Logged
bbchucks
Newbie
Posts: 24
Karma: 2
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #2 on:
February 05, 2023, 05:07:32 pm »
thanks for your help, after running this command, will it automatically restore my config.xml ?
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #3 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
Logged
bbchucks
Newbie
Posts: 24
Karma: 2
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #4 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?
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #5 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
Logged
bbchucks
Newbie
Posts: 24
Karma: 2
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #6 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 ?
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #7 on:
February 05, 2023, 05:53:09 pm »
Yes, why do you distrust the GUI?
Cheers,
Franco
Logged
bbchucks
Newbie
Posts: 24
Karma: 2
Re: missing folder /usr/local/etc/pkg/repo
«
Reply #8 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!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
missing folder /usr/local/etc/pkg/repo