PDA

View Full Version : Yum help please????



earobinson111
19th July 2004, 04:19 PM
ok im new to fedora and well i love it a lot its great havent had any problems yet but now yum has stoped working when i try yum update this happens

[earobinson@localhost earobinson]$ yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm
[earobinson@localhost earobinson]$


any ideas on how to fix this?

thanks a lot

earobinson

eclipse
19th July 2004, 06:41 PM
humm have you tried to remove yum and reinstall it with a downloaded yum rpm pakage?

earobinson111
19th July 2004, 06:59 PM
mabey im not using the right package tryed using the one of the cd even and all of these

yum-2.0.3-0.fdr.1.rh90.noarch.rpm
yum-2.0.7-1.noarch.rpm
yum-2.0.7-2.fc.fr.src.rpm
yum-2.0.7-36.rhfc2.at.noarch.rpm
yum-2.0.7-36.rhfc2.at.src.rpm
yum-3.0.7-2.fc.fr.src.rpm

with the rpm -Uhv --force command and they ither worked and wont work or crashed on instalation

but as i said i am new to all this so if you could type out the commands for me i will try them and get back to you thanks a lot

eclipse
19th July 2004, 08:13 PM
hmmm ok well trying removing it completely..

as root type rpm -e yum if it complains about any dependancies just use rpm -e --nodeps yum

Either one of this should completely remove yum for you..

Now go to http://ayo.freshrpms.net

download the corrisponding yum rpm pakage

now type rpm -i yum-2.0.7-2.fc.fr.noarch.rpm

This should reinstall the pakage for you...

Now try yum update

earobinson111
20th July 2004, 04:49 AM
i was able to uninstall but when i tryed to install i got this message

[root@localhost Downloads]# rpm -i --force yum-2.0.7-2.fc.fr.noarch.rpm
warning: yum-2.0.7-2.fc.fr.noarch.rpm: V3 DSA signature: NOKEY, key ID e42d547b
warning: /etc/yum.conf created as /etc/yum.conf.rpmnew


i tryed forcing it also but then i still got error messages when i used yum

ilja
20th July 2004, 04:54 AM
never, really never do use the force command if you don't know exactly, that this is needed. If there are depencies issues, then see what the problem ist.
now one more time:
rpm -e yum
and then
rpm -Uhv ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora-core/2/i386/os/Fedora/RPMS/yum-2.0.7-1.1.noarch.rpm

it is the rpm for the official Base packet and it will be enough for the moment.

earobinson111
20th July 2004, 05:09 AM
ok im fealing like im doing something wrong now

[root@localhost Downloads]# rpm -Uhv yum-2.0.7-1.1.noarch.rpm
Preparing... ########################################### [100%]
file /etc/yum.conf from install of yum-2.0.7-1.1 conflicts with file from package atrpms-package-config-73-1.rhfc1.at

thanks a lot you you are all very helpfull

ilja
20th July 2004, 05:21 AM
rpm -e atrpms-package-config
You can install it afterwards.

earobinson111
20th July 2004, 05:26 AM
sorry no luck and i tryed 2 times


[root@localhost Downloads]# rpm -e atrpms-package-config
[root@localhost Downloads]# rpm -Uhv yum-2.0.7-1.1.noarch.rpm
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[root@localhost Downloads]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm
[root@localhost Downloads]# yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm
[root@localhost Downloads]# rpm -e yum
[root@localhost Downloads]# rpm -e atrpms-package-config
error: package atrpms-package-config is not installed
[root@localhost Downloads]# rpm -Uhv yum-2.0.7-1.1.noarch.rpm
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[root@localhost Downloads]# yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm

ilja
20th July 2004, 05:28 AM
try to install apt (http://freshrpms.net/apt/) and to reinstall yum with it.

earobinson111
20th July 2004, 05:37 AM
nope still

[root@localhost earobinson]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm

earobinson111
20th July 2004, 05:37 AM
thanks for all the help all the same

ilja
20th July 2004, 05:38 AM
do :
rpm -q rpm-python (https://lists.dulug.duke.edu/pipermail/yum/2003-June/001416.html)

earobinson111
20th July 2004, 05:43 AM
nope


[root@localhost earobinson]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm
[root@localhost earobinson]# rpm -q rpm-python
rpm-python-4.3.1-0.3_26.99.rhfc1.at
[root@localhost earobinson]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm

ilja
20th July 2004, 05:46 AM
:D what is the output of
rpm -q rpm-python ?

and what is the output od
rpm -qa | grep rpm

//edit :
[root@localhost earobinson]# rpm -q rpm-python
rpm-python-4.3.1-0.3_26.99.rhfc1.at

ok, I see.

ilja
20th July 2004, 05:47 AM
what does apt-get update say?

earobinson111
20th July 2004, 05:48 AM
[root@localhost earobinson]# rpm -q rpm-python
rpm-python-4.3.1-0.3_26.99.rhfc1.at

thats all

ilja
20th July 2004, 05:49 AM
It's not a linux way, I know, but why don't you just switch to apt, if yum doesn't work? Till you get yum working it would the best way,

earobinson111
20th July 2004, 05:50 AM
lol but the auto up to date thing uses yum no?

i have for programs and stuff but the redhat updater uses yum no?

earobinson111
20th July 2004, 05:55 AM
and well i can always hope that some one will read this and know the answer to my problem

ilja
20th July 2004, 06:00 AM
the atuo update things does work with its own configuration. And it understand apt and yum repositories. I think your problem will be solved with the next update. See: http://lists.atrpms.net/pipermail/atrpms-users/2004-July/000715.html

earobinson111
20th July 2004, 06:01 AM
ok so how do i get it to use apt right now on boot the icon in the sys tray just dont come up

earobinson111
20th July 2004, 06:02 AM
and home come everyone isent having this problem?

ilja
20th July 2004, 06:09 AM
and home come everyone isent having this problem?
of course there is one :
http://lists.atrpms.net/pipermail/atrpms-users/2004-July/000698.html

and he even has a solution :D But I don't know whether you have the exact problem.

earobinson111
20th July 2004, 06:11 AM
so how would i figure it out and how would i make up2date use apt + i never updated from fc1 to fc2

ilja
20th July 2004, 06:15 AM
so how would i figure it out and how would i make up2date use apt + i never updated from fc1 to fc2
what you want to do exactly. and up2date/yum/apt are thre totally independent programms, that don't requrire each other. so just say, what you need to do and I will try to tell you which programm to use (it may take a bit, because I am going to eat paellia in a couple of minutes :D )

earobinson111
20th July 2004, 06:16 AM
well you know the icon in the sys tray at the bottem right corner that tells you if your linux is up to date well that stoped working at the same time as yum so i figure they are connected and well i want to get that working

ilja
20th July 2004, 06:20 AM
the icon is called rhn-applet. Start as root system-config-services and see whether rhnsd is started. It seems that there is a rpm issue or python that has maybe something to do with broken depencies because of your forcing during installing or with the bug described in the link above. Please also try to start rhn-applet-gui as user in the x-term console and see what output you get.

earobinson111
20th July 2004, 06:22 AM
so they are not connected? they seem to be


[earobinson@localhost earobinson]$ rhn-applet-gui
Traceback (most recent call last):
File "/usr/bin/rhn-applet-gui", line 16, in ?
import rhn_utils
File "/usr/share/rhn/rhn_applet/rhn_utils.py", line 17, in ?
from rhn_applet_rpm import rhnAppletRPM
File "/usr/share/rhn/rhn_applet/rhn_applet_rpm.py", line 10, in ?
import rpm
ImportError: No module named rpm

gota run now if you figure this out tell me

but im thinking mabey ill just have to format and reinstall ill wait a week or so for that but thanks neways

ilja
20th July 2004, 06:25 AM
ok, it seems to be a rpm-python problem.
do:
rpm -e rpm-python and then
rpm -Uhv ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora-core/2/i386/os/Fedora/RPMS/rpm-python-4.3.1-0.3.i386.rpm

or uninstall the old rpm-python with apt and install it one more time.

earobinson111
20th July 2004, 08:06 AM
ya i think your right but how i fix it

[root@localhost earobinson]# rpm -e rpm-python
error: Failed dependencies:
rpm-python is needed by (installed) up2date-4.3.19-1
rpm-python >= 4.2-0.61 is needed by (installed) system-config-packages-1.2.12-1
rpm-python is needed by (installed) rhn-applet-2.1.7-1.1
rpm-python is needed by (installed) system-config-network-tui-1.3.17-0.FC2.1
rpm-python >= 4.1.1 is needed by (installed) yum-2.0.7-1.1

earobinson111
20th July 2004, 10:05 AM
well i got it working and thanks for all your help for anyone that has this problem i thought i would share the soultion with everyone since well that is the point of linux. anyways i know i was told not to use force but a friend of mine told me i might try it so here it is.

still having some small errors but i will do a bit of reading before i make another post


[earobinson@localhost earobinson]$ su
Password:
[root@localhost earobinson]# rpm -Uhv --force rpm-python-4.3.1-0.3.i386.rpm

ilja
20th July 2004, 06:56 PM
Do you know, why you have a lot of errors? Because you force! And you don't read the solutions that are given.

What is the output of


apt-get update


And maybe you also don't read the errormessages.
rpm-python is needed by (installed) up2date-4.3.19-1
rpm-python >= 4.2-0.61 is needed by (installed) system-config-packages-1.2.12-1
rpm-python >= 4.1.1 is needed by (installed) yum-2.0.7-1.1

do you see the diffference? You have three applications reffering to three different Versions of rpm-python. So you shouldn't wonder if that doesn't work.

earobinson111
21st July 2004, 03:43 AM
well i dont know because it all works now... and i wont use force anymore but a friend of mine who has used linux for a long time made the suggestion since i could not remove it because it had to many things that had to go with it and my system thought it had a version that was more up to date than the one i had. and i do know thanks as for your question it now works



[earobinson@localhost earobinson]$ su
Password:
[root@localhost earobinson]# apt-get update
Get:1 http://download.fedora.us fedora/2/i386 release [2184B]
Get:2 http://sluglug.ucsc.edu fedora/2 release [505B]
Get:3 http://mirrors.kernel.org fedora/2/i386 release [2184B]
Get:4 http://mirrors.usc.edu fedora/2/i386 release [2184B]
Fetched 7057B in 0s (10.7kB/s)
Hit http://sluglug.ucsc.edu fedora/2/macromedia pkglist
Hit http://sluglug.ucsc.edu fedora/2/macromedia release
Hit http://sluglug.ucsc.edu fedora/2/macromedia srclist
Hit http://mirrors.kernel.org fedora/2/i386/os pkglist
Hit http://mirrors.kernel.org fedora/2/i386/os release
Hit http://mirrors.kernel.org fedora/2/i386/updates pkglist
Hit http://mirrors.kernel.org fedora/2/i386/updates release
Hit http://mirrors.kernel.org fedora/2/i386/os srclist
Hit http://mirrors.kernel.org fedora/2/i386/updates srclist
Hit http://download.fedora.us fedora/2/i386/os pkglist
Hit http://download.fedora.us fedora/2/i386/os release
Hit http://download.fedora.us fedora/2/i386/updates pkglist
Hit http://download.fedora.us fedora/2/i386/updates release
Hit http://download.fedora.us fedora/2/i386/os srclist
Hit http://download.fedora.us fedora/2/i386/updates srclist
Hit http://mirrors.usc.edu fedora/2/i386/os pkglist
Hit http://mirrors.usc.edu fedora/2/i386/os release
Hit http://mirrors.usc.edu fedora/2/i386/updates pkglist
Hit http://mirrors.usc.edu fedora/2/i386/updates release
Hit http://mirrors.usc.edu fedora/2/i386/os srclist
Hit http://mirrors.usc.edu fedora/2/i386/updates srclist
Hit http://mirrors.usc.edu fedora/2/i386/stable pkglist
Hit http://mirrors.usc.edu fedora/2/i386/stable release
Hit http://mirrors.usc.edu fedora/2/i386/stable srclist
Reading Package Lists... Done
Building Dependency Tree... Done

any way i can check if the programs are still using dif versions of python?

thank you

ilja
21st July 2004, 03:46 AM
rpm -qa | grep python
and see how much pythons you have. Does yum work now?

earobinson111
21st July 2004, 03:54 AM
yup yum works


[root@localhost earobinson]# rpm -qa | grep python
gnome-python2-gtkhtml2-2.0.0-4.1
python-2.3.3-6
python-devel-2.3.3-6
rpm-python-4.3.1-0.3
python-optik-1.4.1-5
gnome-python2-bonobo-2.0.0-4.1
gnome-python2-canvas-2.0.0-4.1
libxml2-python-2.6.8-1
gnome-python2-2.0.0-4.1

i cant tell what that means

ilja
21st July 2004, 03:56 AM
that are all the packets that are installed in your rpm-database. It shows, that you don't have the same packages twice. Or that you have different versions of depending packages. Looks nice how it is.

earobinson111
21st July 2004, 03:58 AM
ok thanks a lot for all your help