OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Packages
  • Assigned To
    Matthias Schiffer
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by camel - 20.03.2017
Last edited by Matthias Schiffer - 17.04.2018

FS#645 - kmod package postinst script returned status 255

on instalaltion of current runk i got error on installation of: package “kmod-lib-zlib-inflate” postinst script returned status 255

Supply the following if possible:
- Device problem occurs on
- Software versions of LEDE release: Powered by LuCI Master (git-17.078.53745-180f2d6) / LEDE Reboot SNAPSHOT r3792-0685f2a
- reproduce: try to install package: “kmod-lib-zlib-inflate”
then you will get: errors on config ..

root@router:~# opkg install kmod-lib-zlib-inflate -V4

opkg_conf_parse_file: Loading conf file /etc/opkg.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/customfeeds.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/distfeeds.conf.
opkg_install_cmd: kmod-lib-zlib-inflate
opkg_prepare_url_for_install: applying abpkg flag to kmod-lib-zlib-inflate
pkg_hash_load_feeds:
pkg_parse_line: propagating abpkg flag to pkg kmod-lib-zlib-inflate
...
...
pkg_vec_insert_merge: Adding new pkg=fdisk version=2.28 arch=mipsel_24kc.
pkg_vec_insert_merge: Adding new pkg=picocom version=1.7 arch=mipsel_24kc.
pkg_vec_insert_merge: Adding new pkg=iftop version=2017-02-06-35af3cf6 arch=mipsel_24kc.
pkg_info_preinstall_check: Updating file owner list.
opkg_install_by_name: Old versions from pkg_hash_fetch 4.4.53.
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kmod-lib-zlib-inflate:
pkg_hash_fetch_best_installation_candidate: Adding kmod-lib-zlib-inflate to providers.
pkg_hash_fetch_best_installation_candidate: kmod-lib-zlib-inflate arch=mipsel_24kc arch_priority=10 version=4.4.53.
pkg_hash_fetch_best_installation_candidate: Candidate: kmod-lib-zlib-inflate 4.4.53.
opkg_install_by_name: Versions from pkg_hash_fetch: old 4.4.53  new 4.4.53
opkg_install_by_name: Comparing visible versions of pkg kmod-lib-zlib-inflate:
        4.4.53-1 is installed
        4.4.53-1 is available
        0 was comparison result
Package kmod-lib-zlib-inflate (4.4.53-1) installed in root is up to date.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
opkg_recurse_pkgs_in_order: pkg kmod-usb-storage.
opkg_recurse_pkgs_in_order: Descending on pkg kernel.
....
....
opkg_recurse_pkgs_in_order: Descending on pkg collectd.
opkg_recurse_pkgs_in_order: pkg collectd already visited, skipping.
opkg_recurse_pkgs_in_order: pkg kmod-ipt-nat already visited, skipping.
Configuring kmod-lib-zlib-inflate.
pkg_run_script: Running script //usr/lib/opkg/info/kmod-lib-zlib-inflate.postinst.
failed to find a module named zlib_inflate
Configuring kmod-lib-zlib-deflate.
pkg_run_script: Running script //usr/lib/opkg/info/kmod-lib-zlib-deflate.postinst.
failed to find a module named zlib_deflate
write_status_files_if_changed: Nothing to be done.
hash_table: pkg-hash, 12288 bytes
        n_buckets=1024, n_elements=1672, n_collisions=839
        max_bucket_len=6, n_used_buckets=833, ave_bucket_len=2.01
        n_hits=56688, n_misses=14283
hash_table: file-hash, 12288 bytes
        n_buckets=1024, n_elements=1370, n_collisions=604
        max_bucket_len=5, n_used_buckets=766, ave_bucket_len=1.79
        n_hits=0, n_misses=1370
hash_table: obs-file-hash, 768 bytes
        n_buckets=64, n_elements=0, n_collisions=0
        max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
        n_hits=0, n_misses=0
Collected errors:
 * pkg_run_script: package "kmod-lib-zlib-inflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-inflate.postinst returned 255.
 * pkg_run_script: package "kmod-lib-zlib-deflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-deflate.postinst returned 255.
root@router:~#


Closed by  Matthias Schiffer
17.04.2018 09:29
Reason for closing:  Fixed
camel commented on 20.03.2017 14:43

forgot to add: device:
https://downloads.lede-project.org/snapshots/targets/ramips/mt7621/packages/ lede-ramips-mt7621-zbt-wg3526-squashfs-sysupgrade.bin 3840.2 KB Mon Mar 20 12:01:41 2017

Carl-Daniel Hailfinger commented on 04.08.2017 17:37

Can reproduce, but not on all targets. See  FS#951 .

aabaker commented on 11.08.2017 16:10

Fails for me too. Examining the package at http://downloads.lede-project.org/releases/17.01.2/targets/lantiq/xrx200/packages/kmod-lib-zlib-deflate_4.4.71-1_mips_24kc.ipk shows that the expected .ko module is not included in the package

Ryan Smith commented on 28.10.2017 23:55

This bug happens for me on the x86_64 platform running in VMware ESXi 6.5. I don't have my hardware router in front of me (TL-WR1043ND; a friend is borrowing it), so I can't test it at the moment, but I can probably get some testing done on it later

root@srv-mr2:/mnt/cdrom# uname -a
Linux srv-mr2 4.4.92 #0 SMP Tue Oct 17 17:46:20 2017 x86_64 GNU/Linux
root@srv-mr2:/mnt/cdrom# cat /etc/openwrt_release
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='17.01.4'
DISTRIB_REVISION='r3560-79f57e422d'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='LEDE Reboot 17.01.4 r3560-79f57e422d'
DISTRIB_TAINTS='no-all'
root@srv-mr2:/mnt/cdrom# opkg install kmod-lib-zlib-deflate
Installing kmod-lib-zlib-deflate (4.4.92-1) to root...
Downloading http://downloads.lede-project.org/releases/17.01.4/targets/x86/64/packages/kmod-lib-zlib-deflate_4.4.92-1_x86_64.ipk
Configuring kmod-lib-zlib-deflate.
Configuring kmod-lib-zlib-inflate.
failed to find a module named zlib_inflate
Collected errors:
 * pkg_run_script: package "kmod-lib-zlib-inflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-inflate.postinst returned 255.
root@srv-mr2:/mnt/cdrom# 
Project Manager
Mathias Kresin commented on 07.11.2017 08:41

I'm quite sure that all your targets have CONFIG_ZLIB_INFLATE=y in their kernel config. Therefore kmod-lib-zlib-deflate is a stub package which does effectively not contain zlib_inflate.ko.

Still no fix, but at least an explanation what is going on.  FS#893  is about the same issue but most likely easier to fix.

Project Manager
Matthias Schiffer commented on 17.04.2018 09:28

Fixed/workarounded with https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=efb6ca189641aec64ba94f0d6d4e008fb2c1668b

Fix will be in 17.01.5; in the mean time, it can be applied manually in /lib/functions.sh .

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing