LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2006, 05:31 PM   #1
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Rep: Reputation: 15
Uninstall successful, rpm returns error message


In attempt to uninstall the j2sdk.rpm, the process went well, accept for the error message i got for feedback - which is as follows:

rpm -e j2sdk
/var/tmp/rpm-tmp.18530: line 107: unexpected EOF while looking for matching ``'
/var/tmp/rpm-tmp.18530: line 123: syntax error: unexpected end of file
error: %postun(j2sdk-1.4.2_13-fcs.i586) scriptlet failed, exit status 2

Ok, the /usr/java/j2sdk folder was removed, but what is this all about? Now even when I query the rpm database for j2sdk, I get the message that it is installed on my system. But, when I try to uninstall it again:

# rpm -e j2sdk
touch: cannot touch `/usr/java/j2sdk1.4.2_13/lib/tools.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/jre/lib/rt.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/jre/lib/jsse.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/jre/lib/charsets.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/jre/lib/ext/localedata.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/jre/lib/plugin.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/jre/javaws/javaws.pack': No such file or directory
touch: cannot touch `/usr/java/j2sdk1.4.2_13/lib/unpack': No such file or directory
error: %preun(j2sdk-1.4.2_13-fcs.i586) scriptlet failed, exit status 1

Although the package doesn't exist on my system, which was the point, it's still a little bit annoying having record in rpmdb of something that isn't there...
Can any of you folks tell me how do I correct this?
 
Old 11-27-2006, 06:09 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,735

Rep: Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523
This might work:
Code:
   REBUILD DATABASE OPTIONS
       The general form of an rpm rebuild database command is

       rpm  {--initdb|--rebuilddb}  [-v]  [--dbpath DIRECTORY] [--root DIREC-
       TORY]

       Use --initdb to create a new database, use --rebuilddb to rebuild  the
       database indices from the installed package headers.
but take a backup first.
 
Old 11-28-2006, 07:42 AM   #3
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01
This might work:
Code:
   REBUILD DATABASE OPTIONS
       The general form of an rpm rebuild database command is

       rpm  {--initdb|--rebuilddb}  [-v]  [--dbpath DIRECTORY] [--root DIREC-
       TORY]

       Use --initdb to create a new database, use --rebuilddb to rebuild  the
       database indices from the installed package headers.
but take a backup first.
To take a backup of my rpmdb that is? Right?

At first, I thought it could be done by rebuilding the database, but I was wondering if there was an easier way to do it.

Now, do I rebuild it or create a new one? Suggestions?
 
Old 11-28-2006, 10:37 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Try,
Code:
#rpm -e --noscripts j2sdk
 
Old 11-28-2006, 10:50 AM   #5
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks! It worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
`su' returns error message anindyanuri Linux - Software 6 10-08-2005 05:00 PM
rpm -e uninstall error qazwsx27 Linux - Software 1 06-19-2005 02:19 PM
# /sbin/lilo returns incorrect error message Bruce Hill Slackware 5 11-24-2004 02:29 PM
RPM error message mikeshn Linux - General 3 12-02-2003 12:13 PM
RPM error message. What gives? gomer1701ems Linux - Software 1 06-13-2001 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration