OpenWrt Forum Archive

Topic: opkg list-upgradable: segmentation fault

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

BusyBox v1.24.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 DESIGNATED DRIVER (Bleeding Edge, 50107)
 -----------------------------------------------------
  * 2 oz. Orange Juice         Combine all juices in a
  * 2 oz. Pineapple Juice      tall glass filled with
  * 2 oz. Grapefruit Juice     ice, stir well.
  * 2 oz. Cranberry Juice
 -----------------------------------------------------
root@E4200:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_base.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/base/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/kernel/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_kernel.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/kernel/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_luci.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/luci/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_management.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/management/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_packages.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_routing.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_telephony.
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/telephony/Packages.sig.
Signature check passed.
root@E4200:~# opkg list-upgradable
Segmentation fault
root@E4200:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 2048      2048         0 100% /rom
tmpfs                    30420         8     30412   0% /tmp
/dev/mtdblock5           12928     10504      2424  81% /overlay
overlayfs:/overlay       12928     10504      2424  81% /
tmpfs                      512         0       512   0% /dev
root@E4200:~#

What do?

That's an EA4200 viper, btw, if it's relevant...

(Last edited by poorandunlucky on 22 Nov 2017, 06:38)

That looks to me like a bug in "opkg". I would first try to upgrade it "opkg upgrade opkg"; and if that fails, file a bug.

oops LOL ummm what was i thinkin?

(Last edited by WWTK on 22 Nov 2017, 22:41)

WWTK wrote:

try

apt list --upgradable

instead

"apt"? isn't that for Debian (and derivatives)?

eduperez wrote:

That looks to me like a bug in "opkg". I would first try to upgrade it "opkg upgrade opkg"; and if that fails, file a bug.

root@E4200:~# opkg upgrade opkg
Installing opkg (9c97d5ecd795709c8584e972bfdf3aee3a5b846d-15) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/base/opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-15_brcm47xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for opkg:
 *      libc *  libc *  libc *  libc *
root@E4200:~#

Also, how do I flash new firmware onto it, since I can't just upgrade it?

(Last edited by poorandunlucky on 23 Nov 2017, 04:30)

poorandunlucky wrote:
root@E4200:~# opkg upgrade opkg
Installing opkg (9c97d5ecd795709c8584e972bfdf3aee3a5b846d-15) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/packages/base/opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-15_brcm47xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for opkg:
 *      libc *  libc *  libc *  libc *
root@E4200:~#

I think you have a serious issue with your installation, I would consider reinstalling everything from start, and move to LEDE unless you have a good reason to use snapshots.

poorandunlucky wrote:

Also, how do I flash new firmware onto it, since I can't just upgrade it?

Flashing a new firmware uses a different procedure, there are other programs involved, than may or may not work.

poorandunlucky wrote:

Also, how do I flash new firmware onto it, since I can't just upgrade it?

opkg upgrade only upgrades your packages to the most current for that release, it doesn't give you a new version of openwrt/lede.

I do agree you need a new flash, something is very wrong with what you have.

The easiest way to upgrade the flash is from the system menu in LUCI, if that is not available then using the sysupgrade command is your next option.

You might try resetting to defaults in luci also though it appears your opkg is truly broken.  you could try re-installing opkg also but i'm guessing that would just fail anyway.

poorandunlucky wrote:

What do?

That's an EA4200 viper, btw, if it's relevant...


Hi.  To be fair, this is definitely a valid issue.  I am using LEDE, & the problem is just the same.  opkg update does not fix anything.  I did a little looking around for this & found something.

Someone who goes by the name mach327 seems to have found the problem just days ago.  Apparently, the problem is in a python file for opkg.  See for yourself...

https://github.com/openwrt/openwrt/issues/519
https://github.com/openwrt/packages/pull/5148

The discussion might have continued from here.