LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   libpopt.so.0: cannot read file data (http://www.linuxquestions.org/questions/linux-desktop-74/libpopt-so-0-cannot-read-file-data-503603/)

agustingp7 11-21-2006 10:54 AM

libpopt.so.0: cannot read file data
 
Hello:
My distro: Suse 10

The problem:

linux:/home/agustin # rpm -q
rpm: error while loading shared libraries: /usr/lib/libpopt.so.0: cannot read file data: Invalid argument

linux:/home/agustin # yast2
/usr/lib/YaST2/plugin/libpy2qt.so.2: error while loading shared libraries: /usr/lib/libpopt.so.0: cannot read file data: Invalid argument
Command: /sbin/yast2 sw_single &
/usr/lib/YaST2/plugin/libpy2qt.so.2: error while loading shared libraries: /usr/lib/libpopt.so.0: cannot read file data: Invalid argument
Error loading language plugin /usr/lib/YaST2/plugin/libpy2lang_perl.so: /usr/lib/libpopt.so.0: cannot read file data: Invalid argument
No such client module sw_single


So, I can't reinstall the "popt" package.
I've tried different things without success.
Any Advice?
Thanks, Agustín.

PD: some more information:

agustin@linux:/usr/lib> ls -l libpopt.so.1.0.0
?--------T 61489 135997456 100991208 3360874676 1970-05-08 16:02 libpopt.so.1.0.0

linux:/usr/lib # lsattr libpopt.so.1.0.0
lsattr: Inappropriate ioctl for device While reading flags on libpopt.so.1.0.0

reddazz 11-22-2006 04:11 AM

Try doing the following,
Code:

#chown root:root /usr/lib/libpopt.so.1.0.0
#chmod 755 /usr/lib/libpopt.so.1.0.0

I am not sure whether that will resolve your problems, but from the output, it seems like libpopt* has no rwx perms to anyone and the user and group ownership is not really clear.

agustingp7 11-22-2006 07:27 AM

Quote:

Originally Posted by reddazz
Try doing the following,
Code:

#chown root:root /usr/lib/libpopt.so.1.0.0
#chmod 755 /usr/lib/libpopt.so.1.0.0

I am not sure whether that will resolve your problems, but from the output, it seems like libpopt* has no rwx perms to anyone and the user and group ownership is not really clear.

Thanks for your interest.
I did it without results.
I've solved the problem with the following steps:
1.- I checked the root partition whit e2fsck from SystemrescueCD. A lot of things had to be fixed.
2.- I reenter Suse 10 and I found that the libraries libpopt,so,0.0.0 andd .1.0.0 had desappered.
3.- With the Kanotix LiveCD I copied libpopt.so.0.0.0 in Suse /usr/lib.
4.- Reboot and bingo.
5.- With Yast, I've reinstalled the package popt.1.7-221.
Thanks again.
Agustin.


All times are GMT -5. The time now is 12:22 AM.