rpm erase fails on Linux
# rpm -e maui-3.3-alt1.1.x86_64
/var/tmp/rpm-tmp.FJADIo: line 1: /usr/sbin/preun_service: No such file or directory
error: %preun(maui-3.3-alt1.1.x86_64) scriptlet failed, exit status 127
error: maui-3.3-alt1.1.x86_64: erase failed
Tried with yum also, doesn't work.
# yum remove maui-3.3-alt1.1.x86_64
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package maui.x86_64 0:3.3-alt1.1 will be erased
--> Finished Dependency Resolution
base/7/x86_64 | 3.6 kB 00:00
extras/7/x86_64 | 3.4 kB 00:00
updates/7/x86_64 | 3.4 kB 00:00
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
maui x86_64 3.3-alt1.1 installed 3.0 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 3.0 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
/var/tmp/rpm-tmp.ocZcPk: line 1: /usr/sbin/preun_service: No such file or directory
error: %preun(maui-3.3-alt1.1.x86_64) scriptlet failed, exit status 127
Error in PREUN scriptlet in rpm package maui-3.3-alt1.1.x86_64
Verifying : maui-3.3-alt1.1.x86_64 1/1
Failed:
maui.x86_64 0:3.3-alt1.1
Complete
# rpm -qa | grep -i maui
maui-3.3-alt1.1.x86_64
It works with below command
# rpm -e maui-3.3-alt1.1.x86_64 --noscripts
warning: /var/spool/maui/maui-private.cfg saved as /var/spool/maui/maui-private.cfg.rpmsave
# rpm -qa | grep -i maui
#
# rpm -e maui-3.3-alt1.1.x86_64
/var/tmp/rpm-tmp.FJADIo: line 1: /usr/sbin/preun_service: No such file or directory
error: %preun(maui-3.3-alt1.1.x86_64) scriptlet failed, exit status 127
error: maui-3.3-alt1.1.x86_64: erase failed
Tried with yum also, doesn't work.
# yum remove maui-3.3-alt1.1.x86_64
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package maui.x86_64 0:3.3-alt1.1 will be erased
--> Finished Dependency Resolution
base/7/x86_64 | 3.6 kB 00:00
extras/7/x86_64 | 3.4 kB 00:00
updates/7/x86_64 | 3.4 kB 00:00
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
maui x86_64 3.3-alt1.1 installed 3.0 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 3.0 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
/var/tmp/rpm-tmp.ocZcPk: line 1: /usr/sbin/preun_service: No such file or directory
error: %preun(maui-3.3-alt1.1.x86_64) scriptlet failed, exit status 127
Error in PREUN scriptlet in rpm package maui-3.3-alt1.1.x86_64
Verifying : maui-3.3-alt1.1.x86_64 1/1
Failed:
maui.x86_64 0:3.3-alt1.1
Complete
# rpm -qa | grep -i maui
maui-3.3-alt1.1.x86_64
It works with below command
# rpm -e maui-3.3-alt1.1.x86_64 --noscripts
warning: /var/spool/maui/maui-private.cfg saved as /var/spool/maui/maui-private.cfg.rpmsave
# rpm -qa | grep -i maui
#
No comments:
Post a Comment