0

运行后opkg install bmon,我收到此错误:

root@OpenWrt:~# 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

root@OpenWrt:~# 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
4

1 回答 1

1

从日志看来,bmon 似乎依赖于 libncursesw,它试图安装一些已经从 libncurses 中可用的文件。由于这两个软件包具有相似的功能,您可以通过以下方式强制安装

opkg --nodeps 安装 bmon

这将安装所需的包,但保留依赖项。

于 2017-06-05T09:13:21.780 回答