RESOLVED : "sudo pkg upgrade" error "libutil.so.10"
-
Patient0,
Thank you for your reply. My English isn't great, and I'm afraid of messing everything up :-(
Is this the order I need to place?
pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade -
I issued this command
sudo pkg-static clean -ay ; pkg-static install -fy pkg pfSense-repo pfSense-upgradeand
sudo pkg-static install -fy pkg pfSense-repo pfSense-upgradenow :
sudo pkg upgradeI have these errors
[25.07.1-RELEASE][xxxxxx@pfsense.home.arpa]/home/xxxxxx: sudo pkg upgrade Updating pfSense-core repository catalogue... pkg: An error occured while fetching package pkg: An error occured while fetching package repository pfSense-core has no meta file, using default settings pkg: An error occured while fetching package pkg: An error occured while fetching package pkg: An error occured while fetching package pkg: An error occured while fetching package Unable to update repository pfSense-core Updating pfSense repository catalogue... pkg: An error occured while fetching package pkg: An error occured while fetching package repository pfSense has no meta file, using default settings pkg: An error occured while fetching package pkg: An error occured while fetching package pkg: An error occured while fetching package pkg: An error occured while fetching package Unable to update repository pfSense Error updating repositories!What do I need to do to fix everything?
EDIT :
sudo pkg-static upgradesame error
-
After a complete restart, the command
sudo pkg upgradehas finally returned to normal
Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. All repositories are up to date. Checking for upgrades (1 candidates): 100% Processing candidates (1 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. -
You see that if at any time pfSense has seen a different repo branch and pulled in the version of pkg from that. But that isn't actually an issue because all the pkg functions in pfSense use pkg-static to avoid that.
You could have simply run
pkg-static upgradeinitially.However seeing that implies the repo branch may be set incorrectly so you should always check that.
-
@stephenw10
Thank you for your message. I panicked for a moment, but luckily the commands I entered didn't break anything.I remember once restarting my pfsense and it ‘found’ a beta version. But I never test betas, nor did I choose that type of branch. I think it was because of this ‘bug’ that the (bad) ‘pkg’ was installed. I hadn't noticed anything until today.
I think there may be a bug when pfsense, during boot, offers ‘alpha’ or ‘beta’ items even though I never selected that option...
Thanks again!
-
There was a backend error a few weeks ago that some users saw. You may have been one of them.
-
@stephenw10
Thank you for this information. So I'm not ‘crazy’ and my explanation makes logical sense.It was really unlucky for me to have restarted my pfsense at that precise moment...
-
It wasn't the restarting it was just that at some point it saw the repo and pulled the updated pkg version.
I'm not sure in what context you are running pkg upgrade there but you should be using pkg-static to avoid exactly this issue.
-
OK, thank you for explaining that it's not because of the restart.
For this script bad link sorry !
EDIT
The link I put in my document (Word document) is no longer valid. I don't understand!EDIT 2
https://forum.netgate.com/topic/179402/pfblockerng-3-2-0_4/11
post from "Gertjan at 13 avr.2023 14:34 -
Ah OK. Yup that should use pkg-static. But I think that's Luke's script: https://forum.netgate.com/topic/137707/auto-update-check-checks-for-updates-to-base-system-packages-and-sends-email-alerts?_=1763568842688
And it looks like you're using an old version because the current version does use pkg-static.
-
@stephenw10
Oh, great! Thank you for that correction (I didn't know that). I'll replace my script with the one you gave me. Thank you so much!