当遇到这样的报错:
Collected errors:
- check_data_file_clashes: Package dnsmasq-full wants to install file /etc/init.d/dnsmasq
But that file is already provided by package * dnsmasq
… - opkg_install_cmd: Cannot install package luci-app-openclash.
原因是:
系统里内置了精简版 dnsmasq;
luci-app-openclash 依赖功能更全的 dnsmasq-full;
两个包要往同一堆文件路径装,opkg 检测到冲突就拒绝。
更坑的是:内置 dnsmasq 属于“ROM 包”,opkg remove dnsmasq 还删不掉,会报:
opkg remove dnsmasq
-> Command failed: Not found
覆盖方法是直接运行命令:
opkg update
opkg install dnsmasq-full --force-overwrite
必要时再加一层(一般用不到):
opkg install dnsmasq-full --force-overwrite --force-depends
完成后确认一下:
opkg list-installed | grep dnsmasq
看到 dnsmasq-full 存在即可。
重启服务:
/etc/init.d/dnsmasq restart
此后system 里的 DHCP/DNS 服务跑在 dnsmasq-full 上。
评论前必须登录!
注册