docker安装
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
GPG error: https://apt.dockerproject.org/repo ubuntu-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F76221572C52609D
执行:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keysF76221572C52609D
sudo apt-get update
254 sudo apt-get purge lxc-docker
255 apt-cache policy docker-engine
256 sudo apt-get update
257 sudo apt-get purge lxc-docker
258 apt-cache policy docker-engine
259 sudo vim /etc/apt/sources.list.d/docker.list
260 sudo apt-get update
261 sudo apt-get apt-transport-https
262 sudo apt-get install apt-transport-https
263 sudo apt-get install ca-certificates
264 sudo dpkg -i --force-overwrite /var/cache/apt/archives/libx265-102_2.2-1~16.04.york0_amd64.deb
265 exit
266 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
267 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
268 sudo apt-get update
269 apt-cache policy docker-ce
270 sudo apt-get install -y docker-ce
271 sudo apt-get purge grub-pc grub-common
272 sudo update-grub
273 sudo apt-get install -y docker-ce
274 sudo apt-get update
275 sudo apt-get install -y docker-ce
276 service docker start
277 docker run hello-world
278 history
------------------------------------------------------------
ubuntu 中文输入法:
sudo locale-gen
sudo apt install ibus-pinyin
sudo apt install ibus-libpinyin
sudo apt-get install language-pack-zh-hant language-pack-zh-hans
修改:sudo vi /etc/default/locale
sudo apt-get install convmv
sudo
dpkg-reconfigure locales
选择中文
修改 /etc/profile
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:zh:en_US:en
LC_ALL=zh_CN.UTF-8
退出终端,重新打开(测试使用source不起作用)