Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled

问题

在Ubuntu 13.04 里面安装了wireshark (网络嗅探神器)--发现直接在普通用户下运行wireshark。不能启动那个抓包,如图所示


改用sudo用户和su用户运行。。虽然可以使用。但是会报错

sudo wireshark


解决:修改init.lua

vim /usr/share/wireshark/init.lua    
在倒数第二行把(shift+G直接的末尾)
dofile(DATA_DIR..”console.lua”)  注释掉。。
就是前面加上--


效果

Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled_第1张图片

Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled_第2张图片

你可能感兴趣的:(Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled)