Skip to content

Instantly share code, notes, and snippets.

@alvations
Created April 7, 2017 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvations/ebe7175b984213d6f64a3c779ba3249e to your computer and use it in GitHub Desktop.
Save alvations/ebe7175b984213d6f64a3c779ba3249e to your computer and use it in GitHub Desktop.
user@servername:~$ sudo apt-get remove docker docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'docker' is not installed, so not removed
Package 'docker-engine' is not installed, so not removed
The following packages were automatically installed and are no longer required:
aufs-tools cgroup-lite linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
user@servername:~$ sudo apt-get update
0% [Working]
Hit http://ppa.launchpad.net trusty InRelease
Ign http://sg.archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit https://download.docker.com trusty InRelease
Get:2 http://sg.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit https://download.docker.com trusty/stable amd64 Packages
Hit https://apt.dockerproject.org ubuntu-trusty InRelease
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit https://apt.dockerproject.org ubuntu-trusty/main amd64 Packages
Get:3 http://security.ubuntu.com trusty-security/main Sources [129 kB]
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports InRelease
Get:4 https://download.docker.com trusty/stable Translation-en_SG
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:5 https://apt.dockerproject.org ubuntu-trusty/main Translation-en_SG
Hit http://sg.archive.ubuntu.com trusty Release.gpg
Get:6 http://security.ubuntu.com trusty-security/restricted Sources [4,941 B]
Get:7 http://sg.archive.ubuntu.com trusty-updates/main Sources [395 kB]
Get:8 http://security.ubuntu.com trusty-security/universe Sources [50.6 kB]
Get:9 http://security.ubuntu.com trusty-security/multiverse Sources [3,203 B]
Get:10 http://security.ubuntu.com trusty-security/main amd64 Packages [606 kB]
Get:11 http://sg.archive.ubuntu.com trusty-updates/restricted Sources [6,327 B]
Get:12 http://sg.archive.ubuntu.com trusty-updates/universe Sources [176 kB]
Get:13 http://sg.archive.ubuntu.com trusty-updates/multiverse Sources [7,763 B]
Get:14 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.0 kB]
Get:15 http://sg.archive.ubuntu.com trusty-updates/main amd64 Packages [972 kB]
Get:16 http://security.ubuntu.com trusty-security/universe amd64 Packages [155 kB]
Get:17 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,143 B]
Get:18 http://security.ubuntu.com trusty-security/main i386 Packages [565 kB]
Ign https://apt.dockerproject.org ubuntu-trusty/main Translation-en_SG
Ign https://apt.dockerproject.org ubuntu-trusty/main Translation-en
Get:19 http://sg.archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.1 kB]
Get:20 http://security.ubuntu.com trusty-security/restricted i386 Packages [13.8 kB]
Get:21 http://sg.archive.ubuntu.com trusty-updates/universe amd64 Packages [402 kB]
Get:22 http://security.ubuntu.com trusty-security/universe i386 Packages [155 kB]
Get:23 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4,292 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Get:24 http://sg.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.3 kB]
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Get:25 http://sg.archive.ubuntu.com trusty-updates/main i386 Packages [932 kB]
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Get:26 http://sg.archive.ubuntu.com trusty-updates/restricted i386 Packages [16.9 kB]
Get:27 http://sg.archive.ubuntu.com trusty-updates/universe i386 Packages [403 kB]
Ign https://download.docker.com trusty/stable Translation-en_SG
Get:28 http://sg.archive.ubuntu.com trusty-updates/multiverse i386 Packages [14.6 kB]
Get:29 http://sg.archive.ubuntu.com trusty-updates/main Translation-en [482 kB]
Ign https://download.docker.com trusty/stable Translation-en
Get:30 http://sg.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,430 B]
Get:31 http://sg.archive.ubuntu.com trusty-updates/restricted Translation-en [3,975 B]
Get:32 http://sg.archive.ubuntu.com trusty-updates/universe Translation-en [213 kB]
Hit http://sg.archive.ubuntu.com trusty-backports/main Sources
Hit http://sg.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://sg.archive.ubuntu.com trusty-backports/universe Sources
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://sg.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://sg.archive.ubuntu.com trusty Release
Hit http://sg.archive.ubuntu.com trusty/main Sources
Hit http://sg.archive.ubuntu.com trusty/restricted Sources
Hit http://sg.archive.ubuntu.com trusty/universe Sources
Hit http://sg.archive.ubuntu.com trusty/multiverse Sources
Hit http://sg.archive.ubuntu.com trusty/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/main i386 Packages
Hit http://sg.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://sg.archive.ubuntu.com trusty/universe i386 Packages
Hit http://sg.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://sg.archive.ubuntu.com trusty/main Translation-en
Hit http://sg.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://sg.archive.ubuntu.com trusty/restricted Translation-en
Hit http://sg.archive.ubuntu.com trusty/universe Translation-en
Ign http://sg.archive.ubuntu.com trusty/main Translation-en_SG
Ign http://sg.archive.ubuntu.com trusty/multiverse Translation-en_SG
Ign http://sg.archive.ubuntu.com trusty/restricted Translation-en_SG
Ign http://sg.archive.ubuntu.com trusty/universe Translation-en_SG
Fetched 5,900 kB in 18s (324 kB/s)
Reading package lists... Done
user@servername:~$ sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-extra-4.4.0-72-generic is already the newest version.
linux-image-extra-4.4.0-72-generic set to manually installed.
linux-image-extra-virtual is already the newest version.
The following packages were automatically installed and are no longer required:
aufs-tools cgroup-lite linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
user@servername:~$ wget -qO- https://get.docker.com/ | sudo sh
apparmor is enabled in the kernel and apparmor utils were already installed
+ echo -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFWln24BEADrBl5p99uKh8+rpvqJ48u4eTtjeXAWbslJotmC/CakbNSqOb9o
ddfzRvGVeJVERt/Q/mlvEqgnyTQy+e6oEYN2Y2kqXceUhXagThnqCoxcEJ3+KM4R
mYdoe/BJ/J/6rHOjq7Omk24z2qB3RU1uAv57iY5VGw5p45uZB4C4pNNsBJXoCvPn
TGAs/7IrekFZDDgVraPx/hdiwopQ8NltSfZCyu/jPpWFK28TR8yfVlzYFwibj5WK
dHM7ZTq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NCcG1CdOYY+ZXVOcsjl73UYvtJrO0Rl/NpYERkZ5d/tzw4jZ6FCXgggA
/Zxcjk6Y1ZvIm8Mt8wLRFH9Nww+FVsCtaCXJLP8DlJLASMD9rl5QS9Ku3u7ZNrr5
HWXPHXITX660jglyshch6CWeiUATqjIAzkEQom/kEnOrvJAtkypRJ59vYQOedZ1s
FVELMXg2UCkD/FwojfnVtjzYaTCeGwFQeqzHmM241iuOmBYPeyTY5veF49aBJA1g
EJOQTvBR8Q==
=Yhur
-----END PGP PUBLIC KEY BLOCK-----
+ apt-key add -
OK
+ sh -c mkdir -p /etc/apt/sources.list.d
+ dpkg --print-architecture
+ sh -c echo deb \[arch=amd64\] https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Hit http://ppa.launchpad.net trusty InRelease
Ign http://sg.archive.ubuntu.com trusty InRelease
Hit http://security.ubuntu.com trusty-security InRelease
Hit https://download.docker.com trusty InRelease
Hit https://apt.dockerproject.org ubuntu-trusty InRelease
Hit https://download.docker.com trusty/stable amd64 Packages
Hit https://apt.dockerproject.org ubuntu-trusty/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-updates InRelease
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:1 https://apt.dockerproject.org ubuntu-trusty/main Translation-en_SG
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://sg.archive.ubuntu.com trusty-backports InRelease
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://sg.archive.ubuntu.com trusty Release.gpg
Ign https://apt.dockerproject.org ubuntu-trusty/main Translation-en_SG
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign https://apt.dockerproject.org ubuntu-trusty/main Translation-en
Get:2 https://download.docker.com trusty/stable Translation-en_SG
Hit http://sg.archive.ubuntu.com trusty-updates/main Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://sg.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://sg.archive.ubuntu.com trusty-updates/universe Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://sg.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://sg.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://sg.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://sg.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/main Sources
Hit http://sg.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://sg.archive.ubuntu.com trusty-backports/universe Sources
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://sg.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Ign https://download.docker.com trusty/stable Translation-en_SG
Hit http://sg.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/restricted i386 Packages
Ign https://download.docker.com trusty/stable Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://sg.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://sg.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://sg.archive.ubuntu.com trusty Release
Hit http://sg.archive.ubuntu.com trusty/main Sources
Hit http://sg.archive.ubuntu.com trusty/restricted Sources
Hit http://sg.archive.ubuntu.com trusty/universe Sources
Hit http://sg.archive.ubuntu.com trusty/multiverse Sources
Hit http://sg.archive.ubuntu.com trusty/main amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://sg.archive.ubuntu.com trusty/main i386 Packages
Hit http://sg.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://sg.archive.ubuntu.com trusty/universe i386 Packages
Hit http://sg.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://sg.archive.ubuntu.com trusty/main Translation-en
Hit http://sg.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://sg.archive.ubuntu.com trusty/restricted Translation-en
Hit http://sg.archive.ubuntu.com trusty/universe Translation-en
Ign http://sg.archive.ubuntu.com trusty/main Translation-en_SG
Ign http://sg.archive.ubuntu.com trusty/multiverse Translation-en_SG
Ign http://sg.archive.ubuntu.com trusty/restricted Translation-en_SG
Ign http://sg.archive.ubuntu.com trusty/universe Translation-en_SG
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
docker-engine
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/17.9 MB of archives.
After this operation, 84.5 MB of additional disk space will be used.
Selecting previously unselected package docker-engine.
(Reading database ... 272189 files and directories currently installed.)
Preparing to unpack .../docker-engine_17.04.0~ce-0~ubuntu-trusty_amd64.deb ...
Unpacking docker-engine (17.04.0~ce-0~ubuntu-trusty) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up docker-engine (17.04.0~ce-0~ubuntu-trusty) ...
docker start/running, process 5249
+ sh -c docker version
Client:
Version: 17.04.0-ce
API version: 1.28
Go version: go1.7.5
Git commit: 4845c56
Built: Mon Apr 3 18:01:08 2017
OS/Arch: linux/amd64
Server:
Version: 17.04.0-ce
API version: 1.28 (minimum version 1.12)
Go version: go1.7.5
Git commit: 4845c56
Built: Mon Apr 3 18:01:08 2017
OS/Arch: linux/amd64
Experimental: false
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.
user@servername:~$ sudo usermod -aG docker $(whoami)
user@servername:~$ su - $USER
Password:
user@servername:~$ docker run -it ubuntu bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
d54efb8db41d: Pull complete
f8b845f45a87: Pull complete
e8db7bf7c39f: Pull complete
9654c40e9079: Pull complete
6d9ef359eaaa: Pull complete
Digest: sha256:dd7808d8792c9841d0b460122f1acf0a2dd1f56404f8d1e56298048885e45535
Status: Downloaded newer image for ubuntu:latest
root@1078e24fdf88:/# apt-get update
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main Sources [1103 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [5179 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [302 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3202 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [185 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [649 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.2 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [572 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-security/main Sources [80.9 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-security/restricted Sources [2779 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-security/universe Sources [30.0 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [303 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.8 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [132 kB]
Fetched 25.0 MB in 7s (3570 kB/s)
Reading package lists... Done
root@1078e24fdf88:/# apt-get install -y debconf-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
debconf-utils
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 57.5 kB of archives.
After this operation, 108 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 debconf-utils all 1.5.58ubuntu1 [57.5 kB]
Fetched 57.5 kB in 0s (75.2 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package debconf-utils.
(Reading database ... 7256 files and directories currently installed.)
Preparing to unpack .../debconf-utils_1.5.58ubuntu1_all.deb ...
Unpacking debconf-utils (1.5.58ubuntu1) ...
Setting up debconf-utils (1.5.58ubuntu1) ...
root@1078e24fdf88:/# echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
root@1078e24fdf88:/# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
root@1078e24fdf88:/# apt-get -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
init init-system-helpers libapparmor1 libc-bin libc6 locales makedev multiarch-support
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 6535 kB of archives.
After this operation, 29.7 kB disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 init-system-helpers all 1.29ubuntu4 [32.3 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 init amd64 1.29ubuntu4 [4624 B]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6 amd64 2.23-0ubuntu7 [2590 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 locales all 2.23-0ubuntu7 [3222 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-bin amd64 2.23-0ubuntu7 [622 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor1 amd64 2.10.95-0ubuntu2.6 [31.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 multiarch-support amd64 2.23-0ubuntu7 [6826 B]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 makedev all 2.3.1-93ubuntu2~ubuntu16.04.1 [24.4 kB]
Fetched 6535 kB in 2s (2793 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../init-system-helpers_1.29ubuntu4_all.deb ...
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu3) ...
Setting up init-system-helpers (1.29ubuntu4) ...
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../init_1.29ubuntu4_amd64.deb ...
Unpacking init (1.29ubuntu4) over (1.29ubuntu3) ...
Setting up init (1.29ubuntu4) ...
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../libc6_2.23-0ubuntu7_amd64.deb ...
Unpacking libc6:amd64 (2.23-0ubuntu7) over (2.23-0ubuntu5) ...
Setting up libc6:amd64 (2.23-0ubuntu7) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../locales_2.23-0ubuntu7_all.deb ...
Unpacking locales (2.23-0ubuntu7) over (2.23-0ubuntu5) ...
Preparing to unpack .../libc-bin_2.23-0ubuntu7_amd64.deb ...
Unpacking libc-bin (2.23-0ubuntu7) over (2.23-0ubuntu5) ...
Setting up libc-bin (2.23-0ubuntu7) ...
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../libapparmor1_2.10.95-0ubuntu2.6_amd64.deb ...
Unpacking libapparmor1:amd64 (2.10.95-0ubuntu2.6) over (2.10.95-0ubuntu2.5) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libapparmor1:amd64 (2.10.95-0ubuntu2.6) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../multiarch-support_2.23-0ubuntu7_amd64.deb ...
Unpacking multiarch-support (2.23-0ubuntu7) over (2.23-0ubuntu5) ...
Setting up multiarch-support (2.23-0ubuntu7) ...
(Reading database ... 7289 files and directories currently installed.)
Preparing to unpack .../makedev_2.3.1-93ubuntu2~ubuntu16.04.1_all.deb ...
Unpacking makedev (2.3.1-93ubuntu2~ubuntu16.04.1) over (2.3.1-93ubuntu1) ...
Setting up locales (2.23-0ubuntu7) ...
Generating locales (this might take a while)...
Generation complete.
Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ...
mv: cannot move 'console-' to 'console': Device or resource busy
makedev console c 5 1 root tty 0600: failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment