Advertisement

02.25.2008 at 05:43AM PST, ID: 23190143
[x]
Attachment Details

How to install yum on RedHat Linux 7.3 (Valhalla)

Asked by LinuxDuke in Python Scripting Language, Linux, Red Hat Linux

Tags: ImportError: Bad magic number in /usr/share/yum/yummain.pyc

Hi Everyone,

I have installed yum on Redhat 7.3 but when ever I do yum check-update or yum update I get the error below.I have googled this error but cant find a proper solution to it.
Traceback (most recent call last):
  File "./yum", line 22, in ?
    import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pycStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
[root@tornado root]# rpm -Uvh yum-1.0.3-0.1.rh7.rf.noarch.rpm 
Preparing...                ########################################### [100%]
package yum-1.0.3-0.1.rh7.rf is already installed
[root@tornado root]# yum check-update
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc
[root@tornado root]# cat /etc/redhat-release 
Red Hat Linux release 7.3 (Valhalla)
[root@tornado root]# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc
[root@tornado root]#
[+][-]02.25.2008 at 09:08AM PST, ID: 20977194

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 12:41AM PST, ID: 20982532

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 01:08AM PST, ID: 20982644

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 03:32AM PST, ID: 20983270

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 03:52AM PST, ID: 20993163

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 04:09AM PST, ID: 20993257

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 04:58AM PST, ID: 20993524

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 10:01AM PST, ID: 20996510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2008 at 01:32AM PST, ID: 21002288

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2008 at 02:01AM PST, ID: 21002366

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2008 at 02:08AM PST, ID: 21002397

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2008 at 03:59AM PST, ID: 21002841

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2008 at 04:03AM PST, ID: 21002863

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Python Scripting Language, Linux, Red Hat Linux
Tags: ImportError: Bad magic number in /usr/share/yum/yummain.pyc
Sign Up Now!
Solution Provided By: Gns
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628