<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>deb &amp;mdash; alan</title>
    <link>https://www.franzoni.eu/alan/tag:deb</link>
    <description>Alan&#39;s musings</description>
    <language>en</language>
    <pubDate>Tue, 17 Nov 2026 00:48:43 +0000</pubDate>
    <item>
      <title>apt-get update: fixing &#39;package index files are corrupted&#39;</title>
      <link>https://www.franzoni.eu/alan/apt-get-update-fixing-package-index-files-are-corrupted</link>
      <description>&lt;![CDATA[Sometimes when performing your daily apt-get update, you&#39;ll experience messages like&#xA;&#xA;blockquote&#xA;E: The package lists or status file could not be parsed or opened.&#xA;/blockquote&#xA;&#xA;or&#xA;&#xA;blockquote&#xA;The package index files are corrupted&#xA;/blockquote&#xA;&#xA;Such messages usually don&#39;t go away for quite a long time, and may prevent legitimate updates from installing.&#xA;&#xA;This usually happens even more frequently if using a proxy to access apt archives.&#xA;&#xA;While I don&#39;t know what&#39;s the root problem, I&#39;ve got a quick workaround that seems to fix the immediate error:&#xA;&#xA;pre&#xA;sudo -s -H bash -c &#39;apt-get clean &amp;&amp; rm -f /var/lib/apt/lists/ ; rm -f /var/lib/apt/lists/partial/ &amp;&amp; apt-get clean &amp;&amp; apt-get update&#39;&#xA;/pre&#xA;&#xA;#MostlyUnixish #linux #ubuntu #debian #deb #apt&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Sometimes when performing your daily <code>apt-get update</code>, you&#39;ll experience messages like</p>

<blockquote>E: The package lists or status file could not be parsed or opened.
</blockquote>

<p>or</p>

<blockquote>The package index files are corrupted
</blockquote>

<p>Such messages usually don&#39;t go away for quite a long time, and may prevent legitimate updates from installing.</p>

<p>This usually happens even more frequently if using a proxy to access apt archives.</p>

<p>While I don&#39;t know what&#39;s the root problem, I&#39;ve got a quick workaround that seems to fix the immediate error:</p>

<pre>
sudo -s -H bash -c &#39;apt-get clean &amp;&amp; rm -f /var/lib/apt/lists/* ; rm -f /var/lib/apt/lists/partial/* &amp;&amp; apt-get clean &amp;&amp; apt-get update&#39;
</pre>

<p><a href="/alan/tag:MostlyUnixish" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MostlyUnixish</span></a> <a href="/alan/tag:linux" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">linux</span></a> <a href="/alan/tag:ubuntu" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">ubuntu</span></a> <a href="/alan/tag:debian" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">debian</span></a> <a href="/alan/tag:deb" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">deb</span></a> <a href="/alan/tag:apt" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">apt</span></a></p>
]]></content:encoded>
      <guid>https://www.franzoni.eu/alan/apt-get-update-fixing-package-index-files-are-corrupted</guid>
      <pubDate>Wed, 06 Mar 2013 21:45:00 +0000</pubDate>
    </item>
  </channel>
</rss>