You are not logged in.

#1 2009-01-06 18:13:33

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

[solved] Nmap fails to run after system update

Hi

After updating the system nmap fails to start. I get this error

 
[root@pappbox ~]# nmap
nmap: error while loading shared libraries: libpcap.so.0.9.8: cannot open shared object file: No such file or directory

I have the latest version of both nmap and libpcap

Name           : libcap
Version        : 1.10-2
URL            : http://www.kernel.org/pub/linux/libs/security/linux-privs/
Licenses       : GPL  
Groups         : None
Provides       : None
Depends On     : glibc  
Optional Deps  : None
Required By    : avahi  samba  smbclient  
Conflicts With : None
Replaces       : None
Installed Size :  67,11 K
Packager       : Arch Linux (http://www.archlinux.org)
Architecture   : i686
Build Date     : sø. 29. okt. 2006 kl. 23.13 +0000
Install Date   : ti. 06. jan. 2009 kl. 01.17 +0000
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : POSIX 1003.1e capabilities
[root@pappbox ~]#
Name           : nmap
Version        : 4.76-3
URL            : http://nmap.org
Licenses       : custom:GPL  
Groups         : None
Provides       : None
Depends On     : pcre  openssl  libpcap>=1.0.0  lua  
Optional Deps  : pygtk: gui for nmap
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 8360,00 K
Packager       : Thomas Baechler <thomas@archlinux.org>
Architecture   : i686
Build Date     : ma. 01. des. 2008 kl. 18.07 +0000
Install Date   : ti. 06. jan. 2009 kl. 18.39 +0000
Install Reason : Explicitly installed
Install Script : No
Description    : A network exploration tool and security/port scanner

It appear that nmap is looking for the old version of libpcap.

Anyone who has an idea on how I can make this work?

I have been googeling for someone with the same problem. But still no luck.

Thank You !

Last edited by pappbox (2009-01-25 21:51:56)

Offline

#2 2009-01-06 20:26:12

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: [solved] Nmap fails to run after system update

weird.. I just Syu'ed and nmap is still rockin fine here:
daf666@pazuzu ~ $ pacman -Q | grep pcap
libpcap 1.0.0-1
daf666@pazuzu ~ $ pacman -Q | grep nmap
nmap 4.76-3

Offline

#3 2009-01-06 20:58:46

wreck
Member
Registered: 2008-03-22
Posts: 18

Re: [solved] Nmap fails to run after system update

I have a similar problem, though my error is different.

$ sudo nmap -sP 10.0.0.0/24
nmap: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by nmap)

and on my machine (x86_64):

 pacman -Q | grep pcap
libpcap 1.0.0-1

pacman -Q | grep nmap
nmap 4.76-3

pacman -Q | grep glibc
glibc 2.9-2
lib32-glibc 2.8-3

pacman -Q | grep libstdc++
lib32-libstdc++5 3.3.6-3
libstdc++5 3.3.6-2

Last edited by wreck (2009-01-06 20:59:17)

Offline

#4 2009-01-06 21:01:06

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved] Nmap fails to run after system update

$  pacman -Qo /usr/lib/libpcap.so
/usr/lib/libpcap.so ist in libpcap 1.0.0-1 enthalten

This lib is actually in libpcap, which was updated here a little while ago, see:

$  cat /var/log/pacman.log |grep pcap
[2008-11-11 23:46] installed libpcap (0.9.8-2)
[2008-12-01 23:03] upgraded libpcap (0.9.8-2 -> 1.0.0-1)

Maybe you chose another mirror?

Offline

#5 2009-01-06 21:26:58

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Re: [solved] Nmap fails to run after system update

I don't see why I should change mirror when the system is up to date? I have given it a shot thow. Both with the archlinux.org and archlinux.no mirrors.

strange that this has happend to only me, as far as I can tell.

[root@pappbox ~]# pacman -Qo /usr/lib/libpcap.so
/usr/lib/libpcap.so is owned by libpcap 1.0.0-1
[root@pappbox ~]# cat /var/log/pacman.log | grep libpcap
[2008-12-14 15:48] upgraded libpcap (0.9.8-2 -> 1.0.0-1)

Offline

#6 2009-01-06 22:33:58

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved] Nmap fails to run after system update

My idea was, that maybe your mirror misses something ...But doesn't even make sense, because your nmap is up to date and should depend on the latest libpcap ... No idea, sorry

Offline

#7 2009-01-07 03:13:36

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved] Nmap fails to run after system update

strange that this has happend to only me, as far as I can tell.

To me too. Anyhow, I solved it by reinstallig nmap. Surprise, surprise:

pacman -S nmap
resolving dependencies...
looking for inter-conflicts...
:: nmap conflicts with nmap-dist. Remove nmap-dist? [Y/n]  Y

Remove (1): nmap-dist-4.75-1  

Total Removed Size:   8.14 MB

Targets (1): nmap-4.76-3  

Total Download Size:    1.89 MB
Total Installed Size:   8.16 MB

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#8 2009-01-07 21:17:02

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Re: [solved] Nmap fails to run after system update

Well can't say I havent tryed that tongue'

[2008-09-23 22:45] installed nmap (4.76-1)
[2008-11-02 16:35] upgraded nmap (4.76-1 -> 4.76-2)
[2008-12-14 15:48] upgraded nmap (4.76-2 -> 4.76-3)
[2009-01-04 02:30] upgraded nmap (4.76-3 -> 4.76-3)
[2009-01-04 03:48] removed nmap (4.76-3)
[2009-01-04 03:48] installed nmap (4.76-3)
[2009-01-04 05:50] upgraded nmap (4.76-3 -> 4.76-3)
[2009-01-04 06:01] removed nmap (4.76-3)
[2009-01-04 06:02] installed nmap-dist (4.75-1)
[2009-01-04 20:02] removed nmap-dist (4.75-1)
[2009-01-04 20:02] installed nmap (4.76-3)

Last edited by pappbox (2009-01-07 21:18:20)

Offline

#9 2009-01-25 21:51:11

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Re: [solved] Nmap fails to run after system update

Hurray !

Solved it by running:

ln -s /usr/lib/libpcap.so.1  /usr/lib/libpcap.so.0.9.8

Thanks for all help smile

Offline

Board footer

Powered by FluxBB