Mark's Blog on Digital Media, Software Development and IT things - Sharing is Caring

Ubuntu is an operating system (OS) which is freely available and used extensively for servers hosting professional and hobby websites. Like all operating systems there are regular updates to make sure any bugs are fixed and that the security of the server is maintained. Here I explain how to make sure your server is up-to-date. The following is all command line based. It assumes you're running a server and not a desktop GUI system.

Step 1. Log into your server

Open putty on a Windows machine or Terminal on a Mac (or your favorite SSH terminal).

ssh <username>@<myserverdomainname>
# Note the above is just an example. Replace <username> with your username and <myserverdomainname> with
# the domain name or IP address of your server.
# You will then be prompted for your password. Enter it.

Once you have logged in you will see some information:

Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-21-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sat May 13 18:51:10 BST 2017

  System load:  0.22               Processes:           178
  Usage of /:   10.0% of 24.48GB   Users logged in:     0
  Memory usage: 38%                IP address for eth0: xxx.xxx.xxx.xxx
  Swap usage:   4%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

102 packages can be updated.
62 updates are security updates.

You have mail.
Last login: Tue Feb 28 16:21:37 2017 from xxx.xxx.xxx.xxx

Note the two lines in bold above. They show that there are 102 packages, of which 62 need updating. This box definitely should be updated!

Step 2. Prepare the Ubuntu server for update

Ubuntu uses a program called apt-get to manage all of it's packages. This is similar to "yum" on Centos/Redhat and rpm (redhat package manager) etc. But on Ubuntu we use apt-get.

To prepare your server we first need to "update" the list of packages...

sudo apt-get update

The above command will update the list of packages available in the repositories. You must always run this first.

sudo apt-get -s upgrade > willchange.txt

The above line will simulate an upgrade save in the file called "willchange.txt" a list of all the changes that are likely to happen.

This is a very useful step...

Step 3. Review the changes that will happen with apt-get upgrade

Having created the willchange.txt file we can check that nothing important is going to change. For example if we are running a website which uses Apache 2 and MySQL then we can easily check to see if they are likely to be upgraded:

grep "mysql" willchange.txt

The line above will look through the willchange.txt file and list out any references to "mysql", the database service. Running the above line gives the following:

  liblwres141 libmysqlclient20 libpam-systemd libpci3 librtmp1 libsystemd0
  multiarch-support mysql-client-5.7 mysql-client-core-5.7 mysql-common
  mysql-server mysql-server-5.7 mysql-server-core-5.7 nano ntp ntpdate
  php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-mcrypt php7.0-mysql
Inst mysql-client-core-5.7 [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst mysql-common [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst mysql-client-5.7 [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf mysql-common (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst mysql-server-5.7 [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64]) []
Inst mysql-server-core-5.7 [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst php7.0-mysql [7.0.15-0ubuntu0.16.04.2] (7.0.15-0ubuntu0.16.04.4 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64]) []
Inst libmysqlclient20 [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst mysql-server [5.7.17-0ubuntu0.16.04.1] (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf mysql-client-core-5.7 (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf mysql-client-5.7 (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf mysql-server-core-5.7 (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf mysql-server-5.7 (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf php7.0-mysql (7.0.15-0ubuntu0.16.04.4 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf libmysqlclient20 (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf mysql-server (5.7.18-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])

Woa! So there are going to be some changes to MySQL with this upgrade. But looking into the list above I see there's nothing to worry about. Of course for you you'll have to research the changes or talk to your IT support if you are unsure.

Here's a few more examples:

grep "apache2" willchange.txt # Changes to the apache web server

grep "php" willchange.txt # Changes to the PHP programming language

grep "security" willchange.txt | wc -l # Give the numebr of references to "security"

Step 4. Upgrade the packages

OK so having reviewed things, we're ready to upgrade the packages

nohup sudo apt-get -y upgrade &

tail -f nohup.out

 The nohup command means that if you loose your connection to the server then the process will continue. This means that the output from the process will be sent to a file called nohup.out rather than stdout. So to follow progress you need to issue the tail -f nohup.out command. The -y flag means automatically answer "Yes" to any prompts. The & at the end of the command means "run in the background, which is why we can then type "tail -f nohup.out". It could take quite a few minutes for this process to finish. Not you hit CTRL+c to exit following the nohup.out
Below you can see a "typical" output from the above process which will be in nohup.out.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  m4 sendmail-base sendmail-cf sensible-mda
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic vim vim-common vim-runtime vim-tiny
The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils apparmor apt apt-transport-https apt-utils bind9-host distro-info-data dnsutils dpkg eject grub-common init init-system-helpers landscape-common libapache2-mod-php7.0 libapparmor-perl
  libapparmor1 libapt-inst2.0 libapt-pkg5.0 libbind9-140 libc-bin libc6 libc6-i386 libdns-export162 libdns162 libdpkg-perl libevent-2.0-5 libevent-core-2.0-5 libfreetype6 libgc1c2 libicu55 libisc-export160 libisc160 libisccc140
  libisccfg140 liblwres141 libmysqlclient20 libpam-systemd libpci3 librtmp1 libsystemd0 libudev1 libxml2 libxslt1.1 locales login logrotate makedev multiarch-support mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
  mysql-server-5.7 mysql-server-core-5.7 nano ntp ntpdate openssh-client openssh-server openssh-sftp-server passwd pciutils php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache
  php7.0-readline php7.0-xml python3-software-properties python3-update-manager resolvconf software-properties-common systemd systemd-sysv tcpdump udev unattended-upgrades update-manager-core update-notifier-common w3m wget zlib1g
90 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 62.2 MB of archives.
After this operation, 398 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.2 [2,085 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 init-system-helpers all 1.29ubuntu4 [32.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 init amd64 1.29ubuntu4 [4,624 B]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 login amd64 1:4.2-3.1ubuntu5.2 [305 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-i386 amd64 2.23-0ubuntu7 [2,337 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6 amd64 2.23-0ubuntu7 [2,590 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 locales all 2.23-0ubuntu7 [3,222 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-bin amd64 2.23-0ubuntu7 [622 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 zlib1g amd64 1:1.2.8.dfsg-2ubuntu4.1 [51.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-pkg5.0 amd64 1.2.20 [707 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.20 [55.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt amd64 1.2.20 [1,042 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.20 [196 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 systemd-sysv amd64 229-4ubuntu17 [12.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpam-systemd amd64 229-4ubuntu17 [115 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libsystemd0 amd64 229-4ubuntu17 [205 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 systemd amd64 229-4ubuntu17 [3,623 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 udev amd64 229-4ubuntu17 [992 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libudev1 amd64 229-4ubuntu17 [55.3 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor1 amd64 2.10.95-0ubuntu2.6 [31.7 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libicu55 amd64 55.1-7ubuntu0.2 [7,659 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxml2 amd64 2.9.3+dfsg1-1ubuntu0.2 [697 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.2 [86.7 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-bin amd64 2.4.18-2ubuntu3.2 [926 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.2 [81.7 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.2 [162 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-perl amd64 2.10.95-0ubuntu2.6 [31.4 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apparmor amd64 2.10.95-0ubuntu2.6 [450 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-client-core-5.7 amd64 5.7.18-0ubuntu0.16.04.1 [6,340 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-common all 5.7.18-0ubuntu0.16.04.1 [15.9 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-client-5.7 amd64 5.7.18-0ubuntu0.16.04.1 [1,725 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-server-5.7 amd64 5.7.18-0ubuntu0.16.04.1 [2,554 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-server-core-5.7 amd64 5.7.18-0ubuntu0.16.04.1 [7,566 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 passwd amd64 1:4.2-3.1ubuntu5.2 [780 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libevent-core-2.0-5 amd64 2.0.21-stable-2ubuntu0.16.04.1 [70.6 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ntp amd64 1:4.2.8p4+dfsg-3ubuntu5.4 [519 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ntpdate amd64 1:4.2.8p4+dfsg-3ubuntu5.4 [49.6 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-manager-core all 1:16.04.6 [5,332 B]
Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-update-manager all 1:16.04.6 [31.7 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-notifier-common all 3.168.4 [165 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 multiarch-support amd64 2.23-0ubuntu7 [6,826 B]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 makedev all 2.3.1-93ubuntu2~ubuntu16.04.1 [24.4 kB]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info-data all 0.28ubuntu0.3 [4,048 B]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 eject amd64 2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1 [23.0 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [153 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [666 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 logrotate amd64 3.8.7-2ubuntu2.16.04.1 [37.8 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 resolvconf all 1.78ubuntu4 [51.1 kB]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.20 [26.1 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bind9-host amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [38.3 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dnsutils amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [88.7 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [215 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [879 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccc140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [16.3 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccfg140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [40.5 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblwres141 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [33.7 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libbind9-140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.6 [23.6 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 pciutils amd64 1:3.3.1-1.1ubuntu1.1 [234 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpci3 amd64 1:3.3.1-1.1ubuntu1.1 [24.5 kB]
Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d-1ubuntu0.1 [54.4 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 nano amd64 2.5.3-2ubuntu2 [191 kB]
Get:62 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-sftp-server amd64 1:7.2p2-4ubuntu2.2 [38.7 kB]
Get:63 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-server amd64 1:7.2p2-4ubuntu2.2 [338 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.2 [587 kB]
Get:65 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tcpdump amd64 4.9.0-1ubuntu1~ubuntu16.04.1 [382 kB]
Get:66 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.2 [298 kB]
Get:67 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfreetype6 amd64 2.6.1-0.1ubuntu2.3 [316 kB]
Get:68 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-common amd64 2.02~beta2-36ubuntu3.9 [1,706 kB]
Get:69 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 landscape-common amd64 16.03-0ubuntu2.16.04.1 [154 kB]
Get:70 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-mysql amd64 7.0.15-0ubuntu0.16.04.4 [123 kB]
Get:71 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxslt1.1 amd64 1.1.28-2.1ubuntu0.1 [145 kB]
Get:72 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-xml amd64 7.0.15-0ubuntu0.16.04.4 [113 kB]
Get:73 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-json amd64 7.0.15-0ubuntu0.16.04.4 [16.9 kB]
Get:74 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-opcache amd64 7.0.15-0ubuntu0.16.04.4 [76.5 kB]
Get:75 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 php7.0-fpm amd64 7.0.15-0ubuntu0.16.04.4 [1,290 kB]
Get:76 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 php7.0-mcrypt amd64 7.0.15-0ubuntu0.16.04.4 [14.4 kB]
Get:77 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0 all 7.0.15-0ubuntu0.16.04.4 [1,284 B]
Get:78 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-readline amd64 7.0.15-0ubuntu0.16.04.4 [12.8 kB]
Get:79 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-cli amd64 7.0.15-0ubuntu0.16.04.4 [1,284 kB]
Get:80 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapache2-mod-php7.0 amd64 7.0.15-0ubuntu0.16.04.4 [1,227 kB]
Get:81 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-common amd64 7.0.15-0ubuntu0.16.04.4 [836 kB]
Get:82 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.2 [195 kB]
Get:83 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libevent-2.0-5 amd64 2.0.21-stable-2ubuntu0.16.04.1 [114 kB]
Get:84 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgc1c2 amd64 1:7.4.2-7.3ubuntu0.1 [82.1 kB]
Get:85 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmysqlclient20 amd64 5.7.18-0ubuntu0.16.04.1 [811 kB]
Get:86 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-server all 5.7.18-0ubuntu0.16.04.1 [10.8 kB]
Get:87 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.6 [9,432 B]
Get:88 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.6 [20.1 kB]
Get:89 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 unattended-upgrades all 0.90ubuntu0.5 [32.7 kB]
Get:90 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 w3m amd64 0.5.3-26ubuntu0.1 [911 kB]
Fetched 62.2 MB in 1s (37.4 MB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../dpkg_1.18.4ubuntu1.2_amd64.deb ...
Unpacking dpkg (1.18.4ubuntu1.2) over (1.18.4ubuntu1.1) ...
Setting up dpkg (1.18.4ubuntu1.2) ...
Processing triggers for man-db (2.7.5-1) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../init-system-helpers_1.29ubuntu4_all.deb ...
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up init-system-helpers (1.29ubuntu4) ...
(Reading database ... 68357 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 ... 68357 files and directories currently installed.)
Preparing to unpack .../login_1%3a4.2-3.1ubuntu5.2_amd64.deb ...
Unpacking login (1:4.2-3.1ubuntu5.2) over (1:4.2-3.1ubuntu5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up login (1:4.2-3.1ubuntu5.2) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.23-0ubuntu7_amd64.deb ...
Unpacking libc6-i386 (2.23-0ubuntu7) over (2.23-0ubuntu5) ...
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 ... 68357 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) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libc-bin (2.23-0ubuntu7) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../zlib1g_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.8.dfsg-2ubuntu4.1) over (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up zlib1g:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.2.20_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.2.20) over (1.2.19) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libapt-pkg5.0:amd64 (1.2.20) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.2.20_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.2.20) over (1.2.19) ...
Preparing to unpack .../archives/apt_1.2.20_amd64.deb ...
Unpacking apt (1.2.20) over (1.2.19) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up apt (1.2.20) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.2.20_amd64.deb ...
Unpacking apt-utils (1.2.20) over (1.2.19) ...
Preparing to unpack .../systemd-sysv_229-4ubuntu17_amd64.deb ...
Unpacking systemd-sysv (229-4ubuntu17) over (229-4ubuntu16) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-sysv (229-4ubuntu17) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_229-4ubuntu17_amd64.deb ...
Unpacking libpam-systemd:amd64 (229-4ubuntu17) over (229-4ubuntu16) ...
Preparing to unpack .../libsystemd0_229-4ubuntu17_amd64.deb ...
Unpacking libsystemd0:amd64 (229-4ubuntu17) over (229-4ubuntu16) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libsystemd0:amd64 (229-4ubuntu17) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../systemd_229-4ubuntu17_amd64.deb ...
Unpacking systemd (229-4ubuntu17) over (229-4ubuntu16) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd (229-4ubuntu17) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
(Reading database ... 68357 files and directories currently installed.)
Preparing to unpack .../udev_229-4ubuntu17_amd64.deb ...
Unpacking udev (229-4ubuntu17) over (229-4ubuntu16) ...
Preparing to unpack .../libudev1_229-4ubuntu17_amd64.deb ...
Unpacking libudev1:amd64 (229-4ubuntu17) over (229-4ubuntu16) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libudev1:amd64 (229-4ubuntu17) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
(Reading database ... 68357 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 ... 68357 files and directories currently installed.)
Preparing to unpack .../libicu55_55.1-7ubuntu0.2_amd64.deb ...
Unpacking libicu55:amd64 (55.1-7ubuntu0.2) over (55.1-7) ...
Preparing to unpack .../libxml2_2.9.3+dfsg1-1ubuntu0.2_amd64.deb ...
Unpacking libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.2) over (2.9.3+dfsg1-1ubuntu0.1) ...
Preparing to unpack .../apache2_2.4.18-2ubuntu3.2_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.2) over (2.4.18-2ubuntu3.1) ...
Preparing to unpack .../apache2-bin_2.4.18-2ubuntu3.2_amd64.deb ...
Unpacking apache2-bin (2.4.18-2ubuntu3.2) over (2.4.18-2ubuntu3.1) ...
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.2_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.2) over (2.4.18-2ubuntu3.1) ...
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.2_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.2) over (2.4.18-2ubuntu3.1) ...
Preparing to unpack .../libapparmor-perl_2.10.95-0ubuntu2.6_amd64.deb ...
Unpacking libapparmor-perl (2.10.95-0ubuntu2.6) over (2.10.95-0ubuntu2.5) ...
Preparing to unpack .../apparmor_2.10.95-0ubuntu2.6_amd64.deb ...
Unpacking apparmor (2.10.95-0ubuntu2.6) over (2.10.95-0ubuntu2.5) ...
Preparing to unpack .../mysql-client-core-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Preparing to unpack .../mysql-common_5.7.18-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-common (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Preparing to unpack .../mysql-client-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache'
Rules updated for profile 'Apache Secure'
Rules updated for profile 'OpenSSH'
Skipped reloading firewall
Setting up mysql-common (5.7.18-0ubuntu0.16.04.1) ...
(Reading database ... 68359 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Preparing to unpack .../mysql-server-core-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Preparing to unpack .../passwd_1%3a4.2-3.1ubuntu5.2_amd64.deb ...
Unpacking passwd (1:4.2-3.1ubuntu5.2) over (1:4.2-3.1ubuntu5) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up passwd (1:4.2-3.1ubuntu5.2) ...
(Reading database ... 68358 files and directories currently installed.)
Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ...
Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) over (2.0.21-stable-2) ...
Preparing to unpack .../ntp_1%3a4.2.8p4+dfsg-3ubuntu5.4_amd64.deb ...
Unpacking ntp (1:4.2.8p4+dfsg-3ubuntu5.4) over (1:4.2.8p4+dfsg-3ubuntu5.3) ...
Preparing to unpack .../ntpdate_1%3a4.2.8p4+dfsg-3ubuntu5.4_amd64.deb ...
Unpacking ntpdate (1:4.2.8p4+dfsg-3ubuntu5.4) over (1:4.2.8p4+dfsg-3ubuntu5.3) ...
Preparing to unpack .../update-manager-core_1%3a16.04.6_all.deb ...
Unpacking update-manager-core (1:16.04.6) over (1:16.04.5) ...
Preparing to unpack .../python3-update-manager_1%3a16.04.6_all.deb ...
Unpacking python3-update-manager (1:16.04.6) over (1:16.04.5) ...
Preparing to unpack .../update-notifier-common_3.168.4_all.deb ...
Unpacking update-notifier-common (3.168.4) over (3.168.3) ...
Preparing to unpack .../multiarch-support_2.23-0ubuntu7_amd64.deb ...
Unpacking multiarch-support (2.23-0ubuntu7) over (2.23-0ubuntu5) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up multiarch-support (2.23-0ubuntu7) ...
(Reading database ... 68358 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) ...
Preparing to unpack .../distro-info-data_0.28ubuntu0.3_all.deb ...
Unpacking distro-info-data (0.28ubuntu0.3) over (0.28ubuntu0.2) ...
Preparing to unpack .../eject_2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1_amd64.deb ...
Unpacking eject (2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1) over (2.1.5+deb1+cvs20081104-13.1) ...
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../logrotate_3.8.7-2ubuntu2.16.04.1_amd64.deb ...
Unpacking logrotate (3.8.7-2ubuntu2.16.04.1) over (3.8.7-2ubuntu2) ...
Preparing to unpack .../resolvconf_1.78ubuntu4_all.deb ...
Unpacking resolvconf (1.78ubuntu4) over (1.78ubuntu2) ...
Preparing to unpack .../apt-transport-https_1.2.20_amd64.deb ...
Unpacking apt-transport-https (1.2.20) over (1.2.19) ...
Preparing to unpack .../bind9-host_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../dnsutils_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../libisc160_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../libisccc140_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../libisccfg140_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../liblwres141_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../libbind9-140_1%3a9.10.3.dfsg.P4-8ubuntu1.6_amd64.deb ...
Unpacking libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) over (1:9.10.3.dfsg.P4-8ubuntu1.4) ...
Preparing to unpack .../pciutils_1%3a3.3.1-1.1ubuntu1.1_amd64.deb ...
Unpacking pciutils (1:3.3.1-1.1ubuntu1.1) over (1:3.3.1-1.1ubuntu1) ...
Preparing to unpack .../libpci3_1%3a3.3.1-1.1ubuntu1.1_amd64.deb ...
Unpacking libpci3:amd64 (1:3.3.1-1.1ubuntu1.1) over (1:3.3.1-1.1ubuntu1) ...
Preparing to unpack .../librtmp1_2.4+20151223.gitfa8646d-1ubuntu0.1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) over (2.4+20151223.gitfa8646d-1build1) ...
Preparing to unpack .../nano_2.5.3-2ubuntu2_amd64.deb ...
Unpacking nano (2.5.3-2ubuntu2) over (2.5.3-2ubuntu1) ...
Preparing to unpack .../openssh-sftp-server_1%3a7.2p2-4ubuntu2.2_amd64.deb ...
Unpacking openssh-sftp-server (1:7.2p2-4ubuntu2.2) over (1:7.2p2-4ubuntu2.1) ...
Preparing to unpack .../openssh-server_1%3a7.2p2-4ubuntu2.2_amd64.deb ...
Unpacking openssh-server (1:7.2p2-4ubuntu2.2) over (1:7.2p2-4ubuntu2.1) ...
Preparing to unpack .../openssh-client_1%3a7.2p2-4ubuntu2.2_amd64.deb ...
Unpacking openssh-client (1:7.2p2-4ubuntu2.2) over (1:7.2p2-4ubuntu2.1) ...
Preparing to unpack .../tcpdump_4.9.0-1ubuntu1~ubuntu16.04.1_amd64.deb ...
Unpacking tcpdump (4.9.0-1ubuntu1~ubuntu16.04.1) over (4.7.4-1ubuntu1) ...
Preparing to unpack .../wget_1.17.1-1ubuntu1.2_amd64.deb ...
Unpacking wget (1.17.1-1ubuntu1.2) over (1.17.1-1ubuntu1.1) ...
Preparing to unpack .../libfreetype6_2.6.1-0.1ubuntu2.3_amd64.deb ...
Unpacking libfreetype6:amd64 (2.6.1-0.1ubuntu2.3) over (2.6.1-0.1ubuntu2) ...
Preparing to unpack .../grub-common_2.02~beta2-36ubuntu3.9_amd64.deb ...
Unpacking grub-common (2.02~beta2-36ubuntu3.9) over (2.02~beta2-36ubuntu3.7) ...
Preparing to unpack .../landscape-common_16.03-0ubuntu2.16.04.1_amd64.deb ...
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-21-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

102 packages can be updated.
62 updates are security updates.

*** System restart required ***
Unpacking landscape-common (16.03-0ubuntu2.16.04.1) over (16.03-0ubuntu2) ...
Preparing to unpack .../php7.0-mysql_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-mysql (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../libxslt1.1_1.1.28-2.1ubuntu0.1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) over (1.1.28-2.1) ...
Preparing to unpack .../php7.0-xml_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-xml (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-json_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-json (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-opcache_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-opcache (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-fpm_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-fpm (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-mcrypt_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-mcrypt (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0_7.0.15-0ubuntu0.16.04.4_all.deb ...
Unpacking php7.0 (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-readline_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-readline (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-cli_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-cli (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../libapache2-mod-php7.0_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking libapache2-mod-php7.0 (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../php7.0-common_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-common (7.0.15-0ubuntu0.16.04.4) over (7.0.15-0ubuntu0.16.04.2) ...
Preparing to unpack .../libdpkg-perl_1.18.4ubuntu1.2_all.deb ...
Unpacking libdpkg-perl (1.18.4ubuntu1.2) over (1.18.4ubuntu1.1) ...
Preparing to unpack .../libevent-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ...
Unpacking libevent-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) over (2.0.21-stable-2) ...
Preparing to unpack .../libgc1c2_1%3a7.4.2-7.3ubuntu0.1_amd64.deb ...
Unpacking libgc1c2:amd64 (1:7.4.2-7.3ubuntu0.1) over (1:7.4.2-7.3) ...
Preparing to unpack .../libmysqlclient20_5.7.18-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Preparing to unpack .../mysql-server_5.7.18-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.18-0ubuntu0.16.04.1) over (5.7.17-0ubuntu0.16.04.1) ...
Preparing to unpack .../software-properties-common_0.96.20.6_all.deb ...
Unpacking software-properties-common (0.96.20.6) over (0.96.20.5) ...
Preparing to unpack .../python3-software-properties_0.96.20.6_all.deb ...
Unpacking python3-software-properties (0.96.20.6) over (0.96.20.5) ...
Preparing to unpack .../unattended-upgrades_0.90ubuntu0.5_all.deb ...
Unpacking unattended-upgrades (0.90ubuntu0.5) over (0.90ubuntu0.3) ...
Preparing to unpack .../w3m_0.5.3-26ubuntu0.1_amd64.deb ...
Unpacking w3m (0.5.3-26ubuntu0.1) over (0.5.3-26build1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache'
Rules updated for profile 'Apache Secure'
Rules updated for profile 'OpenSSH'
Skipped reloading firewall
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libc6-i386 (2.23-0ubuntu7) ...
Setting up locales (2.23-0ubuntu7) ...
Generating locales (this might take a while)...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
Setting up libapt-inst2.0:amd64 (1.2.20) ...
Setting up apt-utils (1.2.20) ...
Setting up libpam-systemd:amd64 (229-4ubuntu17) ...
Setting up udev (229-4ubuntu17) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Setting up libicu55:amd64 (55.1-7ubuntu0.2) ...
Setting up libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.2) ...
Setting up apache2-bin (2.4.18-2ubuntu3.2) ...
Setting up apache2-utils (2.4.18-2ubuntu3.2) ...
Setting up apache2-data (2.4.18-2ubuntu3.2) ...
Setting up apache2 (2.4.18-2ubuntu3.2) ...
Setting up libapparmor-perl (2.10.95-0ubuntu2.6) ...
Setting up apparmor (2.10.95-0ubuntu2.6) ...
Installing new version of config file /etc/init.d/apparmor ...
Installing new version of config file /etc/init/apparmor.conf ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up mysql-client-core-5.7 (5.7.18-0ubuntu0.16.04.1) ...
Setting up mysql-client-5.7 (5.7.18-0ubuntu0.16.04.1) ...
Setting up mysql-server-core-5.7 (5.7.18-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.18-0ubuntu0.16.04.1) ...
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.engine_cost                                  OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.gtid_executed                                OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.innodb_index_stats                           OK
mysql.innodb_table_stats                           OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.server_cost                                  OK
mysql.servers                                      OK
mysql.slave_master_info                            OK
mysql.slave_relay_log_info                         OK
mysql.slave_worker_info                            OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
The sys schema is already up to date (version 1.5.1).
Checking databases.
mydbname.smod_av_gallery                           OK
mydbname.smod_av_gallery_category                  OK
mydbname.smod_av_media                             OK
mydbname.smod_av_media_to_gallery                  OK
mydbname.smod_press_blog                           OK
mydbname.smod_press_category                       OK
mydbname.smod_press_image                          OK
mydbname.smod_press_post                           OK
mydbname.smod_press_post_to_category               OK
mydbname.smod_press_post_to_tag                    OK
mydbname.smod_press_setting                        OK
mydbname.smod_press_tag                            OK
mydbname.smod_secu_item                            OK
mydbname.smod_secu_user                            OK
mydbname.smod_secu_user_attrib                     OK
mydbname.smod_secu_user_role                       OK
mydbname.smod_secu_user_status                     OK
mydbname.smod_secu_user_to_user_role               OK
sys.sys_config                                     OK
Upgrade process completed successfully.
Checking if update is needed.
Setting up ntp (1:4.2.8p4+dfsg-3ubuntu5.4) ...
Installing new version of config file /etc/dhcp/dhclient-exit-hooks.d/ntp ...
Setting up ntpdate (1:4.2.8p4+dfsg-3ubuntu5.4) ...
Setting up python3-update-manager (1:16.04.6) ...
Setting up update-manager-core (1:16.04.6) ...
Setting up update-notifier-common (3.168.4) ...
Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ...
Setting up distro-info-data (0.28ubuntu0.3) ...
Setting up eject (2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1) ...
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up logrotate (3.8.7-2ubuntu2.16.04.1) ...
Setting up resolvconf (1.78ubuntu4) ...
Setting up apt-transport-https (1.2.20) ...
Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.6) ...
Setting up libpci3:amd64 (1:3.3.1-1.1ubuntu1.1) ...
Setting up pciutils (1:3.3.1-1.1ubuntu1.1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Setting up nano (2.5.3-2ubuntu2) ...
Setting up openssh-client (1:7.2p2-4ubuntu2.2) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu2.2) ...
Setting up openssh-server (1:7.2p2-4ubuntu2.2) ...
Setting up tcpdump (4.9.0-1ubuntu1~ubuntu16.04.1) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.tcpdump ...
Setting up wget (1.17.1-1ubuntu1.2) ...
Setting up libfreetype6:amd64 (2.6.1-0.1ubuntu2.3) ...
Setting up grub-common (2.02~beta2-36ubuntu3.9) ...
Installing new version of config file /etc/grub.d/10_linux ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up landscape-common (16.03-0ubuntu2.16.04.1) ...
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-21-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sat May 13 19:30:57 BST 2017

  System load:  1.87               Processes:           188
  Usage of /:   10.4% of 24.48GB   Users logged in:     1
  Memory usage: 43%                IP address for eth0: xxx.xxx.xxx.xxx
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

102 packages can be updated.
62 updates are security updates.

*** System restart required ***
Setting up php7.0-common (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-mysql (7.0.15-0ubuntu0.16.04.4) ...
Setting up libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Setting up php7.0-xml (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-json (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-opcache (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-readline (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-cli (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-fpm (7.0.15-0ubuntu0.16.04.4) ...
Setting up php7.0-mcrypt (7.0.15-0ubuntu0.16.04.4) ...
Setting up libapache2-mod-php7.0 (7.0.15-0ubuntu0.16.04.4) ...
apache2_invoke php7.0: already enabled
Setting up php7.0 (7.0.15-0ubuntu0.16.04.4) ...
Setting up libdpkg-perl (1.18.4ubuntu1.2) ...
Setting up libevent-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up libgc1c2:amd64 (1:7.4.2-7.3ubuntu0.1) ...
Setting up libmysqlclient20:amd64 (5.7.18-0ubuntu0.16.04.1) ...
Setting up mysql-server (5.7.18-0ubuntu0.16.04.1) ...
Setting up python3-software-properties (0.96.20.6) ...
Setting up software-properties-common (0.96.20.6) ...
Setting up unattended-upgrades (0.90ubuntu0.5) ...
Installing new version of config file /etc/init.d/unattended-upgrades ...
Synchronizing state of unattended-upgrades.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable unattended-upgrades
Setting up w3m (0.5.3-26ubuntu0.1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for resolvconf (1.78ubuntu4) ...
Processing triggers for php7.0-fpm (7.0.15-0ubuntu0.16.04.4) ...

*** System restart required ***

What does it mean if you see "*** System restart required ***"? Well it means you're going to need to restart your system. This means downtime. So you'll have to decide when's the best time to do this.

Step 5. How to restart your Ubuntu 16.04 server

OK so only if you have to (see above) then you'll need to restart the server.

# Option 1

sudo reboot

# Option 2

sudo shutdown -r now

As soon as you issue your choice of command above you will be logged off the server. So don't be shocked when you see a message like the following:

Connection to xxx.xxx.xxx.xxx closed by remote host.
Connection to xxx.xxx.xxx.xxx closed.

So how do you know when your server is back?

One of the things you can do is setup a ping to the server. It won't confirm that all the services are up but it will give you an idea that your server is "alive" again:

ping xxx.xxx.xxx.xxx
Request timeout for icmp_seq 51
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=1 ttl=51 time=25.119 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=2 ttl=51 time=22.942 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=3 ttl=51 time=26.398 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4 ttl=51 time=23.382 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=5 ttl=51 time=25.896 ms

The lines above that show a time=nn.nnn ms means that your computer has successfully "pinged" your server. Wheras the "Request timeout" message means it can't reach your server.

Step 6. Confirm your server is now up-to-date

When you next log back in to your server then you should see that the number of packages to upgrade is less.

Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-21-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sat May 13 19:50:49 BST 2017

  System load:  0.11               Processes:           169
  Usage of /:   10.2% of 24.48GB   Users logged in:     0
  Memory usage: 35%                IP address for eth0: xxx.xxx.xxx.xxx
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

12 packages can be updated.
8 updates are security updates.

You have mail.
Last login: Sat May 13 18:51:24 2017 from xxx.xxx.xxx.xxx

In the above example we've gone from 102 to 12 packages needing updating. Ideally we want 0 so we can run the process again. It's not unusual for this to happen. Not every package could be updated in the first round of updates due to dependencies.

How often should you update?

I would recommend doing it monthly. But it's your call as it's a "cost versus risk" decision. But hopefully the process above at least helps make the cost less.

Step 7. Tidy up!

sudo rm -f nohup.out willchange.txt

Add a comment | Posted by Mark Zaretti at 19:55


Click for More