[SOLVED] Help me please!!! I remove libcap package by mistake and...
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help me please!!! I remove libcap package by mistake and...
I can't run commands like as:
ls, yum, rpm, ./configure, and...
The error is shown:
error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
How did you remove it? First recommendation is to reverse that. If you did a rm of that and a variety of files, you can run package manager to fix and force reinstallation of the appropriate packages.
How did you remove it? First recommendation is to reverse that. If you did a rm of that and a variety of files, you can run package manager to fix and force reinstallation of the appropriate packages.
I've used rpm --nodeps -e libcap. RPM and yum doesn't work!!!
you need another host, download the package itself, unpack and copy the file libcap.so.2 into the system. That may allow to reinstall that package. Just copying the file is not sufficient.
you need another host, download the package itself, unpack and copy the file libcap.so.2 into the system. That may allow to reinstall that package. Just copying the file is not sufficient.
Either that or download the source for libpcap, then make and install it.
you need another host, download the package itself, unpack and copy the file libcap.so.2 into the system. That may allow to reinstall that package. Just copying the file is not sufficient.
it depends on your installation, probably: /lib/libcap.so.2 or /lib64/libcap.so.2 or /lib/x86_64-linux-gnu/libcap.so.2 or /lib/i386-linux-gnu/libcap.so.2
I'm not really sure, I would try /lib first.
The path should be: /usr/lib/<system-type>-linux-gnu for instance i386 as the system-type. An issue here is that if you download/install on a parallel system, you potentially need the same kernel version, at the very least you need the same libpcap version you had before. That's why I wonder if it's better to try and get the source and then build and install it on your system where the problem is.
it depends on your installation, probably: /lib/libcap.so.2 or /lib64/libcap.so.2 or /lib/x86_64-linux-gnu/libcap.so.2 or /lib/i386-linux-gnu/libcap.so.2
I'm not really sure, I would try /lib first.
Thank you, so much.. I was in a bad situation and you helped me, thank you.
An issue here is that if you download/install on a parallel system, you potentially need the same kernel version, at the very least you need the same libpcap version you had before.
I did not tell him to install it, just download and unpack the given package. Of course the same version - if he was able to identify.
Quote:
Originally Posted by rtmistler
That's why I wonder if it's better to try and get the source and then build and install it on your system where the problem is.
I have no idea which one is the better (make/make install from source or just do that trick to be able to reinstall).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.