Fixing:insert_modules not found

时间:2024-03-23 16:36:38

搞linux的最怕的就是panic。满屏的报错不知头绪,百度出来的还都是抄来抄去的垃圾。

我遇到的错误已经解决,所以不想再看到报错了。。google出来两个没有上下文的文本,因为和他们差不多,在下面贴出来供百度用户们搜索。。:

解决办法是:打开/usr/lib/opkg/info/XXX.postinst  把里面第四行改成load_modules。Enjoy!

opkg install qos-scripts   #(whatever)
Package qos-scripts (1.2.1-6) installed in root is up to date.
Configuring kmod-sched-core.
//usr/lib/opkg/info/kmod-sched-core.postinst: line 4: insert_modules: not found
Configuring kmod-ipt-conntrack-extra.
//usr/lib/opkg/info/kmod-ipt-conntrack-extra.postinst: line 4: insert_modules: n ot found
Configuring kmod-sched-connmark.
//usr/lib/opkg/info/kmod-sched-connmark.postinst: line 4: insert_modules: not fo und
Configuring kmod-lib-textsearch.
//usr/lib/opkg/info/kmod-lib-textsearch.postinst: line 4: insert_modules: not fo und
Configuring kmod-ipt-filter.
//usr/lib/opkg/info/kmod-ipt-filter.postinst: line 4: insert_modules: not found
Configuring kmod-ifb.
//usr/lib/opkg/info/kmod-ifb.postinst: line 4: insert_modules: not found
Configuring kmod-ipt-ipopt.
//usr/lib/opkg/info/kmod-ipt-ipopt.postinst: line 4: insert_modules: not found
Collected errors:
* pkg_run_script: package "kmod-sched-core" postinst script returned status 12 .
* opkg_configure: kmod-sched-core.postinst returned 127.
* pkg_run_script: package "kmod-ipt-conntrack-extra" postinst script returned tatus 127.
* opkg_configure: kmod-ipt-conntrack-extra.postinst returned 127.
* pkg_run_script: package "kmod-sched-connmark" postinst script returned statu 127.
* opkg_configure: kmod-sched-connmark.postinst returned 127.
* pkg_run_script: package "kmod-lib-textsearch" postinst script returned statu 127.
* opkg_configure: kmod-lib-textsearch.postinst returned 127.
* pkg_run_script: package "kmod-ipt-filter" postinst script returned status 12 .
* opkg_configure: kmod-ipt-filter.postinst returned 127.
* pkg_run_script: package "kmod-ifb" postinst script returned status 127.
* opkg_configure: kmod-ifb.postinst returned 127.
* pkg_run_script: package "kmod-ipt-ipopt" postinst script returned status 127
* opkg_configure: kmod-ipt-ipopt.postinst returned 127.