Project

General

Profile

Actions

Regression #13724

closed

pfSense-upgrade breaks the pkg repo conf

Added by Steve Wheeler almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Upgrade
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Release Notes:
Force Exclusion
Affected Plus Version:
23.01
Affected Architecture:
All

Description

Upgrades from 22.05 to 23.01 will fail with an error like:

ERROR: It was not possible to determine pkg remote version
__RC=1 __REBOOT_AFTER=10
>>> Updating repositories metadata... 
pkg-static: Unable to open '/usr/local/etc/pkg/repos//pfSense.conf':No such file or directory
No active remote repositories configured.
>>> Locking package pkg... done.

When you try to run the upgrade the pfSense-upgrade pkg is first pulled in from the Dev branch.
The pfSense-upgrade sh script there removes the symlink from /usr/local/etc/pkg/repos/pfSense.conf pointing to the existing static repo definitions. It replaces it with a link to the new dynamic repos location but it does so before the system has populated that. Hence the pkg system ends up without a conf file and fails.

Actions

Also available in: Atom PDF