<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A No Nonsense Blog &#187; apt-cacher</title>
	<atom:link href="http://blog.sandeep.co.in/tag/apt-cacher/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sandeep.co.in</link>
	<description>Actually Its full of Nonsense</description>
	<lastBuildDate>Sat, 14 Jan 2012 22:46:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.sandeep.co.in' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>A No Nonsense Blog &#187; apt-cacher</title>
		<link>http://blog.sandeep.co.in</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.sandeep.co.in/osd.xml" title="A No Nonsense Blog" />
	<atom:link rel='hub' href='http://blog.sandeep.co.in/?pushpress=hub'/>
		<item>
		<title>Update/Upgrade multiple Ubuntu PCs with Apt-Cacher</title>
		<link>http://blog.sandeep.co.in/2008/10/30/updateupgrade-multiple-ubuntu-pcs-with-apt-cacher/</link>
		<comments>http://blog.sandeep.co.in/2008/10/30/updateupgrade-multiple-ubuntu-pcs-with-apt-cacher/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 08:09:33 +0000</pubDate>
		<dc:creator>d1g1t</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Advanced Packaging Tool]]></category>
		<category><![CDATA[apt-cacher]]></category>
		<category><![CDATA[BitTorrent]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[Intrepid Ibex]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Personal computer]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 8.04]]></category>
		<category><![CDATA[ubuntu 8.10]]></category>
		<category><![CDATA[Update Manager]]></category>

		<guid isPermaLink="false">http://sandeep.co.in/?p=477</guid>
		<description><![CDATA[So, Ubuntu 8.10 Intrepid Ibex releases today. As thousands try to upgrade/download ubuntu, the servers will be slower than usual. Heres one way to upgrade multiple PC to Intrepid Ibex. This also works for the daily updates. How the works is that One PC updates directly from ubuntu mirrors while the other PCs update from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=477&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, Ubuntu 8.10 Intrepid Ibex releases today. As thousands try to upgrade/download ubuntu, the servers will be slower than usual. Heres one way to upgrade multiple PC to Intrepid Ibex. This also works for the daily updates. How the works is that One PC updates directly from ubuntu mirrors while the other PCs update from the first PC, saving bandwidth. (If packages installed on the PCs differ, they&#8217;ll be downloaded from the mirror that the server uses)</p>
<p>I&#8217;ll be referring to the main PC that updates from official mirrors as _server_ and the other PCs as _client_. Lets start.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; _Server_ Config &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Open a terminal on the _server_ and type</p>
<blockquote><p>sudo apt-get install apt-cacher apache2</p></blockquote>
<p>(yep, you&#8217;ll need a <a class="zem_slink" title="Web server" rel="wikipedia" href="http://en.wikipedia.org/wiki/Web_server">webserver</a>)</p>
<p>once thats done, open <strong>/etc/apt-cacher/apt-cacher.conf</strong> in a text editor and modify to your needs.<br />
The default port is 3142. The only thing I modified was <strong>path_map</strong> which lets you use aliases for repository hostnames</p>
<p>My path_map looks something like this.</p>
<blockquote><p>path_map = ubuntu archive.ubuntu.com/ubuntu ; partner archive.canonical.com/ubuntu ; ubuntu-security security.ubuntu.com/ubuntu ; lp-compiz ppa.launchpad.net/compiz/ubuntu ; google dl.google.com/linux/deb ; ubuntutweak ppa.launchpad.net/tualatrix/ubuntu</p></blockquote>
<p>you can use full hostnames instead of aliases, but I prefer this.</p>
<p>Now you need to edit <strong>/etc/default/apt-cacher</strong> and set <strong>AUTOSTART</strong> to 1.</p>
<p>Now restart apt-cacher</p>
<blockquote><p>sudo /etc/init.d/apt-cacher restart</p></blockquote>
<p>Now update the repositories and upgrade your packages</p>
<blockquote><p>sudo apt-get update<br />
sudo apt-get upgrade</p></blockquote>
<p>If you&#8217;re upgrading to Intrepid Ibex from <a class="zem_slink" title="Ubuntu" rel="homepage" href="http://www.ubuntu.com/">Hardy Heron</a>, Please Check <a href="http://www.ubuntu.com/getubuntu/upgrading" target="_blank">http://www.ubuntu.com/getubuntu/upgrading</a></p>
<p>After the entire upgrade completes, run this command in terminal to import existing cached archives.</p>
<blockquote><p>sudo /usr/share/apt-cacher/apt-cacher-import.pl /var/cache/apt/archives</p></blockquote>
<p>If it throws up an error, try</p>
<blockquote><p>sudo /usr/share/apt-cacher/apt-cacher-import.pl -s /var/cache/apt/archives</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; _Client_ Config &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
First Check if the Apt-cacher server is running by opening<br />
<strong>http://repository-server:3142/report</strong> in your browser (&#8216;repository-server&#8217; here is the IP or <a class="zem_slink" title="Hostname" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hostname">hostname</a> of the _server_ machine)</p>
<p>Then on the _client_ machines, open <strong>/etc/apt/sources.list</strong></p>
<blockquote><p>sudo gedit /etc/apt/sources.list</p></blockquote>
<p>And change the mirror to your local server&#8217;s IP/hostname<br />
for example:<br />
(If you used path_map)</p>
<blockquote><p>deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted</p></blockquote>
<p>changes to</p>
<blockquote><p>deb http://repository-server:3142/apt-cacher/ubuntu intrepid main restricted</p></blockquote>
<p>Note: replace &#8216;repository-server&#8217; with your _server_&#8217;s IP or hostname (in my case 192.168.0.3)</p>
<p>Otherwise (If you didn&#8217;t use path_map) change it to:</p>
<blockquote><p>deb http://apt-cacher-server/apt-cacher/archive.ubuntu.com/ubuntu/ intrepid main restricted</p></blockquote>
<p>Do this for all lines in sources.list that you want to update via the apt-cache server.</p>
<p>now you can use apt-get just like before.<br />
to upgrade to Intrepid Ibex from Hardy Heron, Check <a href="http://www.ubuntu.com/getubuntu/upgrading" target="_blank">http://www.ubuntu.com/getubuntu/upgrading</a></p>
<p>and click on upgrade to ubuntu 8.10</p>
<p>Reference links (might help you with troubleshooting)<br />
<a href="http://www.debuntu.org/how-to-set-up-a-repository-cache-with-apt-cacher" target="_blank"> http://www.debuntu.org/how-to-set-up-a-repository-cache-with-apt-cacher</a><br />
<a href="https://help.ubuntu.com/community/Apt-Cacher-Server" target="_blank">https://help.ubuntu.com/community/Apt-Cacher-Server</a></p>
<p>You can also upgrade using apt-p2p &#8211; Learn more on <a href="http://torrentfreak.com/use-bittorrent-to-upgrade-to-ubuntu-intrepid-ibex-081029/" target="_blank">torrentfreak</a></p>
<p>And I also suggest you use bittorrent for downloading the Cd and DVD ISOs so that there is lesser stress on the mirrors. If you have to use the http/ftp mirrors, try using a local mirror or one close to your country.</p>
<p><a href="http://www.ubuntu.com/getubuntu/downloadmirrors#bt" target="_blank">Get the Torrents here</a></p>
<p><a href="http://sandeep.co.in/2008/09/29/changes-in-intrepid-ibex-ubuntu-810/" target="_blank">See Whats New in Intrepid Ibex</a></p>
<div class="zemanta-pixie" style="margin-top:10px;height:15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/10f5e9b8-07a6-4735-bc54-070a08c10900/"><img class="zemanta-pixie-img" style="border:medium none;float:right;" src="http://img.zemanta.com/reblog_e.png?x-id=10f5e9b8-07a6-4735-bc54-070a08c10900" alt="Reblog this post [with Zemanta]" /></a></div>
<br /> Tagged: Advanced Packaging Tool, apt-cacher, BitTorrent, hardy heron, Intrepid Ibex, Linux, Operating system, Personal computer, ubuntu, ubuntu 8.04, ubuntu 8.10, Update Manager <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sandeepdotcodotin.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sandeepdotcodotin.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sandeepdotcodotin.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sandeepdotcodotin.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sandeepdotcodotin.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sandeepdotcodotin.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sandeepdotcodotin.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sandeepdotcodotin.wordpress.com/477/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=477&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sandeep.co.in/2008/10/30/updateupgrade-multiple-ubuntu-pcs-with-apt-cacher/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a3c966a28c6647b518bac954473cb4f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">d1g1t</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/reblog_e.png?x-id=10f5e9b8-07a6-4735-bc54-070a08c10900" medium="image">
			<media:title type="html">Reblog this post [with Zemanta]</media:title>
		</media:content>
	</item>
	</channel>
</rss>
