Opkg update not continuing for TP-Link Archer A6

I'm totally newbie on OpenWRT. I flashed the OpenWRT firmware available on this link and also flashed the sysupgrade.

My problem is whenever I run opkg update nothing is happening, no packages are being installed, and I'm receiving this error at the end:

Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_kmods https://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/5.4.72-1-b0f6b1dbf5cea17be1ae62e4857c13b6). Skipping.

Can someone help me? I really don't know what to do anymore.

=====

This is the full output for the opkg update command:

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/5.4.72-1-b0f6b1dbf5cea17be1ae62e4857c13b6/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/5.4.72-1-b0f6b1dbf5cea17be1ae62e4857c13b6/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/freifunk/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_freifunk
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/freifunk/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_kmods https://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/5.4.72-1-b0f6b1dbf5cea17be1ae62e4857c13b6). Skipping.
root@OpenWrt:~# 
1 Like

Remove the duplicate openwrt_kmods feed from the opkg configs /etc/opkg/*.conf.

1 Like

Hi, thank you for replying, but I'm not sure what to look at. This is the output of the said directory:

root@OpenWrt:/etc/opkg# ls -la
drwxr-xr-x    1 root     root             0 Oct 30 01:39 .
drwxr-xr-x    1 root     root             0 Oct 30 01:39 ..
-rw-r--r--    1 root     root           103 Oct 30 01:39 customfeeds.conf
-rw-r--r--    1 root     root           889 Oct 30 01:39 distfeeds.conf
drwxr-xr-x    1 root     root             0 Jan  1  1970 keys
root@OpenWrt:/etc/opkg#

What file should I modify to remove the duplicate openwrt_kmods?

1 Like
head -n -0 /etc/opkg/*.conf
1 Like

Thank you, I was able to install the packages now.

1 Like

I'm having the exact same problem. But, even though I have (I believe) successfully edited the conf file and I get no error after the opkg update, or after the luci install, I'm not getting luci starting up in my browser.

Luci only gives me one line on the install. Trying to remember if that's normal or not.

> root@OpenWrt:~# opkg install luci
Installing luci (git-20.113.70804-9d02ef1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/luci_git-20.113.70804-9d02ef1_all.ipk
Configuring luci.

Hmmm... tried installing another package, it seemed to go well, until I tried to run it...

root@OpenWrt:~# opkg install nano
Package nano (5.3-1) installed in root is up to date.
root@OpenWrt:~# nano
Error loading shared library libncursesw.so.6: No such file or directory (needed by /usr/bin/nano)
Error relocating /usr/bin/nano: wclrtoeol: symbol not found
Error relocating /usr/bin/nano: raw: symbol not found
Error relocating /usr/bin/nano: napms: symbol not found
Error relocating /usr/bin/nano: key_defined: symbol not found
Error relocating /usr/bin/nano: mvwprintw: symbol not found
Error relocating /usr/bin/nano: doupdate: symbol not found
Error relocating /usr/bin/nano: nodelay: symbol not found
Error relocating /usr/bin/nano: waddch: symbol not found
Error relocating /usr/bin/nano: wscrl: symbol not found
   and more...

So, obviously not installing well. What silly newbie mistake did I make here? Need a permission change or something?

1 Like

It seems to be a common issue with recent snapshots:
Opkg doesn't install dependencies, or get configured

3 Likes

Thanks for the heads-up. Is there any suggested solution for this problem or we just need to wait for another commit to fix the issue?

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.