Updating Windows Subsystem for Linux

If you set up the Windows Subsystem for Linux on Windows 10, you may find that when you subsequently select Bash on Ubuntu on Windows to obtain a Bash shell prompt, that you see a message indicating that packages need to be updated. E.g.:

106 packages can be updated.
71 updates are security updates.
root@ANAHEIM:~#

You can get the updates with apt-get update.

Udemy Generic Category (English)120x600
root@ANAHEIM:~# apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://archive.ubuntu.com trusty-backports InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty Release
Get:3 http://security.ubuntu.com trusty-security/main amd64 Packages [704 kB]
Get:4 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1,050 kB]
Get:5 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.1 kB]
Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [201 kB]
Get:7 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.2 kB]
Get:8 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [439 kB]
Get:9 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,803 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Get:10 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.6 kB]
Get:11 http://archive.ubuntu.com trusty-updates/main Translation-en [518 kB]
Get:12 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7,616 B]
Get:13 http://archive.ubuntu.com trusty-updates/restricted Translation-en [4,024 B]
Get:14 http://archive.ubuntu.com trusty-updates/universe Translation-en [237 kB]
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 3,343 kB in 12s (276 kB/s)
Reading package lists... Done
root@ANAHEIM:~#

You can then install the updates with apt-get upgrade. You may need to respond to a "Do you want to continue?" prompt. If there are a lot of updated packages to install, be prepared to wait awhile for the upgrade process to complete.

root@ANAHEIM:~# apt-get upgrade
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:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  apparmor apport bash bind9-host ca-certificates cloud-init curl dbus
  dnsutils eject initramfs-tools initramfs-tools-bin iproute2 isc-dhcp-client
  isc-dhcp-common klibc-utils krb5-locales landscape-client landscape-common
  libapparmor-perl libapparmor1 libasn1-8-heimdal libbind9-90 libc-bin libc6
  libcurl3 libcurl3-gnutls libdb5.3 libdbus-1-3 libdns100 libdrm2
  libevent-2.0-5 libexpat1 libffi6 libfreetype6 libgc1c2 libgcrypt11
  libgnutls-openssl27 libgnutls26 libgssapi-krb5-2 libgssapi3-heimdal
  libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
  libhx509-5-heimdal libicu52 libidn11 libisc95 libisccc90 libisccfg90
  libk5crypto3 libklibc libkrb5-26-heimdal libkrb5-3 libkrb5support0
  libldap-2.4-2 liblwres90 libpam-systemd libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib libpython3.4-minimal libpython3.4-stdlib
  libroken18-heimdal librtmp0 libssl1.0.0 libsystemd-daemon0 libsystemd-login0
  libtasn1-6 libudev1 libwind0-heimdal libxml2 login logrotate lshw makedev
  multiarch-support ntpdate openssl overlayroot passwd perl perl-base
  perl-modules pollinate python2.7 python2.7-minimal python3-apport
  python3-problem-report python3-software-properties python3-update-manager
  python3.4 python3.4-minimal resolvconf rsync rsyslog
  software-properties-common sudo systemd-services tcpdump tzdata udev
  unattended-upgrades update-manager-core update-notifier-common w3m wget
107 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 44.2 MB of archives.
After this operation, 493 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main bash amd64 4.3-7ubuntu1.7 [575 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main login amd64 1:4.1.5.1-1ubuntu9.5 [302 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main perl amd64 5.18.2-2ubuntu1.3 [2,656 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main perl-base amd64 5.18.2-2ubuntu1.3 [1,149 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main perl-modules all 5.18.2-2ubuntu1.3 [2,699 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc-bin amd64 2.19-0ubuntu6.14 [1,166 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc6 amd64 2.19-0ubuntu6.14 [4,753 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libdb5.3 amd64 5.3.28-3ubuntu3.1 [646 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libexpat1 amd64 2.1.0-4ubuntu1.4 [70.9 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libffi6 amd64 3.1~rc1+r3.0.13-12ubuntu0.2 [17.9 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgcrypt11 amd64 1.5.3-2ubuntu4.5 [238 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libtasn1-6 amd64 3.4-3ubuntu0.5 [43.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgnutls-openssl27 amd64 2.12.23-12ubuntu2.8 [18.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgnutls26 amd64 2.12.23-12ubuntu2.8 [395 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3.4 amd64 3.4.3-1ubuntu1~14.04.6 [178 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3.4-minimal amd64 3.4.3-1ubuntu1~14.04.6 [1,224 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpython3.4-stdlib amd64 3.4.3-1ubuntu1~14.04.6 [1,987 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libssl1.0.0 amd64 1.0.1f-1ubuntu2.23 [830 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpython3.4-minimal amd64 3.4.3-1ubuntu1~14.04.6 [460 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ntpdate amd64 1:4.2.6.p5+dfsg-3ubuntu2.14.04.12 [57.6 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ trusty-updates/main resolvconf all 1.69ubuntu1.3 [55.3 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libdbus-1-3 amd64 1.6.18-0ubuntu4.5 [132 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libdrm2 amd64 2.4.67-1ubuntu0.14.04.2 [27.2 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ trusty-updates/main udev amd64 204-5ubuntu20.25 [736 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libudev1 amd64 204-5ubuntu20.25 [34.6 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libroken18-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [39.9 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasn1-8-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [160 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libk5crypto3 amd64 1.12+dfsg-2ubuntu5.3 [79.6 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgssapi-krb5-2 amd64 1.12+dfsg-2ubuntu5.3 [114 kB]
Get:30 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libkrb5-3 amd64 1.12+dfsg-2ubuntu5.3 [262 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libkrb5support0 amd64 1.12+dfsg-2ubuntu5.3 [30.7 kB]
Get:32 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libidn11 amd64 1.28-1ubuntu2.2 [94.6 kB]
Get:33 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libhcrypto4-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [84.1 kB]
Get:34 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libheimbase1-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [29.0 kB]
Get:35 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libwind0-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [47.9 kB]
Get:36 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libhx509-5-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [104 kB]
Get:37 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libkrb5-26-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [196 kB]
Get:38 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libheimntlm0-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [15.2 kB]
Get:39 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgssapi3-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.2 [89.7 kB]
Get:40 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libldap-2.4-2 amd64 2.4.31-1+nmu2ubuntu8.4 [153 kB]
Get:41 http://archive.ubuntu.com/ubuntu/ trusty-updates/main librtmp0 amd64 2.4+20121230.gitdf6c518-1ubuntu0.1 [50.4 kB]
Get:42 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libcurl3-gnutls amd64 7.35.0-1ubuntu2.13 [166 kB]
<text snipped>
Setting up landscape-client (14.12-0ubuntu6.14.04.1) ...
Installing new version of config file /etc/init.d/landscape-client ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
runlevel:/var/run/utmp: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
Setting up pollinate (4.25-0ubuntu1~14.04.1) ...
Setting up unattended-upgrades (0.82.1ubuntu2.5) ...
Installing new version of config file /etc/apt/apt.conf.d/50unattended-upgrades ...
Setting up python3-software-properties (0.92.37.8) ...
Setting up software-properties-common (0.92.37.8) ...
Setting up w3m (0.5.3-15ubuntu0.1) ...
Setting up cloud-init (0.7.5-0ubuntu1.22) ...
Leaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'
Setting up overlayroot (0.25ubuntu1.14.04.2) ...
Setting up perl-modules (5.18.2-2ubuntu1.3) ...
Setting up perl (5.18.2-2ubuntu1.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
Processing triggers for initramfs-tools (0.103ubuntu4.10) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ca-certificates (20170717~14.04.1) ...
Updating certificates in /etc/ssl/certs... 17 added, 42 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
root@ANAHEIM:~#

You should periodically run the commands to ensure the system has the latest security updates and bug fixes.

You can see the current version of the Linux kernel with uname -a .

root@ANAHEIM:~# uname -a
Linux ANAHEIM 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
root@ANAHEIM:~#