<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Xenial on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/xenial/</link>
    <description>Recent content in Xenial on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 30 Jan 2018 10:32:51 +0000</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/xenial/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Update Windows Subsystem for Linux</title>
      <link>https://janikvonrotz.ch/2018/01/30/update-windows-subsystem-for-linux/</link>
      <pubDate>Tue, 30 Jan 2018 10:32:51 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2018/01/30/update-windows-subsystem-for-linux/</guid>
      <description>&lt;p&gt;Today I learned that certain Ubuntu package versions are bound to the release version of Ubuntu. For example the only available version of the password store tool &lt;em&gt;pass&lt;/em&gt; for Ubuntu LTS 14.04 (trusty) is &lt;em&gt;&lt;a href=&#34;https://packages.ubuntu.com/trusty/admin/pass&#34;&gt;1.4.2-3&lt;/a&gt;&lt;/em&gt;. If you need a newer version you have to update Ubuntu first. Usually this no big deal, however, if you work with Windows Subsystem for Linux (WSL) it is a big deal. The WSL release is bound to the Windows version. In result to update a package you have to update your Windows first.&lt;/p&gt;&#xA;&lt;h2 id=&#34;common-solution&#34;&gt;Common Solution&lt;/h2&gt;&#xA;&lt;p&gt;In case your Windows version is newer than your WSL version uninstall WSL.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;lxrun /uninstall /full&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;And reinstall WSL.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;lxrun /install&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once finished you can check the version with &lt;code&gt;lsb_release -a&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ugly-hack&#34;&gt;Ugly Hack&lt;/h2&gt;&#xA;&lt;p&gt;If you work in corporate environment you might not be able to get the latest Windows release. In this case you have to update Ubuntu itself which is not supported by Microsoft.&lt;/p&gt;&#xA;&lt;p&gt;First we have to prevent certain packages from being updated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo -S apt-mark hold procps strace sudo&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;These commands have been modified especially for WSL.&lt;/p&gt;&#xA;&lt;p&gt;Next run the release upgrade command.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If the update successfully finished you should be on the latest release.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
