<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>upgrade &amp;mdash; alan</title>
    <link>https://www.franzoni.eu/alan/tag:upgrade</link>
    <description>Alan&#39;s musings</description>
    <language>en</language>
    <pubDate>Tue, 17 Nov 2026 00:52:51 +0000</pubDate>
    <item>
      <title>Ubuntu: faster release upgrade</title>
      <link>https://www.franzoni.eu/alan/ubuntu-faster-release-upgrade</link>
      <description>&lt;![CDATA[It might be high time to update to the latest Ubuntu 14.04.&#xA;&#xA;I think that the upgrade process that is provided by Canonical is slightly underoptimal: if you&#39;re using a&#xA;local mirror which can provide a very fast download of all packages, they&#39;ll usually be disabled during the upgrade process, and an official mirror (possibile one very far away) will be employed.&#xA;&#xA;This can lead to a very slow and painful upgrade process.&#xA;&#xA;The solution is easy.&#xA;&#xA;The following instructions regard moving from 12.04 (precise) to 14.04 (trusty)&#xA;&#xA;Switch your sources&#xA;&#xA;Assuming that your official ubuntu sources are configured from /etc/apt/sources.list just do something like:&#xA;&#xA;sudo sed -i.old -e &#39;s/precise/trusty/g&#39; /etc/apt/sources.list&#xA;&#xA;I&#39;m not considering other sources in /etc/apt/sources.list.d, since they&#39;ll be disabled whatsoever; but if you happen&#xA;to have ubuntu sources there as well, you should repeat the SEDding process for each file.&#xA;&#xA;Update your index&#xA;&#xA;sudo apt-get update&#xA;&#xA;Download updated packages without installing&#xA;&#xA;sudo apt-get dist-upgrade --download-only&#xA;&#xA;Revert to old sources&#xA;&#xA;sudo mv -f /etc/apt/sources.list.old /etc/apt/sources.list&#xA;&#xA;Update index again&#xA;&#xA;sudo apt-get update&#xA;&#xA;Rejoice!&#xA;&#xA;Now you can just follow the upgrade instructions and&#xA;almost nothing will be downloaded during the upgrade, because everything is already on your hard drive.&#xA;&#xA;#MostlyUnixish #ubuntu #linux #upgrade&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>It might be high time to update to the latest <a href="https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes" rel="nofollow">Ubuntu 14.04</a>.</p>

<p>I think that the upgrade process that is provided by Canonical is slightly underoptimal: if you&#39;re using a
local mirror which can provide a very fast download of all packages, they&#39;ll usually be disabled during the upgrade process, and an official mirror (possibile one very far away) will be employed.</p>

<p>This can lead to a very slow and painful upgrade process.</p>

<p>The solution is easy.</p>

<p>The following instructions regard moving from 12.04 (precise) to 14.04 (trusty)</p>

<h2 id="switch-your-sources">Switch your sources</h2>

<p>Assuming that your official ubuntu sources are configured from <code>/etc/apt/sources.list</code> just do something like:</p>

<pre><code>sudo sed -i.old -e &#39;s/precise/trusty/g&#39; /etc/apt/sources.list
</code></pre>

<p>I&#39;m not considering other sources in <code>/etc/apt/sources.list.d</code>, since they&#39;ll be disabled whatsoever; but if you happen
to have ubuntu sources there as well, you should repeat the SEDding process for each file.</p>

<h2 id="update-your-index">Update your index</h2>

<pre><code>sudo apt-get update
</code></pre>

<h2 id="download-updated-packages-without-installing">Download updated packages without installing</h2>

<pre><code>sudo apt-get dist-upgrade --download-only
</code></pre>

<h2 id="revert-to-old-sources">Revert to old sources</h2>

<pre><code>sudo mv -f /etc/apt/sources.list.old /etc/apt/sources.list
</code></pre>

<h2 id="update-index-again">Update index again</h2>

<pre><code>sudo apt-get update
</code></pre>

<h2 id="rejoice">Rejoice!</h2>

<p>Now you can just follow the <a href="https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes#Upgrading_from_Ubuntu_12.04_LTS_or_Ubuntu_13.10" rel="nofollow">upgrade instructions</a> and
almost nothing will be downloaded during the upgrade, because everything is already on your hard drive.</p>

<p><a href="/alan/tag:MostlyUnixish" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MostlyUnixish</span></a> <a href="/alan/tag:ubuntu" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">ubuntu</span></a> <a href="/alan/tag:linux" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">linux</span></a> <a href="/alan/tag:upgrade" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">upgrade</span></a></p>
]]></content:encoded>
      <guid>https://www.franzoni.eu/alan/ubuntu-faster-release-upgrade</guid>
      <pubDate>Thu, 25 Sep 2014 21:04:00 +0000</pubDate>
    </item>
  </channel>
</rss>