<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Martin &#187; update</title>
	<atom:link href="http://martin.ind-web.com/tag/update/feed/" rel="self" type="application/rss+xml" />
	<link>http://martin.ind-web.com</link>
	<description>Just another IND-Web.com weblog</description>
	<lastBuildDate>Fri, 04 Jun 2010 14:26:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Apt-cacher proxy, Translation index files and apt-get update errors</title>
		<link>http://martin.ind-web.com/2009/08/04/apt-cacher-proxy-translation-index-files-and-apt-get-update-errors/</link>
		<comments>http://martin.ind-web.com/2009/08/04/apt-cacher-proxy-translation-index-files-and-apt-get-update-errors/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 06:01:22 +0000</pubDate>
		<dc:creator>Martin Guppy</dc:creator>
				<category><![CDATA[System Admin]]></category>
		<category><![CDATA[apt-cacher]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://martin.ind-web.com/?p=25</guid>
		<description><![CDATA[After setting up apt-cacher on our home server and setting all our other computers to use it as a proxy caching service, we found that apt-get update and Update Manager always fails while fetching Translations. Get:5 http://au.archive.ubuntu.com intrepid/main Translation-en_AU [2734B] Ign http://mirror.files.bigpond.com intrepid/restricted Translation-en_AU Err http://mirror.files.bigpond.com intrepid/universe Translation-en_AU Error reading from server - read (104 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartin.ind-web.com%2F2009%2F08%2F04%2Fapt-cacher-proxy-translation-index-files-and-apt-get-update-errors%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartin.ind-web.com%2F2009%2F08%2F04%2Fapt-cacher-proxy-translation-index-files-and-apt-get-update-errors%2F&amp;source=deadpan110&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>After <a title="HOWTO: Share updates across multiple machines" href="http://ubuntuforums.org/showthread.php?t=564301">setting up apt-cacher</a> on our home server and setting all our other computers to use it as a proxy caching service, we found that <code>apt-get update</code> and Update Manager always fails while fetching Translations.</p>
<pre>Get:5 http://au.archive.ubuntu.com intrepid/main Translation-en_AU [2734B]
Ign http://mirror.files.bigpond.com intrepid/restricted Translation-en_AU
Err http://mirror.files.bigpond.com intrepid/universe Translation-en_AU
  Error reading from server - read (104 Connection reset by peer)</pre>
<p>According to the <a title="Bug#517761: apt-cacher: Translation-en_US.bz2 fails when LANG on client not equal to LANG on server" href="http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg625887.html">debian-bugs-dist, Bug#517761</a>:</p>
<blockquote><p>apt-cacher: Translation-en_US.bz2 fails when LANG on client not equal to LANG on server</p></blockquote>
<p>To avoid this problem, you can run <code>apt-get update</code> and pass the <code>LANG</code> variable to it:</p>
<pre>sudo LANG=C apt-get update</pre>
<p>As a single apt-cacher service can handle requests for multiple apt based distros, it seems odd that it will not cross the <code>LANG</code> barrier and so I had a go at seeing what could be done to stop apt updates from failing.</p>
<p>Not wanting to try and configure every computer to avoid this error, I decided to look on the server for the apt-cacher config file and the very last section looked interesting.</p>
<p><code>/etc/apt-cacher/apt-cacher.conf</code></p>
<pre>
# Permitted Index files - this is the perl regular expression which matches all
# index-type files (files that are uniquely identified by their full path and
# need to be checked for freshness).
#The default is:
#index_files_regexp = (?:Index|Packages\.gz|Packages\.bz2|Release|Release\.gpg|Sources\.gz|Sources\.bz2|Contents-.+\.gz|pkglist.*\.bz2|release|release\..*|srclist.*\.bz2|Translation-.+\.bz2)$
</pre>
<p>By un-commenting and editing the last line, we can tell apt-cacher that Translation index files are not permitted:</p>
<pre>
index_files_regexp = (?:Index|Packages\.gz|Packages\.bz2|Release|Release\.gpg|Sources\.gz|Sources\.bz2|Contents-.+\.gz|pkglist.*\.bz2|release|release\..*|srclist.*\.bz2)$
</pre>
<p>I am unsure of the implications that may arise by not permitting apt-cacher Translation index files, but so far <code>apt-get update</code> and update manager are no longer complaining.</p>
]]></content:encoded>
			<wfw:commentRss>http://martin.ind-web.com/2009/08/04/apt-cacher-proxy-translation-index-files-and-apt-get-update-errors/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
