目前此操作方法不支援ubuntu18.04第一步:新增源
# 下面這個docker的源
deb ubuntu-xenial main
deb bionic main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverse
deb bionic-proposed main restricted universe multiverse
deb-src bionic-proposed main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
版本對應關係如下:
所以在寫的時候這樣寫就好了
precise 12.04 (lts) deb ubuntu-precise main
trusty 14.04 (lts) deb ubuntu-trusty main
wily 15.10 deb ubuntu-wily main
xenial 16.04 (lts) deb ubuntu-xenial main
第二步:新增秘鑰
apt-key adv --keyserver hkp: --recv-keys 58118e89f3a912897c070adbf76221572c52609d
第三步:apt更新
apt-get update
第四步:檢視可選的docker版本
第五步:安裝想要的版本的docker
apt install docker-engine=1.11.2-0~xenial
在這個**檢視支援的版本/dists/
賞 謝謝你請我喝咖啡
支付寶
Ubuntu刪除舊版本核心
dpkg get selections grep linux image 顯示如下 linux image 3.0.0 12 generic deinstall linux image 3.0.0 14 generic deinstall linux image 3.0.0 16 generic i...
舊版本Ubuntu新增源
本文將介紹如何新增源使得官方不支援更新的ubuntu版本也能夠使用apt get命令安裝軟體。ctrl alt t開啟終端 sudo vim etc apt sources.list 在檔案開頭新增 deb jaunty main restricted universe multiverse deb...
安裝舊版本的iOS SDK
然後將舊版安裝在不同目錄。之後用ln將這些模擬器鏈到當前的xcode下面,示例 如下 cd developer platforms iphonesimulator.platform developer sdks sudo ln s developer 3.2.5 platforms iphonesi...