Posted: Mon Apr 23, 2012 21:47 Post subject: Why can't I install tcpdump easily?
Code:
root@DD-WRT:~# ipkg update
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Packages 100% |*******************************| 143k 00:00:00 ETA
Done.
Updated list of available packages in /jffs/usr/lib/ipkg/lists/whiterussian
Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Packages 100% |*******************************| 568 00:00:00 ETA
Done.
Updated list of available packages in /jffs/usr/lib/ipkg/lists/non-free
Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Packages 100% |*******************************| 98390 00:00:00 ETA
Done.
Updated list of available packages in /jffs/usr/lib/ipkg/lists/backports
root@DD-WRT:~# ipkg -d root install tcpdump
Downloading http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
libpcap_0.9.4-1_mips 100% |*******************************| 68534 00:00:00 ETA
Done.
Unpacking libpcap...Done.
Configuring libpcap...Done.
Downloading http://downloads.openwrt.org/whiterussian/packages/tcpdump_3.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
tcpdump_3.9.4-1_mips 100% |*******************************| 251k 00:00:00 ETA
Done.
ipkg_install_file: ERROR: tcpdump depends on the following uninstalled programs:
libpcap
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/tcpdump_3.9.4-1_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
root@DD-WRT:~# ipkg install tcpdump
Downloading http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
libpcap_0.9.4-1_mips 100% |*******************************| 68534 00:00:00 ETA
Done.
Unpacking libpcap...Done.
Configuring libpcap...Done.
Downloading http://downloads.openwrt.org/whiterussian/packages/tcpdump_3.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
tcpdump_3.9.4-1_mips 100% |*******************************| 251k 00:00:00 ETA
Done.
ipkg_install_file: ERROR: tcpdump depends on the following uninstalled programs:
libpcap
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/tcpdump_3.9.4-1_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
root@DD-WRT:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 1984 1984 0 100% /
/dev/root 1984 1984 0 100% /
/dev/mtdblock/4 896 468 428 52% /jffs
root@DD-WRT:~# ls /jffs/usr/lib/
ipkg libpcap.so.0.9 libpcap.so.0.9.4
root@DD-WRT:~# ipkg remove tcpdump
root@DD-WRT:~# ls /jffs/usr/lib/
ipkg libpcap.so.0.9 libpcap.so.0.9.4
root@DD-WRT:~# ipkg remove libpcap
root@DD-WRT:~# ls /jffs/usr/lib/
ipkg libpcap.so.0.9 libpcap.so.0.9.4
root@DD-WRT:~# rm /jffs/usr/lib/libpcap.so.0.9*
root@DD-WRT:~# ls /jffs/usr/lib/
ipkg
root@DD-WRT:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 1984 1984 0 100% /
/dev/root 1984 1984 0 100% /
/dev/mtdblock/4 896 388 508 43% /jffs
root@DD-WRT:~# ipkg -d root install tcpdump
The following package were previously requested but have not been installed:
tcpdump
Install them now [Y/n] ? Y
Downloading http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
libpcap_0.9.4-1_mips 100% |*******************************| 68534 00:00:00 ETA
Done.
Unpacking libpcap...Done.
Configuring libpcap...Done.
Downloading http://downloads.openwrt.org/whiterussian/packages/tcpdump_3.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
tcpdump_3.9.4-1_mips 100% |*******************************| 251k 00:00:00 ETA
Done.
ipkg_install_file: ERROR: tcpdump depends on the following uninstalled programs:
libpcap
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/tcpdump_3.9.4-1_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
Downloading http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
libpcap_0.9.4-1_mips 100% |*******************************| 68534 00:00:00 ETA
Done.
tar: short read
tar: short read
ipkg_install_file: ERROR unpacking control.tar.gz from /jffs/tmp/ipkg/libpcap_0.9.4-1_mipsel.ipk
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/libpcap_0.9.4-1_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
root@DD-WRT:~# ls /jffs/usr/lib/
ipkg libpcap.so.0.9 libpcap.so.0.9.4
root@DD-WRT:~# crap
SYSTEM: This is, you are right!
Why doesn't it just say "not enough room in directory /jffs" or something?
Someone fix this please (ipkg space / disk full error reporting).
Take that request to the maintainer of ipkg, this is not a specific dd-wrt problem.
So ipkg isn't a concern for dd-wrt people?
And having it report "disk full" isn't a concern to anyone one on the forum who has to answer over and over again that it's a disk space problem?
Edit:
Another question would be, is there a smaller "tcpdump" more limited of course, or something like it that's smaller?
It is expected that those users who install additional packages on their router knows what they are doing and those who don't should keep their hands off.
Part of knowing what you are doing contains finding out the size of the packages before installing them,
similar to looking at the price tag of a product in a shop and knowing the contents in your wallet before proceeding to the cashier..
If you want a system with full error message handling and all commands with every possible cmd switch included then build yourself a linux based desktop or routerboard router with gigabytes of ram and terrabytes of hard disk and you can install whatever extra you need without having to think about space limitations.
Your router has severe space limits and every extra byte of code does not only affect your router but also the routers of all dd-wrt users worldwide where 9 out of 10 of them are running dd-wrt just as it is. _________________ Kernel panic: Aiee, killing interrupt handler!
Why doesn't it just say "not enough room in directory /jffs" or something?
Someone fix this please (ipkg space / disk full error reporting).
Take that request to the maintainer of ipkg, this is not a specific dd-wrt problem.
So ipkg isn't a concern for dd-wrt people?
And having it report "disk full" isn't a concern to anyone one on the forum who has to answer over and over again that it's a disk space problem?
Edit:
Another question would be, is there a smaller "tcpdump" more limited of course, or something like it that's smaller?
It is expected that those users who install additional packages on their router knows what they are doing and those who don't should keep their hands off.
Part of knowing what you are doing contains finding out the size of the packages before installing them,
similar to looking at the price tag of a product in a shop and knowing the contents in your wallet before proceeding to the cashier..
If you want a system with full error message handling and all commands with every possible cmd switch included then build yourself a linux based desktop or routerboard router with gigabytes of ram and terrabytes of hard disk and you can install whatever extra you need without having to think about space limitations.
Your router has severe space limits and every extra byte of code does not only affect your router but also the routers of all dd-wrt users worldwide where 9 out of 10 of them are running dd-wrt just as it is.
Yes, you are right, not enough room for "Disk Full", 9 bytes.
And it's failing for a reason so you already have a code byte so let's say a if statement complied in C, OK maybe 5 or so more bytes of code.
And the packages don't make it clear how big the item actually is.
buddee wrote:
Being that you never list your router as i said, how would anyone know what flash amount you have to even allow JFFS usage here?
No, not listing basic info is of no concern here, i suppose we just come up with answers out of thin air...
Is something wrong with the part of the printout I posted where this hardly ever used rare as can be command called "df" is used?