重新安装td-agent时出现问题:
无论是yum, 还是用命令:curl -L http://toolbelt.treasure-data.com/sh/install-redhat.sh | sh
都现在包已经安装的提示:
包 td-agent-2.2.1-0.el6.x86_64 已安装并且是最新版本
无须任何处理
但是删除或reinstall时,提示:
1 2 3 4 5 6 7 8 9 10 11 |
Error in PREUN scriptlet in rpm package td-agent Stopping td-agent ... 在 td-agent 服务中读取信息时出错:没有那个文件或目录 error: %preun(td-agent-2.2.1-0.el6.x86_64) scriptlet failed, exit status 1 td-agent-2.2.1-0.el6.x86_64 was supposed to be removed but is not! Verifying : td-agent-2.2.1-0.el6.x86_64 1/1 Failed: td-agent.x86_64 0:2.2.1-0.el6 完毕! |
google是个好东西,找到一篇:http://serverfault.com/questions/613256/trying-to-remove-packages-with-yum-however-it-is-failing
1 2 3 4 5 6 |
Try running the next command: # su -c 'yum --setopt=tsflags=noscripts remove zarafa*' If that doesn't work, try this: # su -c 'rpm -e --noscripts zarafa*' |
果断运行如下命令:
1 |
su -c 'yum --setopt=tsflags=noscripts remove td-agent*' |
删除成功!
0 Comments