2017-06-04 100 views
0

運行opkg install bmon後,我得到這個錯誤:無法在Openwrt下使用opkg安裝bmon?

[email protected]:~# opkg install bmon 
Installing bmon (4.0-1) to root... 
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/bmon_4.0-1_ar71xx.ipk. 
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest. 
Installing libncursesw (5.9-3) to root... 
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/libncursesw_5.9-3_ar71xx.ipk. 
Configuring iftop. 
//usr/lib/opkg/info/iftop.postinst: line 4: default_postinst: not found 
Collected errors: 
* check_data_file_clashes: Package libncursesw wants to install file /usr/lib/libform.so 
    But that file is already provided by package * libncurses 
* check_data_file_clashes: Package libncursesw wants to install file /usr/lib/libmenu.so 
    But that file is already provided by package * libncurses 
* check_data_file_clashes: Package libncursesw wants to install file /usr/lib/libncurses.so 
    But that file is already provided by package * libncurses 
* check_data_file_clashes: Package libncursesw wants to install file /usr/lib/libpanel.so 
    But that file is already provided by package * libncurses 
* opkg_install_cmd: Cannot install package bmon. 
* pkg_run_script: package "iftop" postinst script returned status 127. 
* opkg_configure: iftop.postinst returned 127. 

我尋覓了好一陣子,但有大約bmon幾個信息。

這是我opkg.conf

[email protected]:~# cat /etc/opkg.conf 
#src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages 
dest root/
dest ram /tmp 
lists_dir ext /var/opkg-lists 
option overlay_root /overlay 
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base 
src/gz chaos_calmer_packages http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages 
src/gz chaos_calmer_luci http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci 
src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing 
src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony 
src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management 

回答

0

從好像bmon對libncursesw依賴它試圖安裝的是已經可以從一些的libncurses文件中的日誌。 由於這兩個包也有類似的功能,你可以強制安裝由

opkg --nodeps install bmon

這將安裝所需的軟件包,但留下的依賴關係。