Jump to content

Deleting a corrupt(?) file


beejayzed
 Share

Recommended Posts

Today I tried to connect with kppp and it said unable to load libpcap.so.0.

I tried to delete it but it tells me that I don't have permission to delete

it,even if I am root! It seems as if it is supposed to be a link because in the

rpm it is. In konqueror the file doesn't show but in Midnight Commander it shows

but the entry is red. It says that it isn't a link. It seems as if it's

corrupted, the date of the file is 1970!

I did some investigating and in an attempt to fix it tried to uninstall the

libcap package which includes the library. When I tried to install it, it

refuses.

 

So my question is, how do I delete this file?

Maybe it would it invovle accessing the partitions raw contents?

Please tell me all and any suggestions in as few posts as possible because I'm posting this message in windows because I can't connect(kppp doesn't work).

Thanks to all in advance.

 

:help:

Edited by beejayzed
Link to comment
Share on other sites

libpcap.so.0 is a symlink to the real libpcap.so.0.8 (version number may be different for you, depending on libpcap version). Did you successfully uninstall it?

 

rpm -e --nodeps libpcap0-<<version>>

 

you can get the version that is installed by

 

rpm -qa | grep libpcap

 

Then reinstall it. If it won't uninstall, you can navigate to the directory where the new version is (I'll assume /mnt/cdrom/Mandrake/RPMS):

 

cd /mnt/cdrom/Mandrake/RPMS

rpm -ivh --replacefiles --replacepkgs libpcap0-<<version...you can just hit TAB to autocomplete>>

 

(You must be root to do all this)

Link to comment
Share on other sites

Okay, I tried that installation command and the terminal output is:

[root@localhost RPMS]# rpm -ivh --replacefiles --replacepkgs libpcap0-0.7.2-1mdk.i586.rpm

Preparing... ########################################### [100%]

1:libpcap0 error: unpacking of archive failed on file /usr/lib/libpcap.so.0: cpio: rename failed - Permission denied

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...