Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#645 - kmod package postinst script returned status 255 #6460

Closed
openwrt-bot opened this issue Mar 20, 2017 · 6 comments
Closed

FS#645 - kmod package postinst script returned status 255 #6460

openwrt-bot opened this issue Mar 20, 2017 · 6 comments
Labels

Comments

@openwrt-bot
Copy link

openwrt-bot commented Mar 20, 2017

camel:

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:~#
@openwrt-bot
Copy link
Author

openwrt-bot commented Mar 20, 2017

camel:

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

@openwrt-bot
Copy link
Author

openwrt-bot commented Aug 4, 2017

hailfinger:

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

@openwrt-bot
Copy link
Author

openwrt-bot commented Aug 11, 2017

aabaker:

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

@openwrt-bot
Copy link
Author

openwrt-bot commented Oct 28, 2017

computergeek125:

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#

@openwrt-bot
Copy link
Author

openwrt-bot commented Nov 7, 2017

mkresin:

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.

@openwrt-bot
Copy link
Author

openwrt-bot commented Apr 17, 2018

NeoRaider:

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant