openwrt 19.07报错:module ‘luci.cbi‘ not found

最近在研究openwrt luci开发,在自定义页面的时候报了个错误:

Failed to execute cbi dispatcher target for entry '/admin/services/v2ray/global'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
.......

解决办法,分别运行以下两行命令:

opkg update
opkg install luci luci-base luci-compat

猜你喜欢

转载自blog.csdn.net/weixin_43274097/article/details/107197717