One: Install Ubuntu 16.04.5
:
1, MAGNET:?XT=URN:BTIH:C3C5FE05C329AE51C6ECA464F6B30BA0A457B2CA
2, Http://mirror.pnl.gov/releases/xenial/ubuntu-16.04.5-desktop-amd64.iso.torrent
After setting up the VM, all the way back to install successfully ubuntu 16.04.5
Two: Configure Ubuntu16.04 source
Reference:
Https://www.linuxidc.com/Linux/2017-11/148627.htm
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
To perform a command rollup:
[Email protected]:~$ cd/etc/apt[email protected]:/etc/apt$ sudo cp sources.list sources.list.bak[email protected]:/etc /apt$ Vim Sources.list
To execute the command detail procedure:
[Email protected]:~$cd/etc/apt[email protected]:/etc/apt$ sudo cp sources.list sources.list.bak[email protected]:/etc/apt$ vim sources.list [email protected]:/etc/apt$ Cat sources.list# notes the source image by default to improve apt update speed and, if necessary, self-uncomment Deb https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main restricted universe multiverse# deb-src https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main restricted universe Multiversedeb https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates main restricted universe multiverse# deb-src https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates main restricted universe Multiversedeb https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted universe multiverse# deb-src https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted universe Multiversedeb https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security main restricted universe multiverse# deb-src https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security Main restricted UniVerse multiverse# pre-release software source, it is not recommended to enable # Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-proposed main restricted Universe Multiversedeb [ARCH=AMD64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial stable# deb-src [arch= AMD64] Http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial stable# deb-src https://mirrors.tuna.tsinghua.edu.cn /ubuntu/xenial-proposed main restricted universe multiverse[email protected]:/etc/apt$ sudo apt-get update gets: 1 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial inrelease [247 KB] gets: 2 https://mirrors.tuna.tsinghua.edu.cn/ Ubuntu xenial-updates Inrelease [109 KB] gets: 3 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports Inrelease [ 107 KB] gets: 4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security inrelease [107 KB] gets: 5 https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 Packages [1,201 KB] gets: 6 https://mirrors.tuna.tsinghua.edu.cn/ Ubuntu Xenial/main i386 Packages [1,196 KB] gets: 7 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu XENial/main TRANSLATION-ZH_CN [74.8 KB] gets: 8 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main Translation-en [568 KB] Gets: 9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 DEP-11 Metadata [733 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main DEP-11 64x64 Icons [409 KB] get: one https://mirrors.tuna.tsinghua.edu.cn /ubuntu xenial/restricted amd64 Packages [8,344 B] Get: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/restricted i386 Packages [8,684 B] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/restricted translation-zh_cn [1,652 b] Get: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/restricted translation-en [2,908 B] Get: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 Packages [7,532 KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe i386 Packages [7,512 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xEnial/universe TRANSLATION-ZH_CN [172 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe Translation-en [4,354 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 DEP-11 Metadata [ 3,410 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/multiverse AMD64 Packages [144 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/multiverse i386 Packages [KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/multiverse TRANSLATION-ZH_CN [4,984 B] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu Xenial/multiverse Translation-en [106 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/multiverse DEP-11 64x64 Icons [KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 Packages [838 KB] gets: https://mIrrors.tuna.tsinghua.edu.cn/ubuntu Xenial-updates/main i386 Packages [757 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main Translation-en [344 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 DEP-11 Metadata [319 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main DEP-11 64x64 Icons [225 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/restricted amd64 Packages [7,556 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/restricted i386 Packages [7,524 B] Get: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/restricted Translation-en [2,272 B] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B] Acquisition: Panax Notoginseng https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 Packages [678 KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu Xenial-updates/universe i386 Packages [619 KB] gets: Https://mirrors.tuna. Tsinghua.edu.cn/ubuntu xenial-updates/universe Translation-en [274 KB] gets: https://mirrors.tuna.tsinghua.edu.cn/ Ubuntu xenial-updates/universe amd64 DEP-11 Metadata [247 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu Xenial-updates/universe DEP-11 64x64 Icons [325 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/ Multiverse AMD64 Packages [16.4 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/multiverse i386 Packages [15.5 KB] gets: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/multiverse translation-en [8,344 B ] Get: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B] gets: 46 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/main amd64 Packages [6,756 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/main i386 Packages [6,752 B] Acquisition: https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/main Translation-en [4,180 B] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,324 B] acquired: Wuyi https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/main DEP-11 64x64 Icons [B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/universe amd64 Packages [7,420 B] Acquisition: Wu https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/universe i386 Packages [7,104 B] Get: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/universe Translation-en [3,996 B] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,100 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/universe DEP-11 64x64 Icons [1,789 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu Xenial-backports/multiverse AMD64 DEP-11Metadata [216 b] Get: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [b] Get: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/main amd64 Packages [547 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu Xenial-security/main i386 Packages [476 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/main Translation-en [232 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 KB] gets: $ https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/restricted amd64 Packages [7,204 B] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/restricted i386 Packages [7,224 B] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/restricted Translation-en [2,152 B] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/restricted AMD64 dep-Metadata [+ B] Get: Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/universe amd64 Packages [365 KB] Get : Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/universe i386 Packages [312 KB] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/universe translation-en [138 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/universe DEP-11 64x64 Icons [147 KB] gets: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/multiverse amd64 Packages [3,456 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/multiverse i386 Packages [3,632 B] Get: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/multiverse Translation-en [1,744 B] acquired: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B] Acquisition: https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu Xenial-securiTy/multiverse DEP-11 64x64 Icons [B] downloaded 43.1 MB, time 12 seconds (3,456 kb/s) AppStream cache update completed, but some Metadat A was ignored due to errors. Reading Package list ... Complete
Third, install Docker:
Reference:
79413436
To perform a command rollup:
[Email protected]:~$ sudo apt-get-y install Apt-transport-https ca-certificates Curl Software-properties-common[email protected]:~$ Curl-fssl HTTP://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/UBUNTU/GPG | sudo apt-key add-[email protected]:~$ sudo add-apt-repository "Deb [ARCH=AMD64] http://mirrors.aliyun.com/docker-ce/ Linux/ubuntu $ (LSB_RELEASE-CS) stable "[Email protected]:~$ sudo apt-get-y update[email protected]:~$ sudo apt-get-y ins Tall docker-ce# Verify the installation is successful [email protected]:~$ sudo docker version
To execute the command detail procedure:
[email protected]:~$ sudo apt-get-y install Apt-transport-https ca-certificates Curl Software-properties-common is reading the package list ... Completing the dependency tree that is analyzing the package is reading state information ... Finished Apt-transport-https is already the latest version (1.2.27). Ca-certificates is already the latest version (20170717~16.04.1). Software-properties-common is already the latest version (0.96.20.7). The following "new" packages will be installed: Curl upgrades 0 packages, installs 1 new packages, uninstalls 0 packages, and 48 packages are not upgraded. You need to download the 139 KB archive. It consumes 339 kB of extra space after decompression. Get: 1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 Curl AMD64 7.47.0-1ubuntu2.8 [139 KB] Downloaded 139 KB, which takes 0 seconds (394 kb/s) to select the unselected package curl. (Reading Database ... The system currently has a total of 181,273 files and directories installed. is preparing to unpack .../curl_7.47.0-1ubuntu2.8_amd64.deb ... Unpacking Curl (7.47.0-1ubuntu2.8) ... Processing triggers for man-db (2.7.5-1) ... Setting Curl (7.47.0-1ubuntu2.8) ... [email protected]:~$ Curl-fssl HTTP://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/UBUNTU/GPG | sudo apt-key add-ok[email protected]:~$ sudo add-apt-repository "Deb [ARCH=AMD64] http://mirrors.aliyun.com/ Docker-ce/linux/ubuntu $ (LSB_RELEASE-CS) stable "[Email protected]:~$ sudo apt-get-y update gets: 1 Http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial inrelease [65.8 KB] Hit: 2 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial inrelease hit: 3 https://mirrors.tuna.tsinghua.edu.cn/ Ubuntu xenial-updates Inrelease Hit: 4 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports inrelease hit: 5 HTTPS ://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security Inrelease gets: 6 http://mirrors.aliyun.com/docker-ce/linux/ Ubuntu xenial/stable AMD64 Packages [4,067 B] Downloaded 69.9 KB, takes 0 seconds (95.2 kb/s) is reading the package list ... Complete the [email protected]:~$ sudo apt-get-y install docker-ce is reading the package list ... Completing the dependency tree that is analyzing the package is reading state information ... Completion will install the following software: Aufs-tools cgroupfs-mount git git-man liberror-perl pigz recommended installation: Git-daemon-run | Git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch Git-cvs git-mediawiki git-svn The following "new" packages will be installed: Aufs -tools cgroupfs-mount docker-ce git git-man liberror-perl pigz upgraded 0 packages, installed 7 new packages, uninstalled 0 packages, 48 packages were not upgraded. You need to download the 44.1 MB archive. 224 MB of extra space is consumed after decompression. Get: 1 http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable amd64 docker-ce amd64 18.06.1~ce~3-0~ubuntu [40.0 MB] gets: 2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 pigz amd64 2.3.1-2 [61.1 KB] gets: 3 https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 KB] gets: 4 Https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe AMD64 cgroupfs-mount all 1.2 [4,970 B] gets: 5 https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 Liberror-perl all 0.17-1.2 [19.6 KB] gets: 6 https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 Git-man all 1:2.7.4-0ubuntu1.4 [736 KB] gets: 7 https:// Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 git amd64 1:2.7.4-0ubuntu1.4 [3,158 KB] downloaded 44.1 MB, time 6 seconds (6 , 608 kb/s) is selected not selected The package Pigz. (Reading Database ... The system is currently installed a total of181,280 files and directories. is preparing to unpack .../pigz_2.3.1-2_amd64.deb ... Unpacking Pigz (2.3.1-2) ... Selecting Aufs-tools package is not selected. Preparing for unpacking .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ... Unpacking Aufs-tools (1:3.2+20130722-1.1UBUNTU1) ... Selecting Cgroupfs-mount package is not selected. Preparing for unpacking .../cgroupfs-mount_1.2_all.deb ... Unpacking Cgroupfs-mount (1.2) ... Selecting Docker-ce package is not selected. Preparing for unpacking .../docker-ce_18.06.1~ce~3-0~ubuntu_amd64.deb ... Unpacking Docker-ce (18.06.1~ce~3-0~ubuntu) ... Selecting Liberror-perl package is not selected. Preparing for unpacking .../liberror-perl_0.17-1.2_all.deb ... Unpacking Liberror-perl (0.17-1.2) ... Selecting Git-man package is not selected. Preparing for unpacking .../git-man_1%3a2.7.4-0ubuntu1.4_all.deb ... Unpacking Git-man (1:2.7.4-0ubuntu1.4) ... Selecting the unchecked package git. Preparing for unpacking .../git_1%3a2.7.4-0ubuntu1.4_amd64.deb ... Unpacking git (1:2.7.4-0ubuntu1.4) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for Libc-bin (2.23-0UBUNTU10) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for SYSTEMD (229-4ubuntu21.4) ... Setting Pigz (2.3.1-2) ... Setting Aufs-tools (1:3.2+20130722-1.1UBUNTU1) ... Setting Cgroupfs-mount (1.2) ... Setting docker-cE (18.06.1~ce~3-0~ubuntu) ... Setting Liberror-perl (0.17-1.2) ... Setting Git-man (1:2.7.4-0ubuntu1.4) ... Setting up Git (1:2.7.4-0ubuntu1.4) ... Processing triggers for Libc-bin (2.23-0UBUNTU10) ... Processing triggers for SYSTEMD (229-4ubuntu21.4) ... Processing triggers for ureadahead (0.100.0-19) ...
Iv. verifying that Docker is installed successfully
[Email protected]:~$ sudo docker versionclient:version: 18.06.1-ce API version: 1.38 Go version: go1.10.3 Git Commit: e68fc7a Built: Tue 17:24:56 2018 Os/arch : Linux/amd64 experimental : Falseserver:engine: version: 18.06.1-ce API version: 1.38 (minimum Version 1.12) Go Version : go1.10.3 Git commit: e68fc7a Built: Tue 17:23:21 2018 Os/arch : linux/ AMD64 Experimental: false
Ubuntu 16.04.5 Installing Docker