Fedora Linux Support Community & Resources Center
  #1  
Old 14th September 2007, 09:44 AM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
FC7 Yum error: bad marshal data

Hi,

I have FC7 running on a Macbook Pro Core 2 Duo.

Since a couple of days, I can't use yum anymore. Whatever yum subcommand I try, it always exits immediatly with:

Quote:
[root@galadriel ~]# yum clean all
Traceback (most recent call last):
File "/usr/bin/yum", line 4, in <module>
import yum
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 39, in <module>
import config
File "/usr/lib/python2.5/site-packages/yum/config.py", line 23, in <module>
from parser import ConfigPreProcessor
File "/usr/lib/python2.5/site-packages/yum/parser.py", line 3, in <module>
import urlgrabber
File "/usr/lib/python2.5/site-packages/urlgrabber/__init__.py", line 53, in <module>
from grabber import urlgrab, urlopen, urlread
File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 377, in <module>
import urllib2
ValueError: bad marshal data
The last things I remember installing successfully before this started happening were three yum plugins for handling kernel modules. I already unistalled those via rpm again, but that doesn't make any difference. These modules were:
yum-fedorakmod
yum-kernel-module
yum-plugin-kmdl (from ATRPMS)

I also tried disabling ATRPMS and Livna, but to no avail. The error remains.

How can I fix this ?
  #2  
Old 14th September 2007, 10:13 AM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Maybe this thread will help...
  #3  
Old 14th September 2007, 10:36 AM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
Unfortunatly no, it's not the same issue.

The original poster in that thread can still run various yum commands (such as yum list update, yum clean all and so on).

My installation bails out on ANY yum command. See my original post: I can't even do a yum clean all...

Is there a manual way to clear all of Yum's cache ?
  #4  
Old 14th September 2007, 10:40 AM
leigh123linux
Guest
 
Posts: n/a
try

su
rm -rf /var/cache/yum/*
  #5  
Old 14th September 2007, 11:00 AM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
Thanks for the suggestion.

I now have a fully cleared cache, but yum still gives me the same error.

What does this bad marshal data thing actually mean ? I found other people having this problem via google:
http://forums.vpslink.com/archive/index.php/t-228.html
This guy had a memory limit problem. I can't image I have with 1Gb of RAM and 1Gb of swap. 'top' shows most of the swap being unused and currently 165Mb RAM is free and another 110Mb is used for caching. That doesn't indicate a memory problem.

http://www.centos.org/modules/newbb/...&viewmode=flat
A CentOS post with similar error, but it resolved by itself with a reboot. I have been trying to use yum for a week now, and my laptop is rebooted every day.

So I have no idea how to continue...
  #6  
Old 14th September 2007, 11:03 AM
leigh123linux
Guest
 
Posts: n/a
post

su
cat /var/log/yum.log |grep yum*
  #7  
Old 14th September 2007, 01:25 PM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
From what I could learn from a quick search on the Internet, that is a Python error particularly likely to happen in case of version mismatch between some bytecode and the Python interpreter. Have you tried to reinstall those three packages after a cleanup of the yum cache ?
  #8  
Old 14th September 2007, 06:17 PM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
Quote:
Originally Posted by leigh123@linux
post

su
cat /var/log/yum.log |grep yum*
[root@galadriel yum.repos.d]# cat /var/log/yum.log |grep yum*
[root@galadriel yum.repos.d]#

=> There is no output from this command.
  #9  
Old 14th September 2007, 06:26 PM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,294
Quote:
Originally Posted by gjanssens
[root@galadriel yum.repos.d]# cat /var/log/yum.log |grep yum*
[root@galadriel yum.repos.d]#

=> There is no output from this command.
Yes, there is valuable output: nothing=no updates to any packages named "yum*" in your /var/log/yum.log.
  #10  
Old 14th September 2007, 06:27 PM
leigh123linux
Guest
 
Posts: n/a
Quote:
Originally Posted by gjanssens
[root@galadriel yum.repos.d]# cat /var/log/yum.log |grep yum*
[root@galadriel yum.repos.d]#

=> There is no output from this command.
Ok

try

rpm -q yum-metadata-parser yum
  #11  
Old 14th September 2007, 06:33 PM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,294
Hello:

/var/log/yum.log will not have any listing(s) for packages installed/emoved via "rpm" command. Try (as root):
Code:
rpm -vV yum
and post output - you're looking for any altered files, not /etc/yum.conf or any in /etc/yum.repos.d, but any of the executables/libraries esp. in /usr/lib/python*.*/site-packages/yum et.al.

V
  #12  
Old 14th September 2007, 06:41 PM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
Question

Quote:
Originally Posted by giulix
From what I could learn from a quick search on the Internet, that is a Python error particularly likely to happen in case of version mismatch between some bytecode and the Python interpreter. Have you tried to reinstall those three packages after a cleanup of the yum cache ?
No I didn't. Until now I have always done all of my installations using yum (or yumex). Since yum is refusing to work, I didn't bother trying to install anything directly via rpm.
  #13  
Old 14th September 2007, 06:43 PM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
Quote:
Originally Posted by Hlingler
Yes, there is valuable output: nothing=no updates to any packages named "yum*" in your /var/log/yum.log.
Sorry, my bad...

Logrotate moved the last entries to /var/log/yum.log.1 over the weekend.

Here's the result when run on that file:

Code:
[root@galadriel site-packages]# cat /var/log/yum.log.1 |grep yum
Jun 20 20:00:18 (yumex) Installed: mpeg2dec.i386 0.4.1-2.lvn6
Jun 20 20:00:19 (yumex) Installed: libsidplay.i386 1.36.57-11.fc6
Jun 20 20:00:21 (yumex) Installed: libmms.i386 0.3-3.lvn6
Jun 20 20:00:22 (yumex) Installed: soundtouch.i386 1.3.1-6.fc6
Jun 20 20:00:26 (yumex) Installed: gstreamer-plugins-bad.i386 0.10.3-3.lvn6
Jun 20 20:00:29 (yumex) Installed: gstreamer-plugins-ugly.i386 0.10.5-1.lvn6
Jun 20 20:29:51 (yumex) Installed: xmms.i386 1:1.2.10-29.fc6
Jun 20 20:29:51 (yumex) Installed: xmms.i386 1:1.2.10-29.fc6
Jun 20 20:29:53 (yumex) Installed: libbinio.i386 1.4-6.fc6
Jun 20 20:29:53 (yumex) Installed: libbinio.i386 1.4-6.fc6
Jun 20 20:29:59 (yumex) Installed: gstreamer08.i386 0.8.12-8.fc6
Jun 20 20:29:59 (yumex) Installed: gstreamer08.i386 0.8.12-8.fc6
Jun 20 20:30:08 (yumex) Installed: gstreamer08-plugins.i386 0.8.12-7.fc6
Jun 20 20:30:08 (yumex) Installed: gstreamer08-plugins.i386 0.8.12-7.fc6
Jun 20 20:30:10 (yumex) Installed: adplug.i386 2.0.1-2.fc6
Jun 20 20:30:10 (yumex) Installed: adplug.i386 2.0.1-2.fc6
Jun 20 20:30:12 (yumex) Installed: mcs-libs.i386 0.4.1-3.fc6
Jun 20 20:30:12 (yumex) Installed: mcs-libs.i386 0.4.1-3.fc6
Jun 20 20:30:14 (yumex) Installed: audacious-libs.i386 1.3.2-1.fc6
Jun 20 20:30:14 (yumex) Installed: audacious-libs.i386 1.3.2-1.fc6
Jun 20 20:30:20 (yumex) Installed: xosd.i386 2.2.14-9.fc6
Jun 20 20:30:20 (yumex) Installed: xosd.i386 2.2.14-9.fc6
Jun 20 20:30:22 (yumex) Installed: madplay.i386 0.15.2b-4.lvn6
Jun 20 20:30:22 (yumex) Installed: madplay.i386 0.15.2b-4.lvn6
Jun 20 20:30:24 (yumex) Installed: lame.i386 3.97-4.lvn6
Jun 20 20:30:24 (yumex) Installed: lame.i386 3.97-4.lvn6
Jun 20 20:30:25 (yumex) Installed: normalize.i386 0.7.7-2.lvn6
Jun 20 20:30:25 (yumex) Installed: normalize.i386 0.7.7-2.lvn6
Jun 20 20:30:27 (yumex) Installed: libsamplerate.i386 0.1.2-6.fc6
Jun 20 20:30:27 (yumex) Installed: libsamplerate.i386 0.1.2-6.fc6
Jun 20 20:30:31 (yumex) Installed: gdk-pixbuf.i386 1:0.22.0-32.fc6
Jun 20 20:30:31 (yumex) Installed: gdk-pixbuf.i386 1:0.22.0-32.fc6
Jun 20 20:30:32 (yumex) Installed: xmms-xosd.i386 2.2.14-9.fc6
Jun 20 20:30:32 (yumex) Installed: xmms-xosd.i386 2.2.14-9.fc6
Jun 20 20:30:33 (yumex) Installed: xmms-crossfade.i386 0.3.11-1.fc6
Jun 20 20:30:33 (yumex) Installed: xmms-crossfade.i386 0.3.11-1.fc6
Jun 20 20:30:34 (yumex) Installed: xmms-normalize.i386 0.7.7-2.lvn6
Jun 20 20:30:34 (yumex) Installed: xmms-normalize.i386 0.7.7-2.lvn6
Jun 20 20:30:35 (yumex) Installed: xmms-adplug.i386 1.2-3.fc6
Jun 20 20:30:35 (yumex) Installed: xmms-adplug.i386 1.2-3.fc6
Jun 20 20:30:43 (yumex) Installed: kaffeine.i386 0.8.3-2.fc6
Jun 20 20:30:43 (yumex) Installed: kaffeine.i386 0.8.3-2.fc6
Jun 20 20:30:44 (yumex) Installed: xmms-acme.i386 0.4.3-6.fc6
Jun 20 20:30:44 (yumex) Installed: xmms-acme.i386 0.4.3-6.fc6
Jun 20 20:30:45 (yumex) Installed: xmms-scrobbler.i386 0.3.8.1-2.fc6
Jun 20 20:30:45 (yumex) Installed: xmms-scrobbler.i386 0.3.8.1-2.fc6
Jun 20 20:30:47 (yumex) Installed: xmms-lirc.i386 1.4-9.fc6
Jun 20 20:30:47 (yumex) Installed: xmms-lirc.i386 1.4-9.fc6
Jun 20 20:30:49 (yumex) Installed: xmms-skins.noarch 1:1.2.10-15
Jun 20 20:30:49 (yumex) Installed: xmms-skins.noarch 1:1.2.10-15
Jun 20 20:30:50 (yumex) Installed: xmms-alarm.i386 0.3.7-5.fc6
Jun 20 20:30:50 (yumex) Installed: xmms-alarm.i386 0.3.7-5.fc6
Jun 20 20:30:56 (yumex) Installed: xmms-sid.i386 0.8.0-0.3.beta15.fc6
Jun 20 20:30:56 (yumex) Installed: xmms-sid.i386 0.8.0-0.3.beta15.fc6
Jun 20 20:30:56 (yumex) Installed: xmms-esd.i386 1:1.2.10-29.fc6
Jun 20 20:30:56 (yumex) Installed: xmms-esd.i386 1:1.2.10-29.fc6
Jun 20 20:30:57 (yumex) Installed: xmms-speex.i386 0.9.1-8.fc6
Jun 20 20:30:57 (yumex) Installed: xmms-speex.i386 0.9.1-8.fc6
Jun 20 20:30:58 (yumex) Installed: xmms-mp3.i386 1.2.10-5.lvn6
Jun 20 20:30:58 (yumex) Installed: xmms-mp3.i386 1.2.10-5.lvn6
Jun 20 20:30:59 (yumex) Installed: xmms-flac.i386 1.1.2-27.fc6
Jun 20 20:30:59 (yumex) Installed: xmms-flac.i386 1.1.2-27.fc6
Jun 20 20:31:01 (yumex) Installed: xmms-modplug.i386 2.05-8.fc6
Jun 20 20:31:01 (yumex) Installed: xmms-modplug.i386 2.05-8.fc6
Jun 20 20:31:02 (yumex) Installed: xmms-musepack.i386 1.2-3.fc6
Jun 20 20:31:02 (yumex) Installed: xmms-musepack.i386 1.2-3.fc6
Jun 20 20:31:03 (yumex) Installed: xmms-cdread.i386 0.14-12.fc6
Jun 20 20:31:03 (yumex) Installed: xmms-cdread.i386 0.14-12.fc6
Jun 20 20:31:04 (yumex) Installed: xmms-arts.i386 0.7.1-4.fc6
Jun 20 20:31:04 (yumex) Installed: xmms-arts.i386 0.7.1-4.fc6
Jun 20 20:31:10 (yumex) Installed: audacious-plugins.i386 1.3.5-2.fc6
Jun 20 20:31:10 (yumex) Installed: audacious-plugins.i386 1.3.5-2.fc6
Jun 20 20:31:11 (yumex) Installed: audacious-plugins-nonfree-mp3.i386 1.3.4-2.lvn6
Jun 20 20:31:11 (yumex) Installed: audacious-plugins-nonfree-mp3.i386 1.3.4-2.lvn6
Jun 20 20:31:18 (yumex) Installed: audacious.i386 1.3.2-1.fc6
Jun 20 20:31:18 (yumex) Installed: audacious.i386 1.3.2-1.fc6
Jun 22 14:22:29 (yumex) Installed: libshout.i386 2.2.2-1.fc6
Jun 22 14:22:31 (yumex) Installed: ices.i386 2.0.1-4.fc6
Jun 22 14:22:35 (yumex) Installed: icecast.i386 2.3.1-3.fc6
Jul 06 16:54:11 Installed: yum-protectbase.noarch 1.1.5-1.fc7
Jul 07 11:10:55 Installed: yumex.noarch 1.9.9-1.0.fc7
Jul 07 16:40:01 Updated: yum.noarch 3.2.1-1.fc7
Jul 07 16:40:22 Updated: yum-updatesd.noarch 3.2.1-1.fc7
Sep 03 16:59:08 Updated: yum.noarch 3.2.2-1.fc7
Sep 03 17:05:31 Updated: yum-updatesd.noarch 3.2.2-1.fc7
Sep 03 17:05:33 Updated: yum-protectbase.noarch 1.1.6-1.fc7
Sep 03 17:05:43 Updated: yumex.noarch 2.0.1-1.fc7
Sep 06 10:40:04 Updated: yum.noarch 3.2.4-2.fc7
Sep 06 10:42:08 Updated: yum-updatesd.noarch 3.2.4-2.fc7
Sep 06 10:55:44 Installed: yum-plugin-kmdl.noarch 0.7-9.fc7
Sep 06 10:55:52 Installed: yum-kernel-module.noarch 1.1.6-1.fc7
Sep 06 10:55:55 Installed: yum-fedorakmod.noarch 1.1.6-1.fc7
[root@galadriel site-packages]#
  #14  
Old 14th September 2007, 06:51 PM
gjanssens Offline
Registered User
 
Join Date: Sep 2007
Posts: 21
Quote:
Originally Posted by leigh123@linux
Ok

try

rpm -q yum-metadata-parser yum
Code:
[root@galadriel site-packages]# rpm -q yum-metadata-parser yum
yum-metadata-parser-1.1.0-2.fc7
yum-3.2.2-1.fc7
[root@galadriel site-packages]#
  #15  
Old 14th September 2007, 06:58 PM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,294
Hello:

Another suggestion, if you've already verified via rpm that yum's files are intact: try to run yum with no plug-ins:
Code:
yum --noplugins list updates
V
Closed Thread

Tags
bad, data, error, fc7, marshal, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora 10 yum error "ValueError: bad marshal data" Phoenix1983 Using Fedora 0 6th February 2009 12:13 PM
Error evolution-data-server-1.10.1-1.fc7 RPM yasink Installation, Upgrades and Live Media 0 11th October 2007 11:10 AM
error loading repository data ekdya Installation, Upgrades and Live Media 1 26th October 2006 07:02 AM
partition table error Extra data jim Using Fedora 2 5th May 2005 12:38 PM
ValueError: bad marshal data DeathZan Installation, Upgrades and Live Media 1 15th February 2005 04:11 PM


Current GMT-time: 10:28 (Thursday, 02-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat