Fedora Linux Support Community & Resources Center
  #1  
Old 16th September 2010, 07:21 PM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfedorafirefox
Unable to erase an old package.

Any ideas how to overcome this error?
Code:
[gene@Mobile-PC ~]$ yum list installed gpm*
...
Installed Packages
gpm.x86_64                               1.20.6-10.fc14                         @updates-testing
gpm.x86_64                               1.20.6-11.fc14                         @fedora         
gpm-devel.x86_64                         1.20.6-11.fc14                         @fedora         
gpm-libs.x86_64                          1.20.6-11.fc14                         @updates-testing

[gene@Mobile-PC ~]$ sudo rpm --erase --verbose gpm-1.20.6-10.fc14.x86_64
/var/tmp/rpm-tmp.t4Fzm1: line 8: syntax error: unexpected end of file
error: %preun(gpm-1.20.6-10.fc14.x86_64) scriptlet failed, exit status 2
Thanks,
dd_wizard

---------- Post added at 11:21 AM CDT ---------- Previous post was at 10:51 AM CDT ----------

Here's a little more info. I downgraded gpm* to 1.20.6-10.fc14, then reinstalled the stuck package just to be sure. Then I did an update and got this:
Code:
Running Transaction
  Updating       : gpm-libs-1.20.6-11.fc14.x86_64                                           1/6 
  Updating       : gpm-1.20.6-11.fc14.x86_64                                                2/6 
  Updating       : gpm-devel-1.20.6-11.fc14.x86_64                                          3/6 
  Cleanup        : gpm-devel-1.20.6-10.fc14.x86_64                                          4/6 
Error in PREUN scriptlet in rpm package gpm
  Cleanup        : gpm-libs-1.20.6-10.fc14.x86_64                                           5/6 
/var/tmp/rpm-tmp.PzTbRt: line 8: syntax error: unexpected end of file
error: %preun(gpm-1.20.6-10.fc14.x86_64) scriptlet failed, exit status 2
gpm-1.20.6-10.fc14.x86_64 was supposed to be removed but is not!
Looking at yum history shows this from the original update to 1.20.6-11:
Code:
49 /var/tmp/rpm-tmp.hk0inP: line 8: syntax error: unexpected end of file
50 error: %preun(gpm-1.20.6-10.fc14.x86_64) scriptlet failed, exit status 2
history info
So this package was never cleaned up, even after the original update.

Was that update broken for anybody else? If you want to check, the following commands will be useful:
Code:
yum list installed gpm*

yum history list gpm-1.20.6-11*

yum history info nnn
  where nnn is the transaction number from the previous command
Thanks again,
dd_wizard

Last edited by dd_wizard; 16th September 2010 at 07:23 PM.
  #2  
Old 16th September 2010, 07:55 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxfirefox
Re: Unable to erase an old package.

You could try,

sudo rpm --erase --noscripts --verbose gpm-1.20.6-10.fc14.x86_64
  #3  
Old 16th September 2010, 08:02 PM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfedorafirefox
Re: Unable to erase an old package.

Thanks PabloTwo, that worked. I haven't used the --noscripts option before.

dd_wizard
 

Tags
erase, package, unable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
YUM ERASE ... wants to erase 1208 packages? MPvDdB Installation and Live Media 19 26th July 2010 03:29 AM
Unable to locate installed package awmian Using Fedora 1 20th September 2008 03:15 AM
unable to install Rpm package apit86 Installation and Live Media 3 30th June 2008 04:42 PM
Unable to locate RPM package? Necron Using Fedora 7 11th October 2005 12:55 AM
Unable to install package xxx poet Installation and Live Media 14 27th August 2005 04:34 PM


Current GMT-time: 08:52 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat