LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error while erasing a pkg (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-erasing-a-pkg-847672/)

divyashree 12-01-2010 06:06 AM

Error while erasing a pkg
 
While trying to remove a pkg by rpm it's giving the error as:

PHP Code:

rpm ---nodeps subversion
/var/tmp/rpm-tmp.91518line 7: /etc/init.d/svnserveNo such file or directory
error
: %preun(subversion-1.6.13-11.1.x86_64scriptlet failed, exit status 127 

How will I remove this package ?

TB0ne 12-01-2010 07:42 AM

Quote:

Originally Posted by divyashree (Post 4176901)
While trying to remove a pkg by rpm it's giving the error as:
PHP Code:

rpm ---nodeps subversion
/var/tmp/rpm-tmp.91518line 7: /etc/init.d/svnserveNo such file or directory
error
: %preun(subversion-1.6.13-11.1.x86_64scriptlet failed, exit status 127 

How will I remove this package ?

Again, Google could have easily told you this.

Try "rpm -e --noscripts". If that doesn't work, then try creating the file that's missing, so the "rpm -e" command can process correctly. The error message is pretty clear, and that would seem to make sense.

divyashree 12-01-2010 07:46 AM

Quote:

Originally Posted by TB0ne (Post 4177000)
Again, Google could have easily told you this.

Try "rpm -e --noscripts". If that doesn't work, then try creating the file that's missing, so the "rpm -e" command can process correctly. The error message is pretty clear, and that would seem to make sense.

Ohh thanks, it was tryiing to execute the scriptlets. The --noscripts works successfully. Thanks a lot.

TB0ne 12-01-2010 08:33 AM

Quote:

Originally Posted by divyashree (Post 4177011)
Ohh thanks, it was tryiing to execute the scriptlets. The --noscripts works successfully. Thanks a lot.

No problem. And reading the instructions/looking things up can often give you an answer, if you try.


All times are GMT -5. The time now is 03:47 AM.