Results 1 to 3 of 3

Thread: zypper remove: Error: Subprocess failed. Error: RPM failed:

  1. #1

    Default zypper remove: Error: Subprocess failed. Error: RPM failed:

    Hi all,
    I stupidly installed Hudson using zypper.
    Unforunately Hudson provides updates itself, which I stupidly activated. Now it seems I can't get rid of Hudson via zypper:

    Code:
    # zypper remove hudson 
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...
    
    The following package is going to be REMOVED:
      hudson 
    
    1 package to remove.
    After the operation, 25.7 MiB will be freed.
    Continue? [y/n/?] (y): y
    Removing hudson-1.314-1.1 [error]
    Removal of (29975)hudson-1.314-1.1.noarch(@System) failed:
    Error: Subprocess failed. Error: RPM failed: ..failed
    error: %preun(hudson-1.314-1.1.noarch) scriptlet failed, exit status 1
    
    
    Abort, retry, ignore? [a/r/i] (a):
    I have tried:
    Code:
    zypper install --force hudson # This went fine
    zypper remove  hudson
    zypper remove --force-resolution hudson
    rpmdb --rebuilddb
    Anyother suggestions?

    I know: zypper's perfect and its the operator that's done somthing silly. So no flagelation please
    Netbook: Ubuntu 9.04 | Eeepc 1000 | 2GB RAM | Atom N280 1.66GHz | ASUS-JM S81 SSD
    Laptop: openSUSE 11.1 | Inspiron 9300 | 2GB RAM | Pentium M 2.00GHz | (KDE4.2.4) | Nvidia GeForce Go 6800 | Fujitsu MHV2100A
    Cloud: EC2 | Ubuntu 8.04 | Chef

  2. #2

    Default Re: zypper remove: Error: Subprocess failed. Error: RPM failed:

    Quote Originally Posted by hedge_hog View Post
    Hi all,
    I stupidly installed Hudson using zypper.
    Unforunately Hudson provides updates itself, which I stupidly activated. Now it seems I can't get rid of Hudson via zypper:

    Code:
    # zypper remove hudson 
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...
    
    The following package is going to be REMOVED:
      hudson 
    
    1 package to remove.
    After the operation, 25.7 MiB will be freed.
    Continue? [y/n/?] (y): y
    Removing hudson-1.314-1.1 [error]
    Removal of (29975)hudson-1.314-1.1.noarch(@System) failed:
    Error: Subprocess failed. Error: RPM failed: ..failed
    error: %preun(hudson-1.314-1.1.noarch) scriptlet failed, exit status 1
    
    
    Abort, retry, ignore? [a/r/i] (a):
    I have tried:
    Code:
    zypper install --force hudson # This went fine
    zypper remove  hudson
    zypper remove --force-resolution hudson
    rpmdb --rebuilddb
    Anyother suggestions?

    I know: zypper's perfect and its the operator that's done somthing silly. So no flagelation please
    The advice from this post has helped me. I had to run throw this a few times I think. Each time I could go throw more packages.
    Just repeat this:
    Code:
    sudo rpm --rebuilddb && sudo zypper clean -a && sudo zypper ref
    sudo zypper refresh; sudo zypper up
    I got into this trouble situation that I was updating packages on my laptop with OpenSuSe 13.1 and had to leave home, so I had closed the lid and suspend the laptop. When woken up my laptop the upgrade failed with an error and since that time I couldn't perform and update.

  3. #3

    Default Re: zypper remove: Error: Subprocess failed. Error: RPM failed:

    Quote Originally Posted by hedge_hog View Post
    Code:
    # zypper remove hudson 
    ...
    Removal of (29975)hudson-1.314-1.1.noarch(@System) failed:
    Error: Subprocess failed. Error: RPM failed: ..failed
    error: %preun(hudson-1.314-1.1.noarch) scriptlet failed, exit status 1
    The pre-uninstall script in the hudson package (i.e. a script that's contained in the package and is specified to be run before the package is uninstalled) fails for some reason.
    Not at all a zypper problem.

    Try to remove it like this:
    Code:
    rpm -e --noscripts hudson
    Or, if you feel like it, have a look at the script and try to figure out why it fails:
    Code:
    rpm -q --scripts hudson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •