<?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>Jontas &#187; apt-get</title>
	<atom:link href="http://www.f15ijp.com/tag/apt-get/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>apt-get WARNING: The following packages cannot be authenticated!</title>
		<link>http://www.f15ijp.com/2010/06/08/apt-get-warning-the-following-packages-cannot-be-authenticated/</link>
		<comments>http://www.f15ijp.com/2010/06/08/apt-get-warning-the-following-packages-cannot-be-authenticated/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 07:12:49 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=500</guid>
		<description><![CDATA[apt-get is verifying the packages before installing them. If the keys are not up to date, then apt-get upgrade will issue a warning. WARNING: The following packages cannot be authenticated! ure uno-libs3 Install these packages without verification &#91;y/N&#93;? The way to solve this is rather simple, just run apt-get update and it should download the [...]]]></description>
			<content:encoded><![CDATA[<p>apt-get is verifying the packages before installing them.<br />
If the keys are not up to date, then apt-get upgrade will issue a warning.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">WARNING: The following packages cannot be authenticated<span style="color: #000000; font-weight: bold;">!</span>
  ure uno-libs3
Install these packages without verification <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>?</pre></div></div>

<p>The way to solve this is rather simple, just run apt-get update and it should download the keys automatically.</p>
<p>apt-key handles keys, using apt-key list will show you the keys that are on the computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/06/08/apt-get-warning-the-following-packages-cannot-be-authenticated/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Limit the download speed of apt-get</title>
		<link>http://www.f15ijp.com/2010/05/27/limit-the-download-speed-of-apt-get/</link>
		<comments>http://www.f15ijp.com/2010/05/27/limit-the-download-speed-of-apt-get/#comments</comments>
		<pubDate>Thu, 27 May 2010 07:25:53 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=476</guid>
		<description><![CDATA[Sometimes it is nice to limit the download speed of apt-get. The way I do this is to create a file &#8220;/etc/apt/apt.conf.d/76download&#8221; and enter the following to it Acquire&#123;Queue-mode &#34;access&#34;;http&#123;Dl-Limit &#34;50&#34;;&#125;;&#125;; This will limit apt-get to at most 50 kb/s for apt-get. Some other how to&#8217;s suggest the use of dl-limit but be adviced, dl-limit [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is nice to limit the download speed of apt-get.</p>
<p>The way I do this is to create a file &#8220;/etc/apt/apt.conf.d/76download&#8221; and enter the following to it</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Acquire<span style="color: #7a0874; font-weight: bold;">&#123;</span>Queue-mode <span style="color: #ff0000;">&quot;access&quot;</span>;http<span style="color: #7a0874; font-weight: bold;">&#123;</span>Dl-Limit <span style="color: #ff0000;">&quot;50&quot;</span>;<span style="color: #7a0874; font-weight: bold;">&#125;</span>;<span style="color: #7a0874; font-weight: bold;">&#125;</span>;</pre></div></div>

<p>This will limit apt-get to at most 50 kb/s for apt-get.<br />
Some other how to&#8217;s suggest the use of dl-limit but be adviced, dl-limit is per each connection apt-get does (normally it does 2 at a time); the one used above caps apt-get in total.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/05/27/limit-the-download-speed-of-apt-get/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apt-get update gives the error &#8220;E: Could not get lock /var/lib/apt/lists/lock &#8211; open (11: Resource temporarily unavailable)&#8221;</title>
		<link>http://www.f15ijp.com/2010/02/16/apt-get-update-gives-the-error-e-could-not-get-lock-varlibaptlistslock-open-11-resource-temporarily-unavailable/</link>
		<comments>http://www.f15ijp.com/2010/02/16/apt-get-update-gives-the-error-e-could-not-get-lock-varlibaptlistslock-open-11-resource-temporarily-unavailable/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 11:00:24 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=357</guid>
		<description><![CDATA[If running apt-get (or aptitude) and you get the following error: $ apt-get update E: Could not get lock /var/lib/apt/lists/lock - open &#40;11: Resource temporarily unavailable&#41; E: Unable to lock the list directory Then (most likely) explenation is that one of the sources have gotten a timeout and that a (cron) sheduled update task have [...]]]></description>
			<content:encoded><![CDATA[<p>If running apt-get (or aptitude) and you get the following error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
E: Could not get lock <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>lists<span style="color: #000000; font-weight: bold;">/</span>lock - open <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">11</span>: Resource temporarily unavailable<span style="color: #7a0874; font-weight: bold;">&#41;</span>
E: Unable to lock the list directory</pre></div></div>

<p>Then (most likely) explenation is that one of the sources have gotten a timeout and that a (cron) sheduled update task have gotten locked.<br />
A simple solution for this is to find the cron process is locked, and kill it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> apt
Warning: bad <span style="color: #c20cb9; font-weight: bold;">ps</span> syntax, perhaps a bogus <span style="color: #ff0000;">'-'</span>? See http:<span style="color: #000000; font-weight: bold;">//</span>procps.sf.net<span style="color: #000000; font-weight: bold;">/</span>faq.html
 <span style="color: #000000;">3737</span> ?        SN     <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.daily<span style="color: #000000; font-weight: bold;">/</span>apt
 <span style="color: #000000;">3833</span> ?        SN     <span style="color: #000000;">0</span>:00 <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #660033;">-qq</span> <span style="color: #660033;">-y</span> update <span style="color: #660033;">-o</span> APT::Update::Auth-Failure::=<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>apt-auth-failure.note <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>update-notifier<span style="color: #000000; font-weight: bold;">/</span>user.d<span style="color: #000000; font-weight: bold;">/</span>
 <span style="color: #000000;">3835</span> ?        SN     <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>methods<span style="color: #000000; font-weight: bold;">/</span>http
 <span style="color: #000000;">3838</span> ?        SN     <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>methods<span style="color: #000000; font-weight: bold;">/</span>http
 <span style="color: #000000;">3842</span> ?        SN     <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>methods<span style="color: #000000; font-weight: bold;">/</span>http
 <span style="color: #000000;">3869</span> ?        SN     <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>methods<span style="color: #000000; font-weight: bold;">/</span>http
 <span style="color: #000000;">4223</span> pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>    R+     <span style="color: #000000;">0</span>:00 <span style="color: #c20cb9; font-weight: bold;">grep</span> apt
$ <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #000000;">3833</span></pre></div></div>

<p>If this happens often, then perhaps you should try to debug the sources and remove (or exchange) the source that is causing the problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/16/apt-get-update-gives-the-error-e-could-not-get-lock-varlibaptlistslock-open-11-resource-temporarily-unavailable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>apt-get update The following packages have been kept back</title>
		<link>http://www.f15ijp.com/2010/02/09/apt-get-update-the-following-packages-have-been-kept-back/</link>
		<comments>http://www.f15ijp.com/2010/02/09/apt-get-update-the-following-packages-have-been-kept-back/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 11:00:12 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=320</guid>
		<description><![CDATA[apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: bind9-host dnsutils libbind9-50 libdns50 libisc50 libisccc50 libisccfg50 liblwres50 linux-generic linux-generic-pae linux-image-generic linux-image-generic-pae 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. The message has been kept back most often means that the [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
Reading package lists... Done
Building dependency <span style="color: #c20cb9; font-weight: bold;">tree</span>
Reading state information... Done
The following packages have been kept back:
  bind9-host dnsutils libbind9-<span style="color: #000000;">50</span> libdns50 libisc50 libisccc50 libisccfg50 liblwres50 linux-generic linux-generic-pae linux-image-generic
  linux-image-generic-pae
<span style="color: #000000;">0</span> upgraded, <span style="color: #000000;">0</span> newly installed, <span style="color: #000000;">0</span> to remove and <span style="color: #000000;">12</span> not upgraded.</pre></div></div>

<p>The message has been kept back most often means that the upgrade was kept back due to dependencies that are not met.</p>
<p>Some possible solutions</p>
<ul>
<li>A simple way is to invoke dselect to help out with the update. dselect performs the actions necessary to realize that state (for instance, the removal of old and the installation of new packages).

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> dselect-upgrade</pre></div></div>

</li>
<li>While apt-get and aptitude are basically the same, aptitude is sometimes better at handling dependencies than apt-get

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> upgrade</pre></div></div>

</li>
<li>Another solution is to install the package using apt-get install to install the upgraded package and let apt-get install the missing dependencies

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dnsutils</pre></div></div>

</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/09/apt-get-update-the-following-packages-have-been-kept-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Pine (or Pico) from source</title>
		<link>http://www.f15ijp.com/2007/04/16/installing-pine-or-pico-from-source/</link>
		<comments>http://www.f15ijp.com/2007/04/16/installing-pine-or-pico-from-source/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 21:18:00 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[pine]]></category>

		<guid isPermaLink="false">http://jontas.mine.nu/?p=5</guid>
		<description><![CDATA[Installing Pine on Debian might seem a bit tricky, but it isn&#8217;t as hard as it might look. Due to the licensing rules of Pine (and Pico) these are not included as deb packages in the mirrors. However the source of these two are. Step 1 is to ensure that you have a deb-src in [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Pine on Debian might seem a bit tricky, but it isn&#8217;t as hard as it might look.</p>
<p>Due to the licensing rules of Pine (and Pico) these are not included as deb packages in the mirrors.<br />
However the source of these two are.<br />
Step 1 is to ensure that you have a deb-src in /etc/apt/sources.list (for instance)<br />
deb-src http://http.us.debian.org/debian stable main contrib non-free<br />
deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free<br />
To make Debian install from sources:<br />
If you have never installed from source before we need to install a compiler and dpkg-dev<br />
$apt-get install dpkg-dev<br />
$ apt-get install gcc<br />
Done, now we can start compiling Pine<br />
A short note now: When building from source apt will download the source (and compile) to the directory where you start from. I think it is nice to make sure you are in a new directory that is clean from other files (and at a logical location if you intend to save the compiled package (like for instance /src/pine)<br />
$ apt-get -b build-dep pine</p>
<p>$<span><span style="font-family: Verdana,arial,sans-serif; font-size: x-small;">apt-get &#8211;only-source -b source pine</span></span><br />
(now it will download and compile Pine. Be patient.<br />
$ dpkg -i pine_4.64-3_i386.deb<br />
Another option is downloading a deb package directly from Washington University <a href="http://www.washington.edu/pine/getpine/linux.html">here</a></p>
<p>Any program in the Debian archive can be compiled from sources using the steps above, important to note is that in &#8220;apt-get -b build-dep&#8221; -b means build from source and build-dep that apt should download any libraries that is needed at the same time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2007/04/16/installing-pine-or-pico-from-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing config files when un-installing</title>
		<link>http://www.f15ijp.com/2007/04/16/removing-config-files-when-un-installing/</link>
		<comments>http://www.f15ijp.com/2007/04/16/removing-config-files-when-un-installing/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 21:10:32 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[apt-get]]></category>

		<guid isPermaLink="false">http://jontas.mine.nu/?p=4</guid>
		<description><![CDATA[If you want apt to remove the config files as well when you uninstall a program (or maybe as I have removed them manually and is unable to reinstall using apt-get install) $apt-get &#8211;purge remove pkg-name This is a command i had to learn the hard way as I (accidenly) removed the /etc/munin (a server [...]]]></description>
			<content:encoded><![CDATA[<p>If you want apt to remove the config files as well when you uninstall a program (or maybe as I  have removed them manually and is unable to reinstall using apt-get install)</p>
<p>$apt-get &#8211;purge remove pkg-name</p>
<p>This is a command i had to learn the hard way as I (accidenly) removed the /etc/munin (a server monitor tool) directory.  After I had done this I was unable to get apt-get install to make any new config files in the /etc/ directory. Turns out that removing without using &#8211;purge (normaly) leaves the old config files (if I wish to re install later I assume).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2007/04/16/removing-config-files-when-un-installing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apt-get update and key problems</title>
		<link>http://www.f15ijp.com/2007/04/16/apt-get-update-and-key-problems/</link>
		<comments>http://www.f15ijp.com/2007/04/16/apt-get-update-and-key-problems/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 21:06:47 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[public key]]></category>

		<guid isPermaLink="false">http://jontas.mine.nu/?p=3</guid>
		<description><![CDATA[After updating my installation to etch I ran into a sligt problem with apt-get. I just got an odd error message from apt-get update GPG error: ftp://www.se.debian.org unstable Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY F1D53D8C4F368D5D W: You may want to run apt-get update to correct these [...]]]></description>
			<content:encoded><![CDATA[<p>After updating my installation to etch I ran into a sligt problem with apt-get.</p>
<p>I just got an odd error message from apt-get update<br />
GPG error: ftp://www.se.debian.org unstable Release:<br />
The following signatures couldn&#8217;t be verified<br />
because the public key is not available:<br />
NO_PUBKEY F1D53D8C4F368D5D</p>
<p>W: You may want to run apt-get update to correct these problems</p>
<p>Well, running apt-get update again (and again&#8230;) has no effect;)<br />
What it (tries to) tell me is that the key used to verify the files in the archive was not found<br />
The solution to this is simply</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ gpg <span style="color: #660033;">--keyserver</span> wwwkeys.eu.pgp.net <span style="color: #660033;">--recv-keys</span> F1D53D8C4F368D5D
$ gpg <span style="color: #660033;">--armor</span> <span style="color: #660033;">--export</span> F1D53D8C4F368D5D <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> add -
$ <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>The wwwkeys.eu.pgp.net can be exchanged for any other key server that hosts the key, the only thing to note is that you should only use a key server that you feel is trusted.</p>
<p><a href="http://wiki.debian.org/SecureApt">Some info from Debian about this</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2007/04/16/apt-get-update-and-key-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

