update: Bootstrap script 24.1 fails on Azure VM

I am trying to run bootstrap script on FreeBSD 13.2 running on Azure VM. It fails with the following message:

sudo sh ./opnsense-bootstrap.sh.in -r 24.1
This utility will attempt to turn this installation into the latest
OPNsense 24.1 release.  All packages will be deleted, the base
system and kernel will be replaced, and if all went well the system
will automatically #reboot.

Proceed with this action? [y/N]: y
fetch: https://github.com/opnsense/core/archive/stable/24.1.tar.gz: size of remote file is not known
/tmp/opnsense-bootstrap/core.tar.gz                   7650 kB 8556 kBps    01s
pkg: 19 packages installed
azure-agent-2.8.0.11: already unlocked

I used to run this script 22.1 and earlier on FreeBSD 13.1 on Azure VM and it used to work just fine. It is just when I tried the new version 24.1 this is when I got this message. Any help is really appreciated

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

https://github.com/freebsd/pkg/commit/41fea2de0f fixes this so pkg will fix itself sooner or later.

I tried adding pkg unlock -ya but to be frank the upstream pkg version is broken as it also ignores -a and just bails after the first already unlocked package. Not going to fix it or workaround it. If you want to kill all packages beforehand you won’t run into this error:

# pkg delete -fya

Cheers, Franco

Er what pkg version is installed? Maybe someone changed the return code to failure but it doesn’t make much sense as it’s not really an error if it is unlocked. 🤨