Yast hangs on rpm install

Hi,

I’m having a problem that Yast hangs when trying to install an rpm (I’m trying to install ‘meld’).

It sits there and does nothing after download (I’ve tried leaving it for a couple of hours). Checking ps -x gives me a ‘D’ in the stat column for the rpm -i command of the package yast is trying to install.

I end up having to kill -9 the pid and then aborting within yast (I can’t just abort in yast because I’m unable to click any of the buttons while it’s waiting)

I’ve tried rpm -qa which does provide a list of my installed packages and I’ve also tried rm -f /var/lib/rpm/__* ; rpm -vv --rebuilddb which does successfully rebuild my db.

However, after these, I do run into the same problems.

I’ve also tried db_verify Packages which doesn’t give any errors.

I know my first port of call should possibly have been to restart my computer, but I can’t do that until later on this evening because I’ve had it doing things. I just wanted to see if anyone had any other thoughts?

I’ll restart when my computer is free from what it’s doing and if that resolves I’ll close this :slight_smile:

Thanks,

Matt

(btw, I’m running 11.1 in KDE)

Webpin

I tried that when I first looked for meld…it stalls at 0% on “Installing meld-1.3.0-2.4.noarch.rpm”

wildmanmatt adjusted his/her AFDB on Friday 14 Aug 2009 21:56 to write:

>
> I tried that when I first looked for meld…it stalls at 0% on
> “Installing meld-1.3.0-2.4.noarch.rpm”
>
>

What happens if you use the command line instead of YaST?

rpm -Ivh meld-1.3.0-2.4.noarch.rpm

Or even put --force on the end to see what output you get and force the
install but do beware there can be wyrms going that way but as it is only
one rpm I doubt it will mess anything up.

HTH

Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

maybe you mean

rpm -ihv meld-1.3.0-2.4.noarch.rpm

I will not use the force first. Try the first one and look for the error if it fails.
Maybe there are dependencies blocking the way.

caf4926 adjusted his/her AFDB on Saturday 15 Aug 2009 03:46 to write:

>
> maybe you mean
>
> Code:
> --------------------
> rpm -ihv meld-1.3.0-2.4.noarch.rpm
> --------------------
>
>

Thanks caf,

Yep my bad, actually it would probably be better to use -Uvh instead.

To the OP the U ( uppercase ) will update if already installed and/or
install if it is not previously installed so is a better way of doing it.

Also in you first post you did all sorts of wonderful things to update the
db but to save time you only need to do:

rpm --rebuilddb

This has the same affect but is quicker to type

:slight_smile:

HTH


Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

Thanks for your help… The solutions posted didn’t seem to resolve the problems, but something seems to have done…

I said that I hadn’t restarted, well, I did.

However, that didn’t resolve the problem. I decided to get on with it and just leave rpms (hey, I can live with ./configure, make, make install I guess), but then after a second restart, I tried to install with YaST again and for some reason it just worked.

Maybe there was something stuck that just needed to be worked out?

Strange…

wildmanmatt adjusted his/her AFDB on Saturday 22 Aug 2009 22:36 to write:

>
> However, that didn’t resolve the problem. I decided to get on with it
> and just leave rpms (hey, I can live with ./configure, make, make
> install I guess), but then after a second restart, I tried to install
> with YaST again and for some reason it just worked.
>
> Maybe there was something stuck that just needed to be worked out?
>
> Strange…
>
>

Could have been caused by a stale lock file on Yast that made the system
think that Yast was already running.

This can be caused by a crash and the file not being deleted.

HTH

Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum