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:
# 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:
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:
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.
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:
rpm -e --noscripts hudson
Or, if you feel like it, have a look at the script and try to figure out why it fails: