- /
- /
- /
CLI Troubleshooting
If the GUI update is not functioning as expected, there are a handful of shell commands that can help gather information or resolve problems.
Force pkg Metadata Update
Often times DNS or connectivity problems will prevent the firewall from finding updates. A quick way to verify this is to force a pkg metadata update:
# pkg-static update -f |
This command forces an update and will print errors if problems are found, a few potential errors include:
No address record The firewall cannot resolve the update server hostname. This could be a problem with DNS from the firewall itself, or connectivity from the firewall to the Internet in general, such as a missing or incorrect default route.
No route to host The firewall cannot reach the update server because it cannot find a route there. Most likely, the firewall is missing its default route or the WAN with the default route is down.
Operation timed out The firewall was unable to download a file in a timely manner. This is most likely due to degraded connectivity between the firewall and the update servers. It could also be a routing issue, or a problem with IPv6 on the firewall (See IPv6 Connectivity Problems).
Authentication error There is a proxy between the firewall and the update servers and it requires au- thentication. Move the firewall so it is not behind a proxy, or configure the proxy under System > Advanced, Miscellaneous tab.
No trusted public keys found The firewall is attempting to update from the wrong repository. Ensure the correct branch is selected as mentioned in Rewrite Repository Information. May require a reinstall to resolve. For CE installations, try the following command:
# fetch -qo /usr/local/share/pfSense/keys/pkg/trusted/ \ https://raw.githubusercontent.com/pfsense/pfsense/RELENG_2_4_5/src/usr/local/share/ ˓→pfSense/keys/pkg/trusted/pkg.pfsense.org.20160406 |
Manual Update Check
To run a manual update check from the CLI:
# pfSense-upgrade -d -c |
When run successfully, this command will print a line stating that a new version is available, and the version number of the available update.