PDA

View Full Version : problem in yum .


12235322
15th December 2009, 08:58 PM
when i use terminal and write yum , this message apprears:

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

libldap-2.4.so.2: cannot open shared object file: No such file or directory

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.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]

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


[root@localhost ~]#

CSchwangler
16th December 2009, 09:57 AM
Any plug-ins you are using with yum?

You could try running

yum --noplugins

12235322
16th December 2009, 08:32 PM
no , just write yum in terminal , this message appears ,

and "add and remove software " didn't work .

CSchwangler
17th December 2009, 03:41 PM
What version of Fedora are you using? Is that a fresh installation?

mouse_runner
17th December 2009, 04:19 PM
i think you are missing openldap

what shows:

rpm -q openldap

scott32746
17th December 2009, 04:25 PM
Have you seen if the missing lib is there ?

whereis libldap-2.4.so.2

If not search the web for it download and install
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libldap-2.4.so.2

12235322
18th December 2009, 07:51 AM
i think you are missing openldap

what shows:

Code:

rpm -q openldap

______________

that is he result:

[student@localhost ~]$ su -
Password:
[root@localhost ~]# rpm -q openldap
rpmdb: page 12324: illegal page type or format
rpmdb: PANIC: Invalid argument
rpmdb: Packages: pgin failed for page 12324
error: db4 error(-30974) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbcursor->c_close: DB_RUNRECOVERY: Fatal error, run database recovery
package openldap is not installed
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: File handles still open at environment close
rpmdb: Open file handle: /var/lib/rpm/Packages
rpmdb: Open file handle: /var/lib/rpm/Name
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery
[root@localhost ~]#




---------- Post added at 11:51 PM CST ---------- Previous post was at 11:50 PM CST ----------

Have you seen if the missing lib is there ?

whereis libldap-2.4.so.2

If not search the web for it download and install
http://rpm.pbone.net/index.php3/stat...bldap-2.4.so.2
Reply With Quote


and the result :

[root@localhost ~]# whereis libldap-2.4.so.2
libldap-2.4.so:
[root@localhost ~]#

scott32746
18th December 2009, 12:37 PM
you can to install libldap-2.4.so.2 or install openldap it is going to put in the lib that you need.

mouse_runner
18th December 2009, 03:20 PM
run updatedb as root user
after that try again yum

what version of fedora do you use?

---------- Post added at 04:20 PM CST ---------- Previous post was at 04:18 PM CST ----------

ignore this answer

pls take a look at:

http://www.linuxforums.org/forum/redhat-fedora-linux-help/26868-rpm-database-recovery.html

12235322
19th December 2009, 04:31 PM
what version of fedora do you use?


fedora 12 .

there is no change.

mouse_runner
19th December 2009, 05:34 PM
did you follow up the link i gave you?

David Batson
19th December 2009, 11:41 PM
If you recently updated gtk2 and have version gtk2-immodule-xim-2.18.5-3.fc12 installed, you may be affected by the following bug.

https://bugzilla.redhat.com/show_bug.cgi?id=548827

12235322
20th December 2009, 12:06 AM
did you follow up the link i gave you?
yes, but no change.

If you recently updated gtk2 and have version gtk2-immodule-xim-2.18.5-3.fc12 installed, you may be affected by the following bug.

https://bugzilla.redhat.com/show_bug.cgi?id=548827

ok , and how i will remove the update?

David Batson
20th December 2009, 01:59 AM
Either...

yum erase gtk2-immodule-xim*
Removes gtk2-immodule-xim. Shouldn't be an issue for most users. Xim is used for entering special characters from a standard keyboard.

or

yum downgrade gtk2*
Reverts to the previous version of gtk2 and gtk2-immodule-xim.

12235322
20th December 2009, 03:18 AM
that is the result :

[root@localhost ~]# yum erase gtk2-immodule-xim*
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

libldap-2.4.so.2: cannot open shared object file: No such file or directory

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.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]

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

David Batson
20th December 2009, 03:25 AM
You evidently have a different (or additional) problem with yum than the bug with the latest release of gtk2-immodule-xim. Sorry I don't have the answer.

leigh123linux
20th December 2009, 03:30 AM
Run ( if you run 64 bit change the package to suit )


su
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
rpm -Uvh --force http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm
yum clean all
yum update

12235322
20th December 2009, 03:39 AM
the result :

[root@localhost ~]# rm -f /var/lib/rpm/__db*
[root@localhost ~]# rpm --rebuilddb
rpmdb: page 12324: illegal page type or format
rpmdb: PANIC: Invalid argument
rpmdb: Packages: pgin failed for page 12324
error: db4 error(-30974) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbcursor->c_close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: File handles still open at environment close
rpmdb: Open file handle: /var/lib/rpm/Packages
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: File handles still open at environment close
rpmdb: Open file handle: /var/lib/rpm/Packages
rpmdb: Open file handle: /var/lib/rpm/Name
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery
[root@localhost ~]# rpm -Uvh --force http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm
Retrieving http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm
/usr/bin/curl: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
error: skipping http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm - transfer failed
[root@localhost ~]# rpm -Uvh --force http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm
Retrieving http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm
/usr/bin/curl: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
error: skipping http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/12/i386/openldap-2.4.19-1.fc12.i686.rpm - transfer failed
[root@localhost ~]# yum clean all
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

libldap-2.4.so.2: cannot open shared object file: No such file or directory

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.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]

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

scott32746
20th December 2009, 03:46 AM
I think I would just try to do an update from the install disk. ( not a new install )
It may install any missing rpm's needed. May need to also remove yum

12235322
20th December 2009, 03:52 AM
how i do that ?

scott32746
20th December 2009, 03:58 AM
Not totally sure what you saying,
but
down/burn iso to dvd
bootup up on dvd
when the install ask you for new install or update , select update.
it should add any rpm missing.
OR
if you do not have any data to be lost you may want to do a fresh install

mouse_runner
20th December 2009, 08:03 AM
try rpm -e gtk2-immodule-xim-2.18.5-3.fc12

see also http://www.rpm.org/max-rpm-snapshot/ch-rpm-erase.html

after that try if yum is working

leigh123linux
20th December 2009, 09:13 AM
I would give up and do a clean install.

12235322
20th December 2009, 02:31 PM
I would give up and do a clean install.

thanks for help.