No sudo, failed to read repo data
-
Hello,
I run 2.7.0 and wish to update, but I am not offered an update through the GUI.
In the update menu:
System/Package Manager/Available Packages : is empty and cannot find packages.
I tried working on the steps in the documentationon upgrade-not-offered-library-errors.
However, Im struggling as I have not installed the sudo command, and I fail to equip my user with enough privileges through:
System-> User Manager -> Users -> Edit -> Add Privileges: I granted all privileges to my user.$ pkg-static info -x pfSense-upgrade pfSense-upgrade-1.0_33
$ pfSense-repoc-static -D OS: FreeBSD OS Version: 14.0-CURRENT Platform: amd64 Product: pfSense Version: 2.7.0-RELEASE FS type: zfs Language: en_US Model: unknown hardware NDI: 00eec81cde3e03ac38a7 Package prefix: pfSense-pkg- Serial: (null) Repo path: /usr/local/etc/pfSense Request query: {"platform":"unknown hardware","os":"FreeBSD","osver":"14.0-CURRENT","fstype":"zfs","prod":"pfSense","ver":"2.7.0-RELEASE","ed":"Community","pkgs":"[{\"name\":\"acme\",\"ver\":\"0.7.5\"},{\"name\":\"Avahi\",\"ver\":\"2.2_4\"},{\"name\":\"iperf\",\"ver\":\"3.0.3\"},{\"name\":\"haproxy\",\"ver\":\"0.63_1\"},{\"name\":\"WireGuard\",\"ver\":\"0.2.0_2\"},{\"name\":\"RRD_Summary\",\"ver\":\"2.2\"},{\"name\":\"node_exporter\",\"ver\":\"0.18.1_3\"},{\"name\":\"openvpn-client-export\",\"ver\":\"1.9_1\"}]"} POST data: uid=00eec81cde3e03ac38a7&language=en_US&serial=&version=%7B%22platform%22%3A%22unknown+hardware%22%2C%22os%22%3A%22FreeBSD%22%2C%22osver%22%3A%2214.0-CURRENT%22%2C%22fstype%22%3A%22zfs%22%2C%22prod%22%3A%22pfSense%22%2C%22ver%22%3A%222.7.0-RELEASE%22%2C%22ed%22%3A%22Community%22%2C%22pkgs%22%3A%22%5B%7B%5C%22name%5C%22%3A%5C%22acme%5C%22%2C%5C%22ver%5C%22%3A%5C%220.7.5%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22Avahi%5C%22%2C%5C%22ver%5C%22%3A%5C%222.2_4%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22iperf%5C%22%2C%5C%22ver%5C%22%3A%5C%223.0.3%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22haproxy%5C%22%2C%5C%22ver%5C%22%3A%5C%220.63_1%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22WireGuard%5C%22%2C%5C%22ver%5C%22%3A%5C%220.2.0_2%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22RRD_Summary%5C%22%2C%5C%22ver%5C%22%3A%5C%222.2%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22node_exporter%5C%22%2C%5C%22ver%5C%22%3A%5C%220.18.1_3%5C%22%7D%2C%7B%5C%22name%5C%22%3A%5C%22openvpn-client-export%5C%22%2C%5C%22ver%5C%22%3A%5C%221.9_1%5C%22%7D%5D%22%7D&arch=amd64 failed to read the repo data.
Privileges come into play:
$ pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade pkg-static: Repository pfSense-core missing. 'pkg update' required pkg-static: No package database installed. Nothing to do! pkg-static: Insufficient privileges to install packages
A possible solution suggested was to install sudo ....but then you need to be able to install programs ;)
Any ideas?
--------- edit:
Also found this clue, while looking at other simliar posts.$ pkg update ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"
----- edit:
I found I get root access from the console..!
When I runpkg-static update -f
I get (retyping from console now,hoping to provide the important keywords)
"Updating pfSense-core repository catalogue" and then .. "repository pfSense-core has no meta file, using default settings", "Error updating repositories". -
Apparently the good old help of attempting to document and present a decent forum post ...is what was required to solve the problem....
For the aftermath readers, the solution was:
$ pkg-static bootstrap -f
Followed by
pkg-static install -fy pkg pfSense-repo pfSense-upgrade
Then the update would roll through via GUI.
Ideas from here:
https://www.reddit.com/r/freebsd/comments/17zbznm/freebsd_140_upgrade_pkg_utility_stops_working/