error: %preun(keepalived-1.2.7-3.el6.x86_64) scriptlet failed, exit status 1 解决

简介: 重装 lvs 之前装了 ipvsadm 和 keepalived 用 rpm -e ipvsadm 意见通过 但 rpm -e keepalived 时,提示 [root@lvs1 ipvs]# rpm -e keepalived-1.2.7 error reading information on service keepalived: No such file or dire

重装 lvs

之前装了 ipvsadm 和 keepalived

用 rpm -e ipvsadm 意见通过

但 rpm -e keepalived 时,提示

[root@lvs1 ipvs]# rpm -e keepalived-1.2.7
error reading information on service keepalived: No such file or directory
error: %preun(keepalived-1.2.7-3.el6.x86_64) scriptlet failed, exit status 1

这上面是我删除 /etc/keepalived/*  /sbin/keepalived /etc/init.d/keepalived 之后出现的

解决如下:

查看 keepalived 完整安装包文件

[root@lvs1 ipvs]# rpm -qa | grep keepalived
keepalived-1.2.7-3.el6.x86_64


强制干掉

[root@lvs1 ipvs]# rpm -e --noscripts keepalived-1.2.7-3.el6.x86_64
[root@lvs1 ipvs]# rpm -qa | grep keepalived


解决问题


还有情况,就是在能停止 keepalived 服务情况下:

[lvs]# rpm -qa | grep keepalived
keepalived-1.2.7-3.el6.x86_64
[lvs]# rpm -qa | grep ipvsadm
ipvsadm-1.25-10.el6.x86_64
[lvs]# service keepalived stop
Stopping keepalived:                                       [  OK  ]
[lvs]# rpm -e keepalived
warning: /etc/keepalived/keepalived.conf saved as /etc/keepalived/keepalived.conf.rpmsave
[lvs]# service keepalived stop
keepalived: unrecognized service
[lvs]# rpm -qa | grep keepalived
[lvs]# rpm -e ipvsadm
[lvs]# rpm -qa | grep ipvsadm 


目录
相关文章
|
7月前
|
消息中间件
ERROR 65639 --- [Container#0-217] o.s.a.r.l.SimpleMessageListenerContainer Failed to check/redeclare
ERROR 65639 --- [Container#0-217] o.s.a.r.l.SimpleMessageListenerContainer Failed to check/redeclare
96 0
|
7月前
|
应用服务中间件 Python 容器
ERROR [ntContainer#0-1] o.s.a.r.l.SimpleMessageListenerContainer 1917: Failed to check/redeclare aut
ERROR [ntContainer#0-1] o.s.a.r.l.SimpleMessageListenerContainer 1917: Failed to check/redeclare aut
244 0
|
网络安全 Docker 容器
failed to create network error response from daemon filed to setup ip tables问题
failed to create network error response from daemon filed to setup ip tables问题
208 0
|
7月前
|
Kubernetes 容器
【kubernetes】解决k8s1.28.4:"command failed" err="failed to parse kubelet flag: unknown flag: --c...
【kubernetes】解决k8s1.28.4:"command failed" err="failed to parse kubelet flag: unknown flag: --c...
1130 0
|
7月前
|
NoSQL Redis
解决(error) ERR Errors trying to SHUTDOWN. Check logs.问题~
解决(error) ERR Errors trying to SHUTDOWN. Check logs.问题~
190 0
|
关系型数据库 MySQL 数据库
ERROR! MariaDB is running but PID file could not be found
在CentOS7.6上安装了MariaDB10.3,采用的yum方式安装的,用命令查看数据库的状态会报错误
163 0
|
C++
ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1:
319 0
ERROR: Command errored out with exit status 1:
flAbsPath on /var/lib/dpkg/status failed - realpath
flAbsPath on /var/lib/dpkg/status failed - realpath
112 0
|
应用服务中间件 nginx
[error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
[error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
gconf-sanity-check-2 exited with status 256
gconf-sanity-check-2 exited with status 256