unbuntu下云锁卸载的时候出了点问题,重新安装总是提示已经安装过了: WelcometoinstallYUNSUO. Ifyouencounteranyproblemsduringinstallation,youcanusectrl-ctocancel. checkinginstallationenvironment:[FAILED] Error:Hasbeeninstalled. 然后卸载又提示
unbuntu下云锁卸载的时候出了点问题,重新安装总是提示已经安装过了:
Welcome to install YUNSUO.
If you encounter any problems during installation, you can use ‘ctrl-c’ to cancel.checking installation environment: [ FAILED ]
Error: Has been installed.
然后卸载又提示:
cat: command_control: No such file or directory
Are you sure to uninstall?(y/n)yUninstall Success.
解决办法如下:
vi打开install,找到function check_installed()这个函数,里面的return 1改为return 0,这样就让检查是否安装的时候返回还没安装。
第二步,执行 chmod +x /usr/local/yunsuo_agent/uninstall ,给卸载程序加执行权限。然后执行/usr/local/yunsuo_agent/uninstall就可以成功卸载了。卸载完按照正常程序重新安装即可。
来源:http://www.piikee.net/1270.html