openwrt module ‘luci.cbi.datatypes‘ not found解决方法

/usr/lib/lua/luci/controller/openclash.lua:102: module 'luci.cbi.datatypes' not found:
	no field package.preload['luci.cbi.datatypes']
	no file './luci/cbi/datatypes.lua'
	no file '/usr/share/lua/luci/cbi/datatypes.lua'
	no file '/usr/share/lua/luci/cbi/datatypes/init.lua'
	no file '/usr/lib/lua/luci/cbi/datatypes.lua'
	no file '/usr/lib/lua/luci/cbi/datatypes/init.lua'
	no file './luci/cbi/datatypes.so'
	no file '/usr/lib/lua/luci/cbi/datatypes.so'
	no file '/usr/lib/lua/loadall.so'
	no file './luci.so'
	no file '/usr/lib/lua/luci.so'
	no file '/usr/lib/lua/loadall.so'
stack traceback:
	[C]: in function 'require'
	/usr/lib/lua/luci/controller/openclash.lua:102: in main chunk
	[C]: in function 'require'
	/usr/lib/lua/luci/dispatcher.lua:1136: in function 'createindex'
	/usr/lib/lua/luci/dispatcher.lua:1237: in function 'createtree'
	/usr/lib/lua/luci/dispatcher.lua:639: in function 'menu_json'
	/usr/lib/lua/luci/dispatcher.lua:888: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:483: in function 

解决方法:

opkg update

opkg install luci-compat 

如果遇到不存在的情况:

vi /etc/opkg/distfeeds.conf

src/gz openwrt_luci https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a9/luci
查看是否有luci的一行,没有的话依据文件上面的添加。

然后重新运行上面的两句。

你可能感兴趣的:(openwrt)