<?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>Crossed Wires &#187; apt</title>
	<atom:link href="http://veejoe.net/blog/tag/apt/feed/" rel="self" type="application/rss+xml" />
	<link>http://veejoe.net/blog</link>
	<description>Vic's Blog</description>
	<lastBuildDate>Mon, 26 Jul 2010 22:19:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Trouble with apt-get and Squid</title>
		<link>http://veejoe.net/blog/2009/05/trouble-with-apt-get-and-squid/</link>
		<comments>http://veejoe.net/blog/2009/05/trouble-with-apt-get-and-squid/#comments</comments>
		<pubDate>Mon, 11 May 2009 04:36:44 +0000</pubDate>
		<dc:creator>Vic</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://veejoe.net/blog/?p=31</guid>
		<description><![CDATA[I recently started having trouble with APT transactions on my Kubuntu desktop. &#8220;apt-get update&#8221; would fail for some source entries with the error &#8220;The HTTP server sent an invalid reply header&#8221;. I thought it was something specific to (K)Ubuntu, but when I had the exact problem on my NSLU2 running Debian I figured the problem [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started having trouble with APT transactions on my Kubuntu desktop. &#8220;apt-get update&#8221; would fail for some source entries with the error &#8220;The HTTP server sent an invalid reply header&#8221;. I thought it was something specific to (K)Ubuntu, but when I had the exact problem on my NSLU2 running Debian I figured the problem must be elsewhere…</p>
<p>I&#8217;d recently updated the machine that provides the transparent web proxy function for the network; one of the updates took Squid up to version 3.0 (from 2.6). This was the first thing I was suspicious of.</p>
<p>There&#8217;s an option in Squid that controls how it handles an &#8220;If-Modified-Since&#8221; request from a client. The default is for Squid to respond based on the age of the item in the <em>cache</em>, not based on the real item on the source web page. The comments in the Squid config file indicate that some clients use an IMS when requesting a reload — looks like APT is one of those clients.</p>
<p>Setting this option to &#8220;on&#8221; (from the default of &#8220;off&#8221;) in <strong>squid.conf</strong> fixed the issue for me:</p>
<p><code>refresh_all_ims on</code></p>
]]></content:encoded>
			<wfw:commentRss>http://veejoe.net/blog/2009/05/trouble-with-apt-get-and-squid/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
