Page MenuHomeVyOS Platform

Build process: Collision between packages vyos-1x and bgpq3
Closed, InvalidPublicBUG

Description

Dear team,

I experience a consisting error when trying to build the current rolling release. After issuing "sudo make iso" in the build container, I get after a while these reproducible errors shown below. It appears to me that the same file '/usr/bin/bgpq3' is managed by two different packages which causes the error state.

Thanks for investigating!
Alain

[...]
Selecting previously unselected package bgpq3.                                                                                                                                                             
Preparing to unpack .../023-bgpq3_0.1.36.1-1_amd64.deb ...                                           
Unpacking bgpq3 (0.1.36.1-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-4qpRj0/023-bgpq3_0.1.36.1-1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/bgpq3', which is also in package vyos-1x 999.0-15135-gdb29bdc89
Selecting previously unselected package bgpq4.
Preparing to unpack .../024-bgpq4_1.9-1_amd64.deb ...
Unpacking bgpq4 (1.9-1) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../025-binutils-common_2.40-2_amd64.deb ...
[...]
Errors were encountered while processing:
 /tmp/apt-dpkg-install-4qpRj0/023-bgpq3_0.1.36.1-1_amd64.deb
N: Download is performed unsandboxed as root as file '/root/packages/./linux-image-6.18.57-vyos_6.18.57-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
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
Del linux-kbuild-6.1 6.1.187-1 [1468 kB]
Del frr-snmp 10.6.1-0 [68.3 kB]
Del frr-pythontools 10.6.1-0 [46.4 kB]
Del libcpupower1 6.1.187-1 [1218 kB]
Del frr 10.6.1-0 [6058 kB]
Del vyos-1x 999.0-15077-gc8d344fd8 [3762 kB]
Del vyos-1x-smoketest 999.0-15077-gc8d344fd8 [367 kB]
Del libvyosconfig0 999.0-15077-gc8d344fd8 [11.6 MB]
Del frr-rpki-rtrlib 10.6.1-0 [32.0 kB]
Del linux-cpupower 6.1.187-1 [1321 kB]
Traceback (most recent call last):
  File "/vyos/./build-vyos-image", line 1023, in <module>
    build()
  File "/vyos/./build-vyos-image", line 843, in build
    cmd("lb build 2>&1")
  File "/vyos/scripts/image-build/utils.py", line 89, in cmd
    raise OSError(f"Command '{command}' failed")
OSError: Command 'lb build 2>&1' failed
vyos_bld@80dab3596135:/vyos$

Details

Version
VyOS rolling 2026-10-18 build process
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Removing bgpq3 from data/live-build-config/package-lists/vyos-utils.list.chroot resolves the error. I must have had dragged it with me in my own version of that file.

Viacheslav subscribed.

We do not have the iso flavor

vyos_bld@fae3ff9bbe25:/vyos/work/tmp/vyos-build$ sudo make iso
./build-vyos-image iso
I: Checking if packages required for VyOS image build are installed
I: using build flavors directory data/build-flavors
E: Build flavor "iso" does not exist!
make: *** [Makefile:39: iso] Error 1

Also, this FRR version is unexpected for the current Rolling

Del frr-snmp 10.6.1-0 [68.3 kB]
Del frr-pythontools 10.6.1-0 [46.4 kB]
Del frr 10.6.1-0 [6058 kB]

Expected:

Del frr-snmp 10.7.1-0 [69.5 kB]
Del frr-rpki-rtrlib 10.7.1-0 [32.0 kB]

Marking the task as invalid, as the issue seems to be in your environment, and I cannot reproduce it.