旧版Ubuntu下载地址
https://old-releases.ubuntu.com/releases/


下载离线包
bash
sudo apt-get --download-only -o=dir::cache=/ncayu install net-tools

下载snmp离线安装包
bash
sudo apt-get --download-only -o=dir::cache=/root/snmp install snmp snmpd snmp-mibs-downloader

bash
sudo apt-get --download-only -o=dir::cache=/root/ncayu install vim

bash
root@heyu-virtual-machine:~# ntpdate time.nist.gov
13 Oct 14:12:28 ntpdate[30343]: adjust time server 132.163.97.1 offset -0.069826 sec
root@heyu-virtual-machine:~#
root@heyu-virtual-machine:~#
root@heyu-virtual-machine:~# ntpdate ntp.aliyun.com
13 Oct 14:13:08 ntpdate[31348]: adjust time server 203.107.6.88 offset -0.021694 sec
root@heyu-virtual-machine:~#
下载ssh工具
bash
sudo apt-get --download-only -o=dir::cache=/root/ubuntu-ssh install openssh-server

批量安装离线包
bash
sudo dpkg -i --force-depends *.deb
卸载安装包
bash
apt-get --purge remove openssh-server
