- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: rpm error...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 06:50 AM
06-01-2005 06:50 AM
rpm error...
I am getting an rpm error when trying to un-install a package on redhat advance server 4. Below is the error:
D: ========== --- MQSeriesClient-5.3.0-2 i386-Linux 0x0
D: erase: MQSeriesClient-5.3.0-2 has 17 files, test = 0
D: opening db index /var/lib/rpm/Name create mode=0x42
D: read h# 1399 Header sanity check: OK
D: opening db index /var/lib/rpm/Triggername create mode=0x42
D: erase: %preun(MQSeriesClient-5.3.0-2.i386) asynchronous scriptlet start
D: erase: %preun(MQSeriesClient-5.3.0-2.i386) execv(/bin/sh) pid 1302
D: erase: waitpid(1302) rc 1302 status ff00 secs 0.000
error: %preun(MQSeriesClient-5.3.0-2.i386) scriptlet failed, exit status 255
Any idea? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 07:19 AM
06-01-2005 07:19 AM
Re: rpm error...
Verify if there is any process running ownning some file that belongs to that software (MQSeries Client). May be that is the problem.
Regards,
Xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 09:23 AM
06-01-2005 09:23 AM
Re: rpm error...
D: erase: waitpid(1302) rc 1302 status ff00 secs 0.000
This is waiting for PID 1302 to finish up cleanly. For some reason, it fails, causing the error on the next line.
To find out what files are involved, use 'rpm -ql MQSeriesClient'.
If you want to find out what it's actually doing, you can issue 'rpm -q --scripts MQSeriesClient', under the PreUninstall and PostUninstall sections.
From there, stop any services or running programs that match the file list, and try removing the RPM again.
If it still fails, then try removing without running the scripts, then manually walking through the uninstall scripts (rpm -e --noscripts MQSeriesClient).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 02:33 PM
06-01-2005 02:33 PM
Re: rpm error...
error: %preun(squid-2.5.STABLE6-3.i386) scriptlet failed, exit status 255. which is the same error.
Taking your suggestion to see what is behind the hood, i dump out the script:
preuninstall scriptlet (using /bin/sh):
'if [ $1 = 0 ] ; then
service squid stop >/dev/null 2>&1
rm -f /var/log/squid/*
/sbin/chkconfig --del squid
fi
postuninstall scriptlet (using /bin/sh):
if [ "$1" -ge "1" ] ; then
service squid condrestart >/dev/null 2>&1
fi'
it is puking on "preuninstall scriptlet (using /bin/sh):". For some reasons it does not recognize that line. Any idea? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 04:31 PM
06-01-2005 04:31 PM
Re: rpm error...
If it isn't, that will be causing some of your issues. Other than that though, that seems really odd.
I'd verify your RPM installations and ensure that you've not corrupted ('rpm -V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 06:16 PM
06-01-2005 06:16 PM
Re: rpm error...
I second stuart's word. check whether /bin/sh link exists and it points to /bin/bash.
second, try executing the specified preuninstall commands manually and see whether they are working as expected.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 04:28 AM
06-02-2005 04:28 AM
Re: rpm error...
prelink: /usr/lib/rpm/rpmdb_svc: at least one of file's dependencies has changed since prelinking
prelink: /usr/lib/rpm/rpmdb_verify: at least one of file's dependencies has changed since prelinking
prelink: /usr/lib/rpm/rpmi: at least one of file's dependencies has changed since prelinking
prelink: /usr/lib/rpm/rpmk: at least one of file's dependencies has changed since prelinking
prelink: /usr/lib/rpm/rpmq: at least one of file's dependencies has changed since prelinking
Any idea? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 04:29 AM
06-02-2005 04:29 AM
Re: rpm error...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 04:34 AM
06-02-2005 04:34 AM
Re: rpm error...
if you feel this is rpm error then try upgrading rpm to a newer version. and/or try rebuilding rpm database by rpm --rebuilddb
i hope somebody else might have better solution to this.
Regards,
Gopi