Build iso new error ,vyatta-cfg

Purging configuration files for vyatta-cfg (0.102.0+vyos2+current5) …

Failed to disable unit, unit vyos-router.service does not exist.

dpkg: error processing package vyatta-cfg (–purge):

installed vyatta-cfg package post-removal script subprocess returned error exit status 1

Purging configuration files for certbot (2.1.0-2) …

Purging configuration files for avahi-daemon (0.8-9) …

Purging configuration files for radius-shell (1.5.0-cl3u7) …

Purging configuration files for strongswan-swanctl (5.9.8-5) …

。。。。。。

Purging configuration files for tftpd-hpa (5.2+20150808-1.4) …

Purging configuration files for netplug (1.2.9.2-3.1) …

Errors were encountered while processing:

vyatta-cfg

E: Sub-process /usr/bin/dpkg returned an error code (1)

E: An unexpected failure occurred, exiting…

P: Begin unmounting filesystems…

P: Saving caches…

Reading package lists… Done

Building dependency tree… Done

Reading state information… Done

Will someone help me?

Describe the bug and provide commands that you use
It is not clear what you do.

The following command was used:
./build-vyos-image iso --architecture arm64 --build-by “answer1.0” --custom-apt-entry “deb [arch=arm64] InfluxData - Package Repository bullseye stable” --custom-apt-key /root/vyos-build/influxdata-archive_compat.key

The following command was used:
./build-vyos-image iso --architecture arm64 --build-by “answer1.0” --custom-apt-entry “deb [arch=arm64] InfluxData - Package Repository bullseye stable” --custom-apt-key /root/vyos-build/influxdata-archive_compat.key

I’m having the same issue when trying to build a VyOS ISO image.
Steps to reproduce:

mkdir -p /var/repo/vyos
cd /var/repo/vyos
git clone -b current --single-branch https://github.com/vyos/vyos-build
cd /var/repo/vyos/vyos-build
git pull
docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current bash -c './build-vyos-image iso --custom-package "iperf iptraf-ng wget curl rsync bind9 ipmitool zabbix-agent php-cli bzip2 suricata suricata-update lshw sngrep" --build-by "Ivan Apolonio" --build-comment "Build Date $(date +"%Y-%m-%d")"'

And after the whole process of building the image (close to 10 minutes latter) the process stops showing the following error:

Errors were encountered while processing:
 vyatta-cfg
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

These are previous lines showing sometings about vyatta-cfg package:

...
Running in chroot, ignoring request.
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of stop.
Removing vyatta-cfg-system (0.20.44+vyos2+current22) ...
dpkg: warning: while removing vyatta-cfg-system, directory '/opt/vyatta/bin/sudo-users' not empty so not removed
...
Purging configuration files for vyatta-cfg (0.102.0+vyos2+current5) ...
Failed to disable unit, unit vyos-router.service does not exist.
dpkg: error processing package vyatta-cfg (--purge):
 installed vyatta-cfg package post-removal script subprocess returned error exit status 1
...

I have tried to build the image again today and it has built successfully. So it looks whatever was the bug, is has already been fixed.

Thanks