Q:安装ipk出现错误提示。
Collected errors:
- pkg_get_installed_files: Failed to open //usr/lib/opkg/info/luci-i18n-unblockmusic-zh-cn.list: No such file or directory.
创建一个文件,里面写下面的,重命名文件为 luci-i18n-unblockmusic-zh-cn.list
把文件,传到路由的 /usr/lib/opkg/info 这个目录里
/usr/lib/lua/luci/i18n/unblockmusic.zh-cn.lmo
/etc/uci-defaults/luci-i18n-unblockmusic-zh-cn
Q: ipk 软件包安装
方法一、web安装
系统--》软件包
先点更新软件包清单
填入软件包网址,然后点ok
方法二、ssh连接路由命令安装
或者用ssh软件PuTTY连接路由器
PuTTY下载地址:http://openwrt.8800.org:82/PuTTY_SSH_Telnet程序.rar
opkg update
opkg install 软件包网址
或者用winscp连接路由 然后上传包到/tmp/下
opkg update
opkg install /tmp/xxx.ipk
winscp(用于管理路由上的文件 类似FTP)
date:2018-8-31
卸载软件
opkg remove
Q: Openwrt下Read-only file system处理
采用e2fsck命令修复inode
ssh登录后执行命令 e2fsck -a /dev/mmcblk0p2
重新挂载根目录,以读写方式挂载
当我ssh到系统操作文件的时候,遇到了一个问题,在etc目录下,无法使用rm/mv命令
会提示Read-only file system
后来找到了一个解决办法,执行如下命令
mount -o remount rw /
以读写方式重新挂载根目录,即文件系统,再次执行rm/mv等命令正常
Q: openwrt opkg install 安装 xxx 提示Package xxx wants to install file xxx But that file is already provided by package *xxx 依赖包问题导致无法安装的解决办法
首先
opkg update
然后安装 opkg install lighttpd lighttpd-mod-webdav lighttpd-mod-auth l ighttpd-mod-authn_file
解决办法就是 加上 –nodeps –force-depends 的强制安装参数
opkg –nodeps install lighttpd-mod-webdav –force-depends
参数说明:
–force-depends means 在安装、删除软件包时无视失败的依赖
–nodeps means 不跟踪依赖,忽略依赖
发表评论