Hello vgaetera,
The opkg_conf_parse_files: Duplicate src declaration ... displays immediately after running opkg update.
Step by step details.
Using the D-Link Recovery Mode,
I installed the firmware as I have for the last several months,
Then after completion of firmware installation,
I hard reboot the router,
Once the router is back up,
I SSH into the router with PuTTy as usual.
Enter the command: opkg update
The update appears to run but ends up with the error message.
From the link that you provided above,
I presume users will just have to wait for bug to be fixed...
Bug is still in NanoPI R2S image from 6-11.
Even Luci is not installing anymore...
Here is the error I get
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/kmods/5.4.74-1-63fa2731cb0f8e88239410e4cc044b42/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/kmods/5.4.74-1-63fa2731cb0f8e88239410e4cc044b42/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/freifunk/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_freifunk
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/freifunk/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/telephony/Packages.sig
Signature check passed.
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (openwrt_kmods https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/kmods/5.4.74-1-63fa2731cb0f8e88239410e4cc044b42). Skipping.
root@OpenWrt:~# opkg install luci
Installing luci (git-20.309.25915-d8c1366) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/luci/luci_git-20.309.25915-d8c1366_all.ipk
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (openwrt_kmods https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/kmods/5.4.74-1-63fa2731cb0f8e88239410e4cc044b42). Skipping.
* opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_generic/luci/luci_git-20.309.25915-d8c1366_all.ipk, wget returned 8.
* opkg_install_pkg: Failed to download luci. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package luci.
It is possibly related to these commits by @aparcar and @daniel
If the problem still manifests in the buildbot builds (or are you using imagebuilder???), it sounds like there possibly is currently logic to add the kmods repo both by the new commits and by the old logic in the buildbot itself (as references in one of those commits):
But in any case, the problem might be better discussed at
Who has right there? you? (at least @jow I think )
Ps. I am not sure how 19.07 buildbot will behave if you remove the functionality from the buildbot build recipe with that patch from @aparcar . Not sure, but I think that the same recipe is used also by the stable branch buildbots. Has the corresponding functionality been backported to 19.07 (and 18.06?) in the main OpenWrt repo?
Hopefully the fix removed the double declaration.
By now about 2/3 of the target images have been built after that (with r14870-93adba4597 as the OpenWrt version).