LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum not working after update in FC9 (http://www.linuxquestions.org/questions/linux-software-2/yum-not-working-after-update-in-fc9-679793/)

boomboom47 10-29-2008 11:26 AM

yum not working after update in FC9
 
Hello i am new here. anyways here is my problem i did some updates in FC9 2.6.26.5-45 i386 and well i rebooted and then tried to recheck for updates and it give me this.
Code:

@localhost ~]$ yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

  /usr/lib/librpmdb-4.4.so: undefined symbol: _!lock_ve

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

this is the output after i do:
python
import yum

Code:

[root@localhost ~]# python
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 23, in <module>
    import rpm
  File "/usr/lib/python2.5/site-packages/rpm/__init__.py", line 7, in <module>
    from _rpm import *
ImportError: /usr/lib/librpmdb-4.4.so: undefined symbol: _!lock_ve
>>>

also i do not know how to install rpms without yum so i am a little lost

sorry if i have a very simple problem but i am trying to learn fedora

Thanks in advance

amani 10-30-2008 10:36 AM

#su
#rpm -ivh abc.rpm (To INSTALL)
#rpm -e abc.rpm (To UNINSTALL)

Also see the fedora software management wiki

boomboom47 10-31-2008 10:23 AM

thank you for the reply

i have one problem i have tried that but it says "-ivh: unknown option"

i am tempted to just reinstall since i really dont have anything of importance on it :(

amani 10-31-2008 12:43 PM

Try rpm -i <packagename>.rpm

How did you get into this state?
Did you enable rawhide?

boomboom47 11-03-2008 07:52 AM

um that didn't work either it just kicked me to the usage screen

i appreciate all the help you are trying to give

Quote:

How did you get into this state?
i installed some updates here is a list
Code:

Updates:

qt
qt-x11
taglib
systemtap-runtime
systemtap
gtk+
ntupdate
ntp
pciutils
nss_ldap
qt-mysql
nspluginwrapper
xorg-x11-drv-mutouch
blender
kernaloops
ntfs-3g
xorg-x11-drv-nv
kde-filesystem
oxygen-icon-theme
kdelibs-common
pciutils-devel
ntp-perl
kdelibs
kdeedu-libs
kdepimlibs
kdebase-libs
kdeedu-kstars
kdeedu-math
ksysguardd
phonon-backend-xine
kdebase-runtime
kdebase-workspace-libs
kdebase
kdebase-workspace
kdeedu

Installs:
kdebase-runtime-libs

Quote:

Did you enable rawhide?
i don't know if i did enable it but i doubt i enabled a developmental version if that is what rawhide is

amani 11-03-2008 11:07 AM

Ok try

#su
#rpm --version

#man rpm
#locate rpm
#uname -a

Your rpm database may need to rebuilt.

Delete the db files in /var/lib/rpm (probably)

and

#rpm -rebuilddb

(will take some time)

See http://www.informatimago.com/linux/rpm-rebuilddb.html

Check the whole fedora package mgt/rpm documentation too

John VV 11-03-2008 12:46 PM

Quote:

i don't know if i did enable it but i doubt i enabled a developmental version if that is what rawhide is
WHY do people keep doing this !!!
you may have FUBARed your system to the point that a full reinstall is the only option.

maybe,maybe not ??
try this and see HOW MUCH of fedora 10 you installed on fedora 9
Code:

su -
( root password)
rpm -qa | grep fc10

if there are only 1 or 2 maybe even if there are 5 fedora 10 rpm's installed this might be able to be fix
post the output

boomboom47 11-04-2008 04:22 AM

Quote:

Originally Posted by amani (Post 3330267)
Ok try

#su
#rpm --version

#man rpm
#locate rpm
#uname -a

Your rpm database may need to rebuilt.

Delete the db files in /var/lib/rpm (probably)

and

#rpm -rebuilddb

(will take some time)

See http://www.informatimago.com/linux/rpm-rebuilddb.html

Check the whole fedora package mgt/rpm documentation too

umm i really dont know why my rpm thing doesnt have the --version and -rebuilddb options
i am tempted to reinstall to save the hassle but that would ruin the learning experience


Quote:

try this and see HOW MUCH of fedora 10 you installed on fedora 9
Code:

su -
( root password)
rpm -qa | grep fc10

if there are only 1 or 2 maybe even if there are 5 fedora 10 rpm's installed this might be able to be fix
post the output
thanks for you reply

anyways it didnt output any files or folders

Code:

[root@localhost ~]# rpm -qa|grep fc10
[root@localhost ~]#

same thing without the spaces infront and behind "|"
also it is doing the same if i try fc9 instead of fc10

i really feel like i got myself into a mess

i will probably take it to a friend to see if he can troubleshoot what is doing this and how to fix it for sure but i am hoping i can learn of a solution here

edit:

well i decided to reinstall and hopefully i dont run into different problems

thanks anyways for everyones help


All times are GMT -5. The time now is 05:44 AM.