LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-05-2010, 10:16 AM   #1
paleogryph
Member
 
Registered: Mar 2003
Location: SLC, UT, US
Distribution: Fedora 12
Posts: 34

Rep: Reputation: 15
Smile Fedora 12 Yum hangs


Installed F12 a few weeks ago. Everything was working fine. Then I wanted to install perl-cpan, so when I run "yum install perl-cpan", or "yum update", it hangs on "Loaded plugins: presto, refresh-packagekit".

I've let it hang there for hours, nothing ever happens.

For the first week or so, Yum worked fine, I could manually update as I've done on other Fedora versions without any issue.

In the Gnome gui I have automatic updating disabled. As far as I can tell, yum-updatesd isn't running and isn't enabled. I wanted to update things manually for a while until I got this new box "settled in".

I know I can install cpan via other methods, but this strange behavior with Yum has me worried.

Any ideas on why Yum just hangs?

TIA
 
Old 01-05-2010, 02:37 PM   #2
cg40oz
LQ Newbie
 
Registered: Dec 2009
Location: /dev/random
Posts: 15

Rep: Reputation: 0
try this (as root):
yum clean all

If you are wondering what it does:
clean Is used to clean up various things which accumulate in the yum cache directory
over time. More complete details can be found in the Clean Options section
below.
CLEAN OPTIONS
The following are the ways which you can invoke yum in clean mode. Note that "all
files" in the commands below means "all files in currently enabled repositories". If
you want to also clean any (temporarily) disabled repositories you need to use
--enablerepo=* option.

yum clean expire-cache
Eliminate the local data saying when the metadata and mirrorlists were down-
loaded for each repo. This means yum will revalidate the cache for each repo.
next time it is used. However if the cache is still valid, nothing significant
was deleted.

yum clean packages
Eliminate any cached packages from the system. Note that packages are not
automatically deleted after they are downloaded.

yum clean headers
Eliminate all of the header files which yum uses for dependency resolution.

yum clean metadata
Eliminate all of the files which yum uses to determine the remote availability
of packages. Using this option will force yum to download all the metadata the
next time it is run.

yum clean dbcache
Eliminate the sqlite cache used for faster access to metadata. Using this
option will force yum to recreate the cache the next time it is run.

yum clean all
Runs yum clean packages and yum clean headers, yum clean metadata and yum clean
dbcache as above.
 
1 members found this post helpful.
Old 01-05-2010, 02:59 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
I ran into the same issue yesterday with yum on Fedora 12. I'll second the yum clean all advice.
 
Old 01-05-2010, 03:45 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Have you tried the package-cleanup command? Look at man package-cleanup for a description of the various options. One usually starts with package-cleanup --problems to see if they're any problems, and then proceeds from there.

Note that package-cleanup is a script that uses yum so it may "hang" as well. If it's running, your disk access monitor (usually a light) should show disk activity.

If that doesn't help, download the smart package manager (by hand) from a Fedora repository and use rpm to install it. (You'll probably want to install Packagekit-smart, smart, smart-gui, and smart-update. The smart package manager is a Python program, so you'll need Python installed - which is a default installation, so that should be no problem.) Also get the fedora-package-config-smart rpm file to set up the Fedora repository access.

One nice thing about the smart program is that it does its own unpacking, so you can use it when yum is completely non-functional for some reason. I keep a copy installed just to have an alternative to yum available.

Note, however, that the default Fedora setup ignores mirror sites, so downloads are all from the central Red Hat repositories, which are often slow. If the smart developers could automate mirror site identification and usage, smart would be my choice for a "universal" package manager. (It does support all of the "major" package formats now, but its rpm package support is less developed than other formats.)
 
Old 01-22-2010, 11:13 AM   #5
paleogryph
Member
 
Registered: Mar 2003
Location: SLC, UT, US
Distribution: Fedora 12
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for all the suggestions.

I ran all the "yum clean" commands, and now yum actually displays errors:

http://mirror.svk.su/fedora/linux/re...ta/repomd.xml: [Errno 12] Timeout on http://mirror.svk.su/fedora/linux/releases/12/Everyt
hing/i386/os/repodata/repomd.xml: (28, '')
Trying other mirror.
http://mirror.datacenter.by/pub/fedo...ta/repomd.xml: [Errno 12] Timeout on http://mirror.datacenter.by/pub/fedora/releases
/12/Everything/i386/os/repodata/repomd.xml: (28, '')
Trying other mirror.

I get these errors over and over.

I read up on how to edit the /etc/yum/fedora.repo and fedora-update.repo files to fix this, BUT, I have no such files...

This is what I have:
drwxr-xr-x. 2 root root 4096 2009-12-19 15:22 pluginconf.d
-rw-r--r--. 1 root root 413 2009-10-16 14:44 version-groups.conf
[root@songs yum]# cd pluginconf.d/
[root@songs pluginconf.d]# ls -l
total 16
-rw-r--r--. 1 root root 17 2009-07-24 12:19 blacklist.conf
-rw-r--r--. 1 root root 611 2009-05-01 04:56 presto.conf
-rw-r--r--. 1 root root 18 2009-11-20 02:00 refresh-packagekit.conf
-rw-r--r--. 1 root root 17 2009-07-24 12:19 whiteout.conf
[root@songs pluginconf.d]#

The other interesting thing is that my /var/log/yum.log is 0 bytes.
Yet the yum.log-20100101 is 209709 bytes and shows all the updates I did just a month ago...

Where can I download the repo files from?
How can I fix the repository?

When I try "yum repolist" I get the same errors.

TIA
 
Old 01-22-2010, 06:28 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
First, the YUM repository files are in /etc/yum.repos.d/, which should look somewhat like this:
Code:
$ ls /etc/yum.repos.d/
adobe-linux-i386.repo        rpmfusion-free-updates.repo
fedora-rawhide.repo          rpmfusion-free-updates-testing.repo
fedora.repo                  rpmfusion-nonfree-rawhide.repo
fedora-updates.repo          rpmfusion-nonfree.repo
fedora-updates-testing.repo  rpmfusion-nonfree-updates.repo
google-chrome.repo           rpmfusion-nonfree-updates-testing.repo
rpmfusion-free-rawhide.repo  skype.repo
rpmfusion-free.repo
Second, the "timeout" error usually happens when you're trying to access a repository whilst that repository is being "refreshed" or "updated" from the master site. (Usually, Fedora posts changes to its repositories on Tuesdays and Saturdays, but that's a "usually," not an "always," and other repositories are not so regular.) Have you tried again? Repository updates can take several hours.
 
Old 01-25-2010, 02:27 PM   #7
paleogryph
Member
 
Registered: Mar 2003
Location: SLC, UT, US
Distribution: Fedora 12
Posts: 34

Original Poster
Rep: Reputation: 15
This is what is in my /etc/yum.repos.d:
fedora-rawhide.repo fedora.repo fedora-updates.repo fedora-updates-testing.repo

Now when I try to update with yum I get the same thing as before, it just hangs indefinitely on:
"Loaded plugins: presto, refresh-packagekit"
 
Old 01-25-2010, 04:47 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Well, have you turned off the automatic update (PackageKit) settings? Fedora uses YUM to run its automatic updates, and, of course, only one YUM instance can be run at one time. so, if you've got the "PackageKit" setting to "Check for updates," any YUM you start will "hang" until the "PackageKit" YUM process finishes and releases the YUM lock.

Note: I manage the PackageKit settings via the KDE interface (KPackageKit). I think that GNOME has a similar app, perhaps just a left-click on the icon in the task bar.

Last edited by PTrenholme; 01-25-2010 at 04:48 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Hangs after Yum popowich Linux - Newbie 1 05-30-2009 01:00 PM
Yum hangs for all commands tmcmillan Linux - Software 4 05-24-2007 10:56 AM
Yum hangs and is then killed gjanzen Linux - Software 3 06-26-2006 05:37 AM
rpm and Yum Hangs cryzpene Linux - Newbie 0 05-25-2004 09:07 PM
Yum hangs cryzpene Linux - Software 0 05-25-2004 02:17 AM


All times are GMT -5. The time now is 02:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration