{"id":575,"date":"2009-11-10T22:30:30","date_gmt":"2009-11-10T14:30:30","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=575"},"modified":"2009-11-10T22:30:30","modified_gmt":"2009-11-10T14:30:30","slug":"ubuntu-update-problem-failed-to-fetch-the-http-server-sent-an-invalid-reply-header","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2009\/11\/10\/ubuntu-update-problem-failed-to-fetch-the-http-server-sent-an-invalid-reply-header\/","title":{"rendered":"Ubuntu update problem: Failed to fetch &#8230; The HTTP server sent an invalid reply header"},"content":{"rendered":"<div id=\"attachment_576\" style=\"width: 210px\" class=\"wp-caption alignright\"><a href=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/11\/ubuntuupdateproblem.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-576\" class=\"size-full wp-image-576\" title=\"Ubuntu update problem\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/11\/ubuntuupdateproblem.png\" alt=\"Ubuntu update problem - The HTTP server sent an invalid reply header\" width=\"200\" \/><\/a><p id=\"caption-attachment-576\" class=\"wp-caption-text\">Ubuntu update problem - The HTTP server sent an invalid reply header<\/p><\/div>\n<p>So you&#8217;re happily upgrading from Jaunty Jackalope to Karmic Kipper and there&#8217;s a network problem. A brief, normally completely recoverable network hiccup. Update-manager complains that it was interrupted, and quits. Thinking nothing of it, you start it again, and nothing works! The error messages are warnings like &#8220;W:Failed to fetch&#8230;&#8221; a few times, and then a last &#8220;E:Some index files failed to download&#8230;&#8221;.<\/p>\n<p>I got confused by the files all having names like &#8220;Translation-en_GB.bz2&#8221;. I think this could problem could possibly be caused by having a transparent proxy cache between my PCs and the network. I&#8217;m wondering if there&#8217;s some issue with 404s \/ 304s being received by apt, or whatever it is that&#8217;s actually doing the HTTP work.<\/p>\n<p>What fixed this problem for me was changing my repository in Synaptic to a different one, reloading the package lists, then changing back again to the original repository and reloading the package lists again. I don&#8217;t want to change repository because my Ubuntu PCs are all behind a proxy cache, which makes updates very much faster! I imagine the problem can be caused by any network problem &#8211; I had two today, one courtesy of my ISP, one courtesy of failing ethernet ports on an old router.<\/p>\n<p>I couldn&#8217;t find anything with searching online that directly addressed this problem, though I found a few pages where people said they had the same problem. I hope you find this page quicker than I found the solution!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you&#8217;re happily upgrading from Jaunty Jackalope to Karmic Kipper and there&#8217;s a network problem. A brief, normally completely recoverable network hiccup. Update-manager complains that it was interrupted, and quits. Thinking nothing of it, you start it again, and nothing works! The error messages are warnings like &#8220;W:Failed to fetch&#8230;&#8221; a few times, and then [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,20,50,3],"tags":[107,109,41,34,9,18,43],"class_list":["post-575","post","type-post","status-publish","format-standard","hentry","category-broken","category-fixed","category-foss","category-software","tag-broken","tag-fixed","tag-http","tag-network","tag-open-source","tag-server","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=575"}],"version-history":[{"count":5,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/575\/revisions"}],"predecessor-version":[{"id":581,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/575\/revisions\/581"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}