Docker in the process of learning, when carried to the Internet to build a Docker container case, need to use the Ping command to test, but from the warehouse pull down ubuntu: 15.10 no internal mirror Ping command, so to install the Ping command.
Normal installation command Ping command is as follows:
apt-get update apt install iputils-ping
But on the error when executing apt-get update, unable to download, install command Ping command is also being given, because the suspect is abroad download source, modify the download source, and apt-get update after you install the Ping command was successful.
Vim also want to find out is not installed, so you need to download the source is modified to install Vim.
Here is the installation of Vim:
First /etc/apt/sources.list file backup:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
Use the echo command to add the contents of the file:
echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
After completion of the update apt, (it may be error, but do not worry, you can execute the following command to install Vim):
apt-get update
Install Vim, command:
apt-get install vim
The following are apt to change the download source:
Use Vim change /etc/apt/sources.list file:
vim /etc/apt/sources.list
Delete the original list, add the following (USTC mirror source):
deb http: // mirrors.ustc.edu.cn/ubuntu/ great main restricted universe multiverse deb http: // mirrors.ustc.edu.cn/ubuntu/ great-security main restricted universe multiverse deb http: // mirrors.ustc .edu.cn / ubuntu / great-updates main restricted universe multiverse deb http: // mirrors.ustc.edu.cn/ubuntu/ great-proposed main restricted universe multiverse deb http: // mirrors.ustc.edu.cn/ubuntu / great-backports main restricted universe multiverse deb-src http: // mirrors.ustc.edu.cn/ubuntu/ great main restricted universe multiverse deb-src http: //mirrors.ustc.edu.cn/ubuntu/ great-security main restricted universe multiverse deb-src http: // mirrors.ustc.edu.cn/ubuntu/ great-updates main restricted universe multiverse deb-src http: // mirrors. ustc.edu.cn/ubuntu/ great-proposed main restricted universe multiverse deb-src http: // mirrors.ustc.edu.cn/ubuntu/ great-backports main restricted universe multiverse
Save and exit, and update apt:
apt-get update
Here is the Ping command to install:
apt install iputils-ping
Wait a little, the installation is complete.