<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>apt on Launchpad Blog</title>
    <link>https://blog.launchpad.net/tags/apt/</link>
    <description>News and updates from the Launchpad team</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 18 Feb 2011 04:55:19 +0000</lastBuildDate>
    <atom:link href="https://blog.launchpad.net/feed/tags/apt/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>&#34;Failed to fetch&#34; errors for PPAs ...</title>
      <link>https://blog.launchpad.net/ppa/failed-to-fetch-errors-for-ppas/</link>
      <pubDate>Fri, 18 Feb 2011 04:55:19 +0000</pubDate>
      <dc:creator>Martin Pool</dc:creator>
      <guid isPermaLink="false">https://blog.launchpad.net/?p=1972</guid>
      <description>&lt;p&gt;You may start getting &amp;ldquo;Failed to fetch&amp;rdquo; error messages when updating your software sources (e.g. through &amp;ldquo;&lt;code&gt;apt-get update&lt;/code&gt;&amp;rdquo; or &amp;ldquo;&lt;em&gt;Reload package information&lt;/em&gt;&amp;rdquo; in Synaptic), which may be due to a bug we&amp;rsquo;ve just cleaned up in Launchpad&amp;rsquo;s PPAs.&lt;/p&gt;
&lt;p&gt;The error looks like this:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;  W: Failed to fetch http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/dists/maverick/Release
  Unable to find expected entry  restricted/binary-i386/Packages in Meta-index file (malformed Release file?)

  E: Some index files failed to download, they have been ignored, or old ones used instead.
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;fixing-the-cause-of-the-error&#34;&gt;Fixing the cause of the error&lt;/h3&gt;
&lt;p&gt;Here&amp;rsquo;s how to fix it. In your terminal, type:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; sudo gedit /etc/apt/sources.list
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In the editor, look for PPA sources — these are URLs that feature the &lt;tt&gt;ppa.launchpad.net&lt;/tt&gt; domain.  In this example, someone has set up the &lt;tt&gt;~ubuntu-x-swat/x-updates&lt;/tt&gt; PPA incorrectly:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu maverick main
 deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu maverick restricted
 deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu maverick universe
 deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu maverick multiverse
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;All of these refer to different components within the same PPA. PPAs only have the first component, so you should delete lines for PPAs that don&amp;rsquo;t end in &amp;ldquo;main&amp;rdquo;. Watch out for lines that wrap, as with the &amp;ldquo;restricted&amp;rdquo;, &amp;ldquo;universe&amp;rdquo; and &amp;ldquo;multiverse&amp;rdquo; examples above.&lt;/p&gt;
&lt;p&gt;You may also need to check source lists under the &lt;tt&gt;/etc/apt/sources.list.d&lt;/tt&gt; directory.&lt;/p&gt;
&lt;p&gt;Note: you should leave your standard Ubuntu sources, and any non-PPA sources, just as they are.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re not sure how to do this, pop into &lt;tt&gt;#launchpad&lt;/tt&gt; on &lt;a href=&#34;https://help.ubuntu.com/community/InternetRelayChat&#34;&gt;freenode&lt;/a&gt; and one of the Launchpad community will help.&lt;/p&gt;
&lt;h3 id=&#34;why-this-has-happened&#34;&gt;Why this has happened&lt;/h3&gt;
&lt;p&gt;The Debian-style archives used by Ubuntu are often divided into different components. With Ubuntu, you&amp;rsquo;ve probably heard of at least &amp;ldquo;main&amp;rdquo; and &amp;ldquo;universe&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;PPAs don&amp;rsquo;t use these components. However, a bug in Launchpad meant that, until December, PPAs were published with a number of different components.  All of these components were empty and there was no way to publish anything to them.&lt;/p&gt;
&lt;p&gt;Today, we started to remove these empty components from PPAs. The only impact we anticipate is that anyone whose sources.list referenced these components in a PPA will now see an error when performing an &lt;tt&gt;apt-get update&lt;/tt&gt; or similar.&lt;/p&gt;
&lt;p&gt;No packages are being deleted and anyone with a correctly defined sources.list will be able to carry on just as before.&lt;/p&gt;
&lt;p&gt;(&lt;a href=&#34;https://lists.launchpad.net/launchpad-users/msg06219.html&#34;&gt;Originally from Julian&lt;/a&gt;.)&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
