FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
It doesn't respond to ctrl+c, closing the terminal, or "killall yum" as root, and if I try to start it again I get an error message about an existing lock that I'm unable to remove.
I periodically have yum problems in FC5. I don't know what causes it, but killing with signal 9 works. That said, I don't know how to fix the problem except to wait
the latter being the debugging level (which you can alter if you are getting too much garbage. You can then troubleshoot the problem or post back the last few lines where it hangs and I'll be happy to have a look.
Yum Version: 3.0.1
COMMAND: yum -d 10 --noplugins
Installroot: /
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Setting up Package Sacks
Reading Local RPMDB
before it got stuck again.
So I thought I'd try
Quote:
# rpm --rebuilddb
, but that has now got stuck as well.
What can I do next?
p.s. I'm unable to kill the rpm --rebuilddb command, even with killall -9 rpm
That's basically what's suggested on the page snecklifter referred to and it worked fine. The link also explained how the db may gave got corrupted: nice reading.
Just one last question. I ran yum with the -d 10 option and saw this run across the screen:
Quote:
Building updates object
Traceback (most recent call last):
File "/usr/lib/python2.4/logging/__init__.py", line 731, in emit
msg = self.format(record)
File "/usr/lib/python2.4/logging/__init__.py", line 617, in format
return fmt.format(record)
File "/usr/lib/python2.4/logging/__init__.py", line 405, in format
record.message = record.getMessage()
File "/usr/lib/python2.4/logging/__init__.py", line 276, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
I used yumex to do a partial update (which went fine) and fired it up again a little later to install something. However, this time yumex never got past the initialization. I decided to wait patiently, but after 3 hours (3!!) I finally killed it. However if I now try to run yum I get a lock error:
Quote:
Existing lock /var/run/yum.pid: another copy is running. Aborting.
Both "killall -9 yum" and "killall -9 yumex turn up "no process killed", but I still have a lock and so no yum. (couldn't find a smily pulling out its hair)
I've had a look at both purit and Pup, and I can't say I'm impressed. At least as far as ease of use and available options are concerned.
Purit appears to only allow you to add or remove software, not update. Pup doesn't appear to allow me to select which source(s) I wan't to use to provide my updates
You can edit the sources by editing each repository's .repo file under /etc/yum.repos.d/
Change enabled to 0 and then pup will reflect this. If you are regularly having to enable and disable repositories then you need to consolidate. Core, Extras + Livna are usually enough for most. If you need to use ATrpms then enable freshrpms at the same time but exclude Livna permanently - this usually works for me.
How long it takes to rebuild a rpm database ? just cca ?
Because I just ended Up with the same problem with yum stucked. I needed to SIGHUP him and deleted "__db.*" files to unlock access to him once more. On my next try I get stucked again. I have done the same thing as before to try to solve it with addition I deleted the whole YUM cache directory { with back-up ofcoarse } and a tryed to install package I desired once again .. and now it is almost 1hour 30min and yum takes still 98% CPU and ended up with
#yum install mplayer
~~output ommited~~
.
.
.
~~output ommited~~
Added 5985 new packages, deleted 0 old in 228.78 sek.
Resolving Dependencies
--> populating transaction ...
---> Downloading Header for mplayer
mplayer-1.0-0.28.pre8.fc5 |=============================| 29kB 00:02
---> package set to to be updated
--> Runnung Transaction test
{{ srr for this non copy paste reply but for a good reason I am unable to copy paste the terminal output. }}
and this I see for about an hour and a half ... what is happening? .. I am thinking that rpm database is corrupted but shoud I leave yum running for a while? or SIGHUP and start rebuilding rpm database?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.