19.07 x86-64 image builder failing on libubus and libubox

Configuring kmod-hid.
Configuring kmod-ipt-offload.
Configuring collectd-mod-thermal.
Configuring kmod-bnx2.
Configuring wireless-regdb.
Configuring urngd.
Configuring luci-app-openvpn.
Configuring ppp-mod-pppoe.
Configuring dnsmasq-full.
Collected errors:
 * opkg_install_cmd: Cannot install package libubox20170601.
 * opkg_install_cmd: Cannot install package libubus20170705.
Makefile:153: recipe for target 'package_install' failed
make[2]: *** [package_install] Error 255
Makefile:112: recipe for target '_call_image' failed
make[1]: *** [_call_image] Error 2
Makefile:196: recipe for target 'image' failed
make: *** [image] Error 2

Any ideas? Worked find in RC2. Thanks!

No sooner had I posted this, I realised it was because I have a deprecated version of libubus/libubox in my package list. This is unusual because I typically keep my packages up to date.

However I noticed that I am getting opkg errors on the RC2 build when doing package upgrade...

 * check_data_file_clashes: Package libubox20191228 wants to install file /lib/libubox.so
        But that file is already provided by package  * libubox20170601
 * check_data_file_clashes: Package libubus20191227 wants to install file /lib/libubus.so
        But that file is already provided by package  * libubus20170705
 * check_data_file_clashes: Package libubox20191228 wants to install file /lib/libubox.so
        But that file is already provided by package  * libubox20170601
 * check_data_file_clashes: Package libubox20191228 wants to install file /lib/libubox.so
        But that file is already provided by package  * libubox20170601
 * resolve_conffiles: Existing conffile /etc/config/luci is different from the conffile in the new package. The new conffile will be placed at /etc/config/luci-opkg.
 * resolve_conffiles: Existing conffile /etc/config/ucitrack is different from the conffile in the new package. The new conffile will be placed at /etc/config/ucitrack-opkg.
 * check_data_file_clashes: Package libubox20191228 wants to install file /lib/libubox.so
        But that file is already provided by package  * libubox20170601
 * check_data_file_clashes: Package libubox20191228 wants to install file /lib/libubox.so
        But that file is already provided by package  * libubox20170601
 * check_data_file_clashes: Package libubox20191228 wants to install file /lib/libubox.so
        But that file is already provided by package  * libubox20170601
 * check_data_file_clashes: Package libubus20191227 wants to install file /lib/libubus.so
        But that file is already provided by package  * libubus20170705
xargs: opkg: exited with status 255; aborting

I can resolve this for the new build by just removing the libubox/bus packages from the build packages list (as they will be installed as dependencies anyway) but for future reference, how do you resolve file clashes like the above?

I really don't know. I did the same thing you did, and sometimes I even downloaded the fresh packages from the repositry and that allowed those errores to be fixed. however, I have had little to no luck with the resulting images bieng functional on the routers. Either the wireless is not working, or a tab shows that shouldn't (vpn tab, for example) etc.