* opkg_conf_parse_files: Duplicate src declaration

As instructed by OpenWrt,
Just reporting possible bug(s)? of snapshots for the D-Link DIR-878 Rev.A1

Following message displayed when opkg update is run:

opkg_conf_parse_files: Duplicate src declaration ... Skipping.

Message displayed for the following snapshots for the DIR-878

Fri Oct 30 07:27:49 2020
Sat Oct 31 07:52:15 2020
Sun Nov 1 06:48:00 2020
Mon Nov 2 06:03:10 2020

Another with same bug
Tue Nov 3 00:04:04 2020

Cheers,

EDIT: Added additional release with same bug.

Same bug here for nano pi r2s

See Opkg update not continuing for TP-Link Archer A6

1 Like

Same bug in Tue Nov 3 00:04:04 2020 release.

How to install Luci on a snapshot?

1 Like

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...

Cheers.

Same bug with Tue Nov 3 17:44:29 2020 release.

Question for the OpenWrt admins/mods,
Should users be continually reporting the same reoccurring bugs or no?
Or is reporting it once sufficient?

Same bug with Wed Nov 4 10:41:04 2020 release.

Noticed a duplicate line in
/etc/opkg/distfeeds.conf

Cheers,

same on the NanoPI R2S built from yesterday evening. Still getting the error but Luci is working.

Same bug with Thu Nov 5 07:37:55 2020 release.

Noticed a duplicate line in
/etc/opkg/distfeeds.conf

Cheers,

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.

Same bug with Fri Nov 6 12:05:22 2020 release.

Noticed a duplicate line in
/etc/opkg/distfeeds.conf

Cheers,

You mean an automatic buildbot build?

(there has not been a "release" for months")

Can you please write here the faulty contents in /etc/opkg/distfeeds.conf

EDIT:
In my own private builds I see a quite normal distfeeds like:

 OpenWrt SNAPSHOT, r14868-dd651e54cc
 -----------------------------------------------------

root@router1:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing

So, your problem is probably related to the buildbot build logic.

Looks like the problem has been reported in the bug tracker at

Might be more useful to report observations there. (actual developers so not pay much attention to the forum)

2 Likes

hnyman,
Thanks for the info.

Noticed that priority is rated Very Low so will stop testing the snapshots until they get around to addressing the issue or such.

Thanks again hnyman :slight_smile:

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

1 Like

Patch for this has been ready on patchwork for a while, just someone needs to merge it buildbot.git

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?

If opkg is not bumpt in older releases they don't use the kmod Feed anyway, so there is no lose of functionality of the kmod Feed disappears there.

jow pushed yesterday a slightly different fix to the buildbot.
See the recent commits in https://git.openwrt.org/?p=buildbot.git;a=summary

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).

3 Likes

Thanks hnyman,
Will give it a whirl.