要在Ubuntu上離線安裝unzip,可以按照以下步驟操作:
wget http://security.ubuntu.com/ubuntu/pool/main/u/unzip/unzip_6.0-21ubuntu1_amd64.deb
將下載好的deb包拷貝到需要安裝unzip的Ubuntu機器上,可以使用U盤或者通過scp命令傳輸。
在目標Ubuntu機器上安裝unzip的deb包:
sudo dpkg -i unzip_6.0-21ubuntu1_amd64.deb
sudo apt-get -f install
這樣就可以在Ubuntu上離線安裝unzip了。請注意,如果unzip的版本不同,需要替換上面的下載鏈接為對應版本的deb包。