Ask Your Question
0

Yum will not update - [Errno 12] Cannot allocate memory

asked 2013-01-01 17:35:36 -0500

Sebxxx gravatar image

updated 2013-09-09 07:11:45 -0500

FranciscoD_ gravatar image

My Fedora 17 can't make any software update because Yum seems to be crashed. This is the problem:

> Traceback (most recent call last):  
> File "/bin/yum", line 29, in <module>
>     yummain.user_main(sys.argv[1:], exit_code=True)   File
> "/usr/share/yum-cli/yummain.py", line
> 319, in user_main
>     errcode = main(args)   File "/usr/share/yum-cli/yummain.py", line
> 227, in main
>     return_code = base.doTransaction()   File "/usr/share/yum-cli/cli.py", line
> 559, in doTransaction
>     problems = self.downloadPkgs(downloadpkgs,
> callback_total=self.download_callback_total_cb)
> File
> "/usr/lib/python2.7/site-packages/yum/__init__.py",
> line 2280, in downloadPkgs
>     urlgrabber.grabber.parallel_wait()   File
> "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py",
> line 2246, in parallel_wait
>     start(opts, 1)   File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py",
> line 2144, in start
>     dl.start(opts)   File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py",
> line 2079, in start
>     dl = _ExternalDownloader()   File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py",
> line 2002, in __init__
>     stdout = subprocess.PIPE,   File "/usr/lib/python2.7/subprocess.py",
> line 679, in __init__
>     errread, errwrite)   File "/usr/lib/python2.7/subprocess.py",
> line 1143, in _execute_child
>     self.pid = os.fork() 
**OSError: [Errno 12] Cannot allocate memory**
edit retag flag offensive close merge delete

Comments

Okay, I'll bite. Do you have enough free memory?

randomuser gravatar imagerandomuser ( 2013-01-01 19:40:29 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2013-01-03 15:02:31 -0500

Sebxxx gravatar image

updated 2013-01-03 15:04:09 -0500

I have repaired it. The real problem wasn't the memory. I have enough. The problem was that the Yum Data Base had some "duplicates" or clones of the repos. We need the yum-utils. Normally it is installed. If not, install it with yum install.

And we just have to write this command (as root):

package-cleanup --cleandupes

It will show us the list of "dupes" and ask us for eliminate them. If we agree, just write yes.

If we want to be sure, just write this command to rebuild the Yum Data Base.

rpm --rebuilddb

And that's all.

edit flag offensive delete link more

Comments

Well this is odd. How does one install yum-utils if yum doesn't work? Was it installed before this problem occurred? Did you install yum-utils using rpm?

Glenn gravatar imageGlenn ( 2014-03-19 04:59:34 -0500 )edit
0

answered 2014-03-18 23:55:40 -0500

You might have a different problem. You should open a new question instead of proposing a new answer to an existing solved question.

edit flag offensive delete link more
0

answered 2014-03-18 22:49:42 -0500

trex gravatar image

I have the same problem with fedora 19, but package-cleanup --cleandupes shows "No duplicates to remove"

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-01 17:35:36 -0500

Seen: 7,374 times

Last updated: Mar 18 '14