bash_ping_ command not found

#今天邪门了。在docker里面安装nginx的时候老碰见这类问题:以下是我排错的问题过程。

本来是想省事,百度搜搜,结果找了一圈没找到,只好静静思路。

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www# apt-cache search ping #搜索要安装的包

iputils-arping - Tool to send ICMP echo requests to an ARP address

iputils-ping - Tools to test the reachability of network hosts  #也就是这个包,按照这个包即可

kjumpingcube - simple tactical game

kpartx - create device mappings for partitions

ktouch - touch typing tutor for KDE

libgupnp-igd-1.0-4 - library to handle UPnP IGD port mapping

libgupnp-igd-1.0-dbg - library to handle UPnP IGD port mapping - debug symbols

libgupnp-igd-1.0-dev - library to handle UPnP IGD port mapping - development files

libgupnp-igd-1.0-doc - library to handle UPnP IGD port mapping - documentation

libnfsidmap2 - NFS idmapping library

libtextwrap-dev - text-wrapping library with i18n - development files

libtextwrap1 - text-wrapping library with i18n - runtime

perl-modules - Core Perl modules

po4a - tools for helping translation of documentation

powerwake - remotely wake a napping system

python-pyicu - Python extension wrapping the ICU C++ API

python-pyicu-dbg - Python extension wrapping the ICU C++ API (debug extension)

2ping - Ping utility to determine directional packet loss

arping - sends IP and/or ARP pings (to the MAC address)

asciijump - Small and funny ASCII-art game about ski jumping

blends-dev - Debian Pure Blends common files for developing metapackages

camping - small Ruby web framework for Model-View-Controller type applications

clam-networkeditor - CLAM Network Editor, prototyping tool for CLAM

console-braille - Fonts and keymaps for reading/typing unicode braille

dhcping - DHCP Daemon Ping Program

dist - Tools for developing, maintaining and distributing software.

doctrine - Tool for object-relational mapping in PHP

drupal6-mod-pingback - pingback modules for Drupal 6

dvorak7min - typing tutor for Dvorak keyboards

echolot - Pinger for anonymous remailers such as Mixmaster

echoping - A small test tool for TCP servers

eekboek - Bookkeeping software for small and medium-size businesses

electricsheep - screensaver showing collective dream of sleeping computers

esniper - simple, lightweight tool for sniping ebay auctions

expeyes - hardware & software framework for developing science experiments

expeyes-firmware-dev - hardware & software framework for developing science experiments

foxtrotgps - GTK+ mapping and GPS application

foxtrotgps-dbg - GTK+ mapping and GPS application (debug)

fping - sends ICMP ECHO_REQUEST packets to network hosts

freewheeling - live looping musical instrument

galax - XQuery implementation with static typing - command line front-ends

galax-doc - XQuery implementation with static typing - documentation

galax-extra - XQuery implementation with static typing - utilities

galaxd - XQuery implementation with static typing - network servers

gdecrypt - GUI for mapping/mounting and creating encrypted volumes

gmt - Generic Mapping Tools

gmt-coast-low - Low resolution coastlines for the Generic Mapping Tools

gmt-doc - HTML documentation for GMT, the Generic Mapping Tools

gmt-doc-pdf - PDF docs for GMT, the Generic Mapping Tools

gmt-doc-ps - PostScript docs for the Generic Mapping Tools

gmt-manpages - Manpages for the Generic Mapping Tools

gmt-tutorial-pdf - Tutorial for GMT, the Generic Mapping Tools (PDF)

gmt-tutorial-ps - Tutorial for the Generic Mapping Tools (PostScript)

gourmet - A gtk-based recipe organizer and shopping list generator

gtypist - simple ncurses touch typing tutor

gwibber-service-pingfm - pingfm plugin for Gwibber

hping3 - Active Network Smashing Tool

httping - ping-like program for http-requests

ibus-table-jyutping - ibus-table input method: Jyutping

inetutils-ping - ICMP echo tool

ioping - Simple disk I/O latency measuring tool

iprelay - User-space bandwidth shaping TCP proxy daemon

junior-typing - Debian Jr. typing

kindleclip - User interface for managing Amazon Kindle's "My Clippings" file

klavaro - Flexible touch typing tutor

kmflcomp - KMFL (Keyboard Mapping for Linux) Compiler

labyrinth - lightweight mind-mapping tool

libapache-session-perl - modules for keeping persistent user data across HTTP requests

libcgi-application-server-perl - simple HTTP server for developing with CGI::Application

libcgic-dev - C library for developing CGI applications

libcgic2 - C library for developing CGI applications

libclippoly-dev - polygon clipping routines, development library

libclippoly0 - polygon clipping routines, runtime library

libcommons-digester-java - Rule based XML Java object mapping tool

libcommons-digester-java-doc - Rule based XML Java object mapping tool (documentation)

libdaemon-generic-perl - framework for starting, stopping, reconfiguring daemon-like programs

libdata-format-html-perl - Perl module for dumping Perl objects to HTML

libdata-treedumper-perl - module for dumping data structures in various formats

libdbix-dbstag-perl - module providing relational database to hierarchical mapping

libescape-ruby - HTML/URI/shell escaping utilities for Ruby

libevocosm-3.1-1 - a C++ framework for developing evolutionary algorithms

libevocosm-dev - a C++ framework for developing evolutionary algorithms

libgalax-ocaml-dev - XQuery implementation with static typing - OCaml libraries

libgenome-1.3-0 - toolkit for developing bioinformatic related software

libgenome-1.3-0-dev - toolkit for developing bioinformatic related software

libghc-monad-loops-dev - monadic looping

libghc-monad-loops-doc - monadic looping; documentation

libghc-monad-loops-prof - monadic looping; profiling libraries

libgmt-dev - Generic Mapping Tools Library

libgmt4 - Generic Mapping Tools Library

libheap-perl - Perl extensions for keeping data partially sorted

libi18n-charset-perl - Perl module for mapping character set names to IANA names

libjellydoc-java - Library for helping generate Jelly taglib documentation

libkmflcomp0 - KMFL (Keyboard Mapping for Linux) compiler library

libmapnik-dev - C++/Python toolkit for developing GIS applications (dummy)

libmapnik2-2.0 - C++/Python toolkit for developing GIS applications (libraries)

libmapnik2-dev - C++/Python toolkit for developing GIS applications (devel)

libmaven-stapler-plugin-java - Maven plugin for developing stapler applications

libmockobjects-java - Framework for developing and using mock objects

libmockobjects-java-doc - Framework for developing and using mock objects

libmorph - digital image warping library

libmorph-dev - digital image warping library (development files)

libnamespace-clean-perl - module for keeping imports and functions out of the current namespace

libnet-oping-perl - module for ICMP latency measurement

libnet-ping-external-perl - Provide an interface to the system ping command

libnetserver-generic-perl - module for developing internet servers in perl

liboping-dev - C/C++ library to generate ICMP ECHO_REQUESTs (development files)

liboping0 - C/C++ library to generate ICMP ECHO_REQUESTs

libperl-ostype-perl - Perl module mapping operating system names to generic types

libplack-middleware-status-perl - Perl module for Plack middleware mapping URLs to status codes

libplotmm-dev - Headers for developing programs that will use plotmm

libpmap3.0 - Networked server for robots and sensors - particle-based mapping library

libpoe-component-client-ping-perl - ICMP ping client component for POE

libregexp-reggrp-perl - Perl module for grouping regular expressions

libspatialindex-dev - A general framework for developing spatial indices

libspatialindex1 - A general framework for developing spatial indices - development files

libspring-oxm-java - modular Java/J2EE application framework - Object/XML Mapping

libsqlite3-mod-blobtoxy - SQLite3 extension module for read-only BLOB to X/Y mapping

libsuil-0-0 - library for loading and wrapping LV2 plugin UIs

libtext-autoformat-perl - module for automatic text wrapping and reformatting

libtext-flow-perl - module providing generalized text wrapping

libtext-reform-perl - Perl module for manual text wrapping and reformatting

libtext-wrapper-perl - Simple word wrapping routine

libtuxcap-dev - framework for developing 2D games - development files

libtuxcap4.0 - framework for developing 2D games - runtime libraries

libtuxcap4.0-dbg - framework for developing 2D games - debugging symbols

libunicode-map-perl - Perl module for mapping charsets from and to UTF16 Unicode

liburi-todisk-perl - module to provide mapping between URIs and on-disk storage

libweb-scraper-perl - Web Scraping Toolkit using HTML and CSS Selectors or XPath expressions

libwiki-toolkit-plugin-ping-perl - "ping" various services when nodes are written

libxml-dumper-perl - Perl module for dumping Perl objects from/to XML

mactelnet-client - Console tools for telneting and pinging via MAC addresses

mailping - monitor email service availability and functioning

mapnik-doc - C++/Python toolkit for developing GIS applications (doc)

mapnik-utils - C++/Python toolkit for developing GIS applications (utilities)

mp3wrap - Utility for MP3 wrapping (rolling multiple MP3s into one)

mrtg-ping-probe - Ping module for Multi Router Traffic Grapher

nethogs - Net top tool grouping bandwidth per process

octave-mapping - geographical mapping functions for Octave

oping - sends ICMP_ECHO requests to network hosts

orbital-eunuchs-sniper - An anti-terrorist, pro-Eunuchs, satellite sniping game

pangzero - action game that involves popping balloons with a harpoon

pd-mapping - a Pd library for creatively mapping data

pd-smlib - Pd library for mapping DSP data to controls

pfstmo - set of tone mapping operators

php-net-ping - PEAR class wrapper around the ping shell utility

pingus - Free Lemmings(TM) clone

pingus-data - Data files for pingus, a free Lemmings(TM) clone

plywood - Playwriting typing and typesetting help

python-cluster - allows grouping a list of arbitrary objects into related groups (clusters)

python-gupnp-igd - Python binding for the UPnP IGD port mapping library

python-mapnik2 - C++/Python toolkit for developing GIS applications (Python)

python-metaconfig - Python ConfigParser bootstraping library

python-renpy - framework for developing visual-novel type games - Python module

python-scrapy - Python web scraping and crawling framework

python-scrapy-doc - Python web scraping and crawling framework documentation

python-traits - Manifest typing and reactive programming for Python

qlandkartegt - GPS mapping (GeoTiff and vector) and GPSr management

r-cran-boot - GNU R package for bootstrapping functions from Davison and Hinkley

r-cran-foreach - GNU R foreach looping support

r-other-mott-happy - GNU R package for fine-mapping complex diseases

renpy - framework for developing visual-novel type games

renpy-demo - framework for developing visual-novel type games - demo

renpy-doc - framework for developing visual-novel type games - doc

scim-kmfl-imengine - KMFL (Keyboard Mapping for Linux) IM engine for the SCIM platform

semantik - mindmapping-like tool for KDE

shanty - Makes a whopping great postscript file from an image and a text

smokeping - latency logging and graphing system

sooperlooper - Looping Sampler

ssmping - check your multicast connectivity

stud - scalable TLS unwrapping daemon

survex - cave surveying and mapping software

titanion - strike down super high-velocity swooping insects

titanion-data - strike down super high-velocity swooping insects - game data

tkcon - Enhanced interactive console for developing in Tcl

tuxtype - Educational Typing Tutor Game Starring Tux

tuxtype-data - Data files for the Educational Typing Tutor Game Starring Tux

typespeed - Zap words flying across the screen by typing them correctly

uwsgi-plugin-ping - ping plugin for uWSGI

vcdimager - A VideoCD (VCD) image mastering and ripping tool

vym - mindmapping tool

wcd - saves time typing when you want to change directories

wondershaper - Easy to use traffic shaping script

xjump - A jumping game for X

xwrits - reminds you to take a break from typing

zapping - television viewer for the GNOME environment

zapping-dbg - detached debugging symbols for zapping

gnu-efi - Library for developing EFI applications

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www#

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www# apt-get install iputils-ping    #安装

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

  iputils-ping

0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.

Need to get 56.1 kB of archives.

After this operation, 143 kB of additional disk space will be used.

Get:1 http://archive.ubuntu.com/ubuntu/ precise/main iputils-ping amd64 3:20101006-1ubuntu1 [56.1 kB]

Fetched 56.1 kB in 1s (45.5 kB/s)

debconf: delaying package configuration, since apt-utils is not installed

Selecting previously unselected package iputils-ping.

(Reading database ... 18270 files and directories currently installed.)

Unpacking iputils-ping (from .../iputils-ping_3%3a20101006-1ubuntu1_amd64.deb) ...

Setting up iputils-ping (3:20101006-1ubuntu1) ...

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www# pi

piconv      pidof       ping        ping6       pinky       pivot_root

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www# pin

ping   ping6  pinky

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www# pin

ping   ping6  pinky

root@9ac06952659b:/usr/local/src/nginx-rtmp-module/test/www# ping www.baidu.com #测试OK。

PING www.a.shifen.com (180.97.33.108) 56(84) bytes of data.

64 bytes from 180.97.33.108: icmp_req=1 ttl=57 time=1.33 ms

64 bytes from 180.97.33.108: icmp_req=2 ttl=57 time=1.32 ms

相关文章
相关标签/搜索