satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-storage:

来源:互联网 发布:有声单词软件下载 编辑:程序博客网 时间:2024/05/22 21:33

原文:http://www.cnblogs.com/rohens-hbg/p/5120637.html

卸载了包 :

opkg remove kmod-ath9k - 3.10.49+2014-05-22-1

重新进行安装时出现如下错误:

root@hbg:/tmp# opkg install /tmp/kmod-cfg80211_3.10.49+2014-05-22-1_ar71xx.ipk 
Installing kmod-cfg80211 (3.10.49+2014-05-22-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-cfg80211:
 *      kernel (= 3.10.49-1-935023aadcc429583511c911eb7e5dbf) * 
 * opkg_install_cmd: Cannot install package kmod-cfg80211.

查看当前编译时使用的kernel配置:

hbg@root:~/test/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kernel/CONTROL$

里面的control文件

得到:Version: 3.10.49-1-df26e12aa07bfcf42c989a3a108d9f47

跟安装时的对比

        kernel  :3.10.49-1-935023aadcc429583511c911eb7e5dbf

存在差异。

百度后,需要使用后缀 --force-depends

但是没有起作用:

 root@hbg:/tmp# opkg install /tmp/kmod-cfg80211_3.10.49+2014-05-22-1_ar71xx.ipk  --force-depends
Installing kmod-cfg80211 (3.10.49+2014-05-22-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-cfg80211:
 *      kernel (= 3.10.49-1-935023aadcc429583511c911eb7e5dbf) 

 

最后使用这个 --nodeps 解决, 但是用这种方法安装了大量的内核模块,有些功能是缺失的,最后,只好自己重新编译(不知道为什么自己编译的内核总是不如官网提供的稳定)

root@hbg:/tmp# opkg install /tmp/kmod-cfg80211_3.10.49+2014-05-22-1_ar71xx.ipk 
   --nodeps
Installing kmod-cfg80211 (3.10.49+2014-05-22-1) to root...
Configuring kmod-cfg80211

 

kernel是个匿名的隐藏包

root@OpenWrt:~# opkg install kernelPackage kernel (3.3.8-1-2a0edb5ba0d101ae0bb84a44e4344525) installed in root is up to date.

备注:
查看已经安装的模块
lsmod
 
删除模块
rmmod 模块
需要先删除关联的模块
 
删除:opkg remove   *.ipk
安装:opkg install  *.ipk
0 0
原创粉丝点击