1

I have installed libpcap-1.6.2 but when I want to install daq-2.0.4 it requires libpcap-1.0.0 and know I cannot install libpcap because this error occurred:

creating hard link `/usr/local/share/man/man3/pcap_datalink_val_to_description.3pcap' to `/usr/local/share/man/man3/pcap_datalink_val_to_name.3pcap': file exists make: *** [install] error 1

So I renamed this file "pcap_datalink_val_to_description.3pcap| but the same error caused for other files. What can I do?

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
zara-T
  • 35
  • 1
  • 2
  • 7
  • Your question is not clear to me although you can remove libcap-1.6.2 by checking which package provides it by doing **dpkg -S "libcap-1.6.2"** and then removing the package. Is this what you want? – heemayl Dec 08 '14 at 17:13
  • some file exist in man3 directory because of installing libpcap-1.6 and i don't want this version, when i want to install another version.file of v-1.6 exist and it will not install . sorry for my pure english – zara-T Dec 08 '14 at 17:21
  • Ok. AFAIU, you need to remove this one and install an older version of the package. I that case run the command from my previous comment to be sure which package gives "libcap-1.6.2" and then run **apt-cache showpkg ** to check what other versions are available in the repositories. You can do **sudo apt-get update** before that. – heemayl Dec 08 '14 at 17:35
  • After being sure which versions are available you an simply remove the package by **sudo apt-get remove ** or to remove the configuration file too **sudo apt-get purge **. After that you may need to remove the links if they still exists and then you can install the desired version by **sudo apt-get install =**. If this is what you want then i am gonna put this as the answer. – heemayl Dec 08 '14 at 17:36
  • this the resulet:E: Unable to locate package libpcap-1.6.2 E: Couldn't find any package by regex 'libpcap-1.6.2' but when i run "sudo make install" in directory of libpcap package, with no error installing got finished – zara-T Dec 08 '14 at 17:42
  • Got it now, you are compiling the package by yourself. If you are compiling/installing a package by yourself (without apt-get/dpkg) then dpkg/apt-get will not be able to locate the package. You have to delete all its components manually. From the directory of "libcap" package do **sudo make uninstall**, this should work. – heemayl Dec 08 '14 at 17:51
  • tnx it works well :) – zara-T Dec 08 '14 at 18:44

1 Answers1

1

If you are compiling/installing a package by yourself (without apt-get/dpkg) then apt-get/dpkg won't be able to locate the package. You have to delete all its components manually. From the directory of libpcap package do sudo make uninstall to uninstall the package.

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
heemayl
  • 90,425
  • 20
  • 200
  • 267