Opkg segmentation fault


Everytime after I run an opkg update then opkg will return a segmentation fault.

How can I mend this?

opkg update
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7620/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_core.
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7620/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_base.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_telephony.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/telephony/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_packages.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_routing.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_luci.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/Packages.sig.
Signature check passed.
root@flybox:~# opkg list
Segmentation fault
Linux flybox 4.4.23 #0 Thu Oct 6 16:11:17 2016 mips GNU/Linux

How would we know, you provide zero usable info...

1 Like

Knew that I forgot something. Post updated.

This suggests 2 things:

  1. You are using LEDE (17.01) which is very old
  2. You were running a snapshot, which means you may have other issues even if you can get pasts the seg fault...

When you get the message “Cannot satisfy the following dependencies for…” it is most likely because you installed a snapshot version of OpenWrt.
Read here for possible solutions.

Back on #1 -- you are running an old, obsolete, and unsupported version -- there have been 4 major revisions since then. In addition to the fact that there are many security vulnerabilities in the older versions, getting help may be difficult simply because the specifics around 17.01 (syntax, troubleshooting, etc.) have long been forgotten by most users on this forum (there have been a lot of major changes in the subsequent versions).

Please consider upgrading to something newer.


Looks like there is a general problem with my openwrt installation. I flashed it a few days, and did not make any changes to it except configuring the wifi.

I get errors from the packages I install.

flybox:~# opkg install bnon
Unknown package 'bnon'.
Collected errors:
 * opkg_install_cmd: Cannot install package bnon.
root@flybox:~# opkg install bmon
Installing bmon (4.0-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/bmon_4.0-1_mipsel_24kc.ipk.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Installing libncurses6 (6.3-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/libncurses6_6.3-1_mipsel_24kc.ipk.
Installing terminfo (6.3-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/terminfo_6.3-1_mipsel_24kc.ipk.
Installing libnl-core200 (3.7.0-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/libnl-core200_3.7.0-1_mipsel_24kc.ipk.
Installing libnl-route200 (3.7.0-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/libnl-route200_3.7.0-1_mipsel_24kc.ipk.
Installing confuse (3.3-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/confuse_3.3-1_mipsel_24kc.ipk.
Configuring terminfo.
Configuring confuse.
Configuring libnl-core200.
Configuring libnl-route200.
Configuring libncurses6.
Configuring bmon.
root@flybox:~# opkg search screen
root@flybox:~# bmon
Error relocating /usr/lib/libncursesw.so.6: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/libncursesw.so.6: __time64: symbol not found
Error relocating /usr/lib/libncursesw.so.6: __stat_time64: symbol not found
Error relocating /usr/lib/libncursesw.so.6: __select_time64: symbol not found
Error relocating /usr/lib/libconfuse.so.2: reallocarray: symbol not found
Error relocating /usr/lib/libconfuse.so.2: __stat_time64: symbol not found
Error relocating /usr/lib/libnl-3.so.200: __time64: symbol not found
Error relocating /usr/lib/libnl-route-3.so.200: __stat_time64: symbol not found
Error relocating /usr/sbin/bmon: __clock_gettime64: symbol not found
Error relocating /usr/sbin/bmon: __localtime64: symbol not found
Error relocating /usr/sbin/bmon: __time64: symbol not found

Where did you get the image from? Why not use something more modern? What device are you using?

Archer MR200.

The image was from https://openwrt.org/toh/tp-link/archer_mr200

Why not use something more modern?

Thanks for offering. Shall I PM you my bank account # so you give me some cash. Apologies for not being rich right now. :wink:

The Archer MR200 is what I have got for now

That device can use the latest OpenWrt (22.03).

You will likely need to upgrade in multiple steps -- probably to 19.07 and then 21.02 and finally to 22.03.

1 Like

You are trying to install current snapshot packages (with musl C library with 64bit time_t) into a really ancient firmware with an older musl version (with 32bit time handling)

Like @psherman said above, get a newer firmware.


1 Like

But I have got the latest on it. I only flashed it two days ago.

Or if not, why does the official page not link to the latest release?

No you most certainly do not have the lastest version based on the fact that it is pulling the package list from the LEDE domain name. Unless you modified the package repos.

What is the output of:

ubus call system board
ubus call system board
        "kernel": "4.4.23",
        "hostname": "flybox",
        "system": "MediaTek MT7620A ver:2 eco:6",
        "model": "TP-Link Archer MR200",
        "release": {
                "distribution": "LEDE",
                "version": "HEAD",
                "revision": "r1811",
                "codename": "reboot",
                "target": "ramips\/mt7620",
                "description": "LEDE Reboot r1811"

I was talking about using a more modern version of OpenWrt -- that's free!

1 Like

So this is not the latest version. Where specifically did you download the image from?

Ahh. I misunderstood. :slight_smile: Good

I got this link from the main page here: https://openwrt.org/toh/tp-link/archer_mr200


You have likely used one of the unofficial firmware builds linked on that page, as based on Wiki it looks like your device is difficult with the initial install. But those images linked from some Google drive are really ancient.

But now when you have OpenWrt (LEDE) running there, you might follow the advice in the wiki to sysupgrade to the current release:

Upgrading OpenWrt

Download the latest available release for the router from the links above in this Wiki.
Open the web console ( by default)
Navigate to Firmware Upgrade
Select the downloaded file and flash

Download v19, then v21, and then v22 from the firmware selector and run upgrades.


1 Like

thanks for the link.

Is it ok to upgrade from my iphone?

Did you try the dropdown menu for the version selector on the right side?? works for me.