RPM hangs on install/erase/update when scripts are included
Hi!
I have suddenly got problems updating, erasing and instaling RPM-packages on my Fedora 8. It just hangs there and the only way to release it, is by killing the process from another console or Ctrl-Z. This problem only seems to occur on RPM-packages that has builtin post-, preinstall/uninstall scripts. Like this: Code:
bash# rpm -U -vvvv at-3.1.10-19.fc8.i386.rpm I have tried to Code:
rm -f /var/lib/rpm/__db*; rpm --rebuilddb Running strace on the pid of my hanging rpm process, shows this: Code:
bash# strace -p 3353 I've been googling around a lot, but can't find any solution.. Please, help! |
Quote:
Quote:
|
Yup. When running with the --no-scripts option, it doesn't hang..
Hmm, and when checking my yum.log to see when it last worked, it looks like my RPM problems started after 5:th Dec, when done with these updates/installs: Code:
Dec 05 20:27:40 Updated: yum - 3.2.7-2.fc8.noarch |
It's clear some yum and RPM stuff got upgraded. I'd definately get on the F8 user mailing list /bug tracker with this.
Now I don't know how mad your CLI skills are (so below may be horror to you) but until you fix it there's a way to extract scriptlets and run them. Here's an example how, maybe somebody is willing to make it a nice script. Say you got a rpm called "my.rpm". You can query it for what scripts it runs with 'rpm -qp --scripts my.rpm'. Since there's only a few possibilities you can find out which one you'll need with 'rpm -qp --scripts my.rpm|grep -n '^p.*scriptlet.*:$'' and it'll return something like this: Code:
1:postinstall scriptlet (using /bin/sh): |
Thanks for your kind help!
I think I managed to solve the problem now, by simply uninstalling package "yum-updatesd". Directly after uninstall, RPM-command started to work again. Strangely enough, RPM still works flawlessly after reinstalling "yum-updatesd" back to the system. Not sure what happened here.. :rolleyes: but it's working! |
Well done fixing things yourself!
|
All times are GMT -5. The time now is 02:49 AM. |