<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=APT</id>
	<title>APT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=APT"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=APT&amp;action=history"/>
	<updated>2026-05-04T04:03:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=APT&amp;diff=8061&amp;oldid=prev</id>
		<title>Kenneth: /* Installing and Removing Packages */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=APT&amp;diff=8061&amp;oldid=prev"/>
		<updated>2024-10-25T20:54:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Installing and Removing Packages&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:54, 25 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Clear out the local repository of retrieved package files (will likely want to run from time to time to free up disk space):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Clear out the local repository of retrieved package files (will likely want to run from time to time to free up disk space):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  apt-get clean&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  apt-get clean&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== See Package Versions ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;See what versions are available of a package to you: &amp;lt;ref&amp;gt;https://askubuntu.com/questions/916598/how-to-install-a-package-greater-than-or-equal-to-a-particular-version&amp;lt;/ref&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; apt policy PACKAGE&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Install Package by Version ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Install Package by Version: &amp;lt;ref&amp;gt;https://askubuntu.com/questions/916598/how-to-install-a-package-greater-than-or-equal-to-a-particular-version&amp;lt;/ref&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo apt install PACAKGE=VERSION&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Install Package Less Than Version with Satisfy ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Install Package Version with Satisfy &amp;lt;ref&amp;gt;https://unix.stackexchange.com/questions/578460/specify-apt-get-a-minimum-version-to-be-installed&amp;lt;/ref&amp;gt; &amp;lt;ref&amp;gt;https://askubuntu.com/questions/916598/how-to-install-a-package-greater-than-or-equal-to-a-particular-version&amp;lt;/ref&amp;gt; &amp;lt;ref&amp;gt;https://askubuntu.com/questions/916598/how-to-install-a-package-greater-than-or-equal-to-a-particular-version&amp;lt;/ref&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo apt-get satisfy &quot;foo (&amp;gt;= 1.0), bar (&amp;gt;= 2.0)&quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo apt satisfy &quot;python3 (&amp;gt;= 3.9), python3-dev (&amp;gt;= 3.9)&quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Package Updates ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Package Updates ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key aznot:diff:1.41:old-8028:rev-8061:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
	<entry>
		<id>https://aznot.com/index.php?title=APT&amp;diff=8028&amp;oldid=prev</id>
		<title>Kenneth: /* apt-file */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=APT&amp;diff=8028&amp;oldid=prev"/>
		<updated>2024-10-09T06:19:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;apt-file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:19, 9 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l461&quot;&gt;Line 461:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 461:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ref: [https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ref: [https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Mark and Hold Package ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Don&#039;t allow kernel to be updated&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hold a package:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo apt-mark hold &amp;lt;package-name&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Remove the hold:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo apt-mark unhold &amp;lt;package-name&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Show all packages on hold:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo apt-mark showhold&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ref: [https://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Show Available Package Versions With Madison ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Show Available Package Versions With Madison ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key aznot:diff:1.41:old-6231:rev-8028:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
	<entry>
		<id>https://aznot.com/index.php?title=APT&amp;diff=6231&amp;oldid=prev</id>
		<title>Kenneth: /* apt-mirror */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=APT&amp;diff=6231&amp;oldid=prev"/>
		<updated>2023-05-19T16:01:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;apt-mirror&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Summary==&lt;br /&gt;
Advanced Packaging Tool (APT): Debian&amp;#039;s high-level package management system, also used by other Linux distributions&lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Advanced_Packaging_Tool Wiki: Advanced Packaging Tool (APT)]&lt;br /&gt;
&lt;br /&gt;
[http://www.debian.org/doc/manuals/apt-howto/ APT HOWTO]&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
apt configuration folders and files:&lt;br /&gt;
 /etc/apt&lt;br /&gt;
&lt;br /&gt;
apt sources:&lt;br /&gt;
 /etc/pat/sources.list&lt;br /&gt;
&lt;br /&gt;
APT uses /var/lib/apt/lists/* for tracking available packages while dpkg uses /var/lib/dpkg/available. [http://www.debian.org/doc/manuals/reference/ch-package.en.html]&lt;br /&gt;
&lt;br /&gt;
Standard Debian:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#deb file:///cdrom/ sarge main&lt;br /&gt;
&lt;br /&gt;
deb http://mirrors.kernel.org/debian/ stable main&lt;br /&gt;
deb-src http://mirrors.kernel.org/debian/ stable main&lt;br /&gt;
&lt;br /&gt;
deb http://security.debian.org/ stable/updates main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
&lt;br /&gt;
===Installing and Removing Packages===&lt;br /&gt;
Install package:&lt;br /&gt;
 apt-get install &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reinstall package:&lt;br /&gt;
 # If you somehow damage an installed package, or simply want the files of a package to be reinstalled with the newest version that is&lt;br /&gt;
 # available, you can use the --reinstall option like so:&lt;br /&gt;
 apt-get --reinstall install &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove package:&lt;br /&gt;
 apt-get remove &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove package and purge configuration files: (do before a reinstall if you want default config files back)&lt;br /&gt;
 apt-get --purge remove [package]&lt;br /&gt;
 apt-get purge [package]&lt;br /&gt;
 dpkg --purge [package]    # remove config files from a removed package that wasn&amp;#039;t purged&lt;br /&gt;
&lt;br /&gt;
Clear out the local repository of retrieved package files (will likely want to run from time to time to free up disk space):&lt;br /&gt;
 apt-get clean&lt;br /&gt;
&lt;br /&gt;
=== Package Updates ===&lt;br /&gt;
&lt;br /&gt;
Retrieve new lists of packages:&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
Upgrade packages:&lt;br /&gt;
 # It&amp;#039;s important to always run &amp;#039;apt-get update&amp;#039; before you try this&lt;br /&gt;
 # -u show upgraded packages (otherwise silent)&lt;br /&gt;
 apt-get -u upgrade&lt;br /&gt;
&lt;br /&gt;
Simulate upgrade (to see what will change):&lt;br /&gt;
 apt-get -s upgrade&lt;br /&gt;
&lt;br /&gt;
Upgrading to a new release:&lt;br /&gt;
 apt-get -u dist-upgrade&lt;br /&gt;
&lt;br /&gt;
Download upgrade files, but don&amp;#039;t install:&lt;br /&gt;
 apt-get -d upgrade&lt;br /&gt;
 apt-get -d dist-upgrade&lt;br /&gt;
&lt;br /&gt;
=== Upgrade ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get clean            # clean cached&lt;br /&gt;
apt-get update           # update lists&lt;br /&gt;
&lt;br /&gt;
apt-get -s upgrade       # simulate upgrade&lt;br /&gt;
&lt;br /&gt;
apt-get -u update        # upgrade packages (when ready)&lt;br /&gt;
&lt;br /&gt;
apt-get -u dist-upgrade  # Install any missing dependencies (for those kept back)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
aptitude:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aptitude clean&lt;br /&gt;
aptitude update&lt;br /&gt;
aptitude dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
aptitude 0.4.11.11:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aptitude clean&lt;br /&gt;
aptitude update&lt;br /&gt;
aptitude safe upgrade&lt;br /&gt;
aptitude full-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Searching ===&lt;br /&gt;
&lt;br /&gt;
Search for a package:&lt;br /&gt;
 apt-cache search [regex]&lt;br /&gt;
&lt;br /&gt;
Determine with package a file came from:&lt;br /&gt;
 dpkg -S [filename_and_path]&lt;br /&gt;
&lt;br /&gt;
Searching with aptitude:&lt;br /&gt;
 apt-cache search ^kernel-image&lt;br /&gt;
&lt;br /&gt;
List installed packages and versions (similar to rpm -qa):&lt;br /&gt;
 dpkg -l | grep [regex]&lt;br /&gt;
&lt;br /&gt;
List files within installed package:&lt;br /&gt;
 dpkg -L [package]&lt;br /&gt;
&lt;br /&gt;
List files within packages (installed and not installed):&lt;br /&gt;
 # Install with &amp;#039;apt-get install apt-file&amp;#039;&lt;br /&gt;
 # Run &amp;#039;apt-file update&amp;#039; to update the apt-file database first&lt;br /&gt;
 apt-file update&lt;br /&gt;
 apt-file list [package pattern]&lt;br /&gt;
&lt;br /&gt;
Search for file within all packages (It works similar to dpkg -S, but including not installed packages):&lt;br /&gt;
 apt-file search [filename]&lt;br /&gt;
&lt;br /&gt;
Show all downloaded packages (including not installed): [http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html.en]&lt;br /&gt;
 dpkg -l *&lt;br /&gt;
 dpkg -l \*&lt;br /&gt;
 dpkg -l &amp;#039;*&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Note: Without the star glob, dpkg only lists installed packages.&lt;br /&gt;
&lt;br /&gt;
To search the listing of packages yourself:&lt;br /&gt;
 less /var/lib/dpkg/available&lt;br /&gt;
&lt;br /&gt;
Note: dpkg keeps its record of available packages in /var/lib/dpkg/available. A simpler one-shot command to retrieve and update the available file is dselect update.&lt;br /&gt;
&lt;br /&gt;
Find packages to be updated:&lt;br /&gt;
 # apt-get install apt-show-versions&lt;br /&gt;
 apt-show-versions -u&lt;br /&gt;
 apt-show-versions | grep upgradeable&lt;br /&gt;
&lt;br /&gt;
==== Find Package that Provides File ====&lt;br /&gt;
&lt;br /&gt;
 -S, --search filename-search-pattern...&lt;br /&gt;
                   Search for a filename from installed packages.&lt;br /&gt;
&lt;br /&gt;
 $ dpkg -S /bin/ls&lt;br /&gt;
 coreutils: /bin/ls&lt;br /&gt;
&lt;br /&gt;
ref: [https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file]&lt;br /&gt;
&lt;br /&gt;
===== Find Package that Provides File with apt-file =====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install apt-file&lt;br /&gt;
 apt-file update&lt;br /&gt;
&lt;br /&gt;
 $ apt-file find kwallet.h&lt;br /&gt;
 kdelibs5-dev: /usr/include/kwallet.h&lt;br /&gt;
 libkf5wallet-dev: /usr/include/KF5/KWallet/kwallet.h&lt;br /&gt;
&lt;br /&gt;
Ref: [https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file]&lt;br /&gt;
&lt;br /&gt;
===== List Files in Package with dpkg-query =====&lt;br /&gt;
&lt;br /&gt;
For packages &amp;#039;&amp;#039;&amp;#039;installed&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
 dpkg-query -L &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # dpkg-query -L wget&lt;br /&gt;
 /.&lt;br /&gt;
 /etc&lt;br /&gt;
 /usr/bin/wget&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Ref: [https://askubuntu.com/questions/32507/how-do-i-get-a-list-of-installed-files-from-a-package]&lt;br /&gt;
&lt;br /&gt;
===== List Files in Package with apt-file =====&lt;br /&gt;
&lt;br /&gt;
For packages &amp;#039;&amp;#039;&amp;#039;installed or not installed&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
 apt-file list &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # apt-file list wget&lt;br /&gt;
 wget: /etc/wgetrc&lt;br /&gt;
 wget: /usr/bin/wget&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Ref: [https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file]&lt;br /&gt;
&lt;br /&gt;
===== List Package Dependencies =====&lt;br /&gt;
&lt;br /&gt;
What packages will this package also install:&lt;br /&gt;
 apt-cache depends &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # apt-cache depends wget&lt;br /&gt;
 wget&lt;br /&gt;
   Depends: libc6&lt;br /&gt;
   Depends: libidn2-0&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Also listed in details of `showpkg`:&lt;br /&gt;
 apt-cache showpkg &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== List Package Reverse Dependencies =====&lt;br /&gt;
&lt;br /&gt;
What packages will install this package as a dependency:&lt;br /&gt;
 apt-cache rdepends &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 # apt-cache rdepends wget&lt;br /&gt;
 wget&lt;br /&gt;
 Reverse Depends:&lt;br /&gt;
  |usbutils&lt;br /&gt;
   ubuntu-standard&lt;br /&gt;
   virtualbox-ext-pack&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Also listed in details of `showpkg`:&lt;br /&gt;
 apt-cache showpkg &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Package Details===&lt;br /&gt;
Show package details:&lt;br /&gt;
 apt-cache show &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Show package dependencies:&lt;br /&gt;
 apt-cache depends &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Show package information:&lt;br /&gt;
 apt-cache showpkg &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===APT maintenance===&lt;br /&gt;
Clean apt cache:&lt;br /&gt;
 apt-get clean&lt;br /&gt;
&lt;br /&gt;
If an installation breaks in the middle of the process and you find that it&amp;#039;s no longer possible to install or remove packages, try running these two commands:&lt;br /&gt;
 apt-get -f install&lt;br /&gt;
 dpkg --configure -a&lt;br /&gt;
&lt;br /&gt;
configures all partially installed packages:&lt;br /&gt;
 dpkg --configure -a&lt;br /&gt;
 dpkg-reconfigure --all&lt;br /&gt;
&lt;br /&gt;
Reconfigure a particular package:&lt;br /&gt;
 dpkg --configure [package]&lt;br /&gt;
 dpkg-reconfigure [package]&lt;br /&gt;
&lt;br /&gt;
== Reinstall Config Files ==&lt;br /&gt;
&lt;br /&gt;
 apt-get -o DPkg::options::=--force-confmiss --reinstall install &amp;lt;package&amp;gt;&lt;br /&gt;
&lt;br /&gt;
note: didn&amp;#039;t seem to work...&lt;br /&gt;
&lt;br /&gt;
ref: [http://www.microkwen.com/2008/09/16/force-apt-get-to-reinstall-config-files/]&lt;br /&gt;
&lt;br /&gt;
== yum to apt ==&lt;br /&gt;
&lt;br /&gt;
List available packages:&lt;br /&gt;
 # yum list&lt;br /&gt;
 apt-cache search .&lt;br /&gt;
&lt;br /&gt;
Clean cache:&lt;br /&gt;
 # yum clean all&lt;br /&gt;
 apt-cache clean&lt;br /&gt;
&lt;br /&gt;
Install package:&lt;br /&gt;
 # yum install [PACAKGE]&lt;br /&gt;
 apt-get install [PACKAGE]&lt;br /&gt;
&lt;br /&gt;
Remove package:&lt;br /&gt;
 # yum remove [PACKAGE]&lt;br /&gt;
 apt-get remove [PACKAGE]&lt;br /&gt;
&lt;br /&gt;
List package files:&lt;br /&gt;
 # rpm -qvl [PACKAGE]&lt;br /&gt;
 dpkg -L [PACKAGE]&lt;br /&gt;
&lt;br /&gt;
List installed packages:&lt;br /&gt;
 # rpm -qa&lt;br /&gt;
 dpkg -l&lt;br /&gt;
&lt;br /&gt;
Update Packages:&lt;br /&gt;
 # yum update&lt;br /&gt;
 apt-get -u update&lt;br /&gt;
 apt-get -u upgrade&lt;br /&gt;
 apt-get -u dist-upgrade  # to include kernel updates&lt;br /&gt;
&lt;br /&gt;
Update package cache:&lt;br /&gt;
 # yum makecache&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
Provides:&lt;br /&gt;
 # yum provides &amp;quot;*/ifconfig&amp;quot;&lt;br /&gt;
 apt-get install apt-file&lt;br /&gt;
 apt-file update&lt;br /&gt;
 apt-file search &amp;quot;/ifconfig&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==front ends==&lt;br /&gt;
&lt;br /&gt;
===dselect===&lt;br /&gt;
dselect:&lt;br /&gt;
:&amp;quot;dselect is a program that helps users select Debian packages for installation.&amp;quot; [http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html#s-dselect-upgrade]&lt;br /&gt;
&lt;br /&gt;
TUI:&lt;br /&gt;
 dselect&lt;br /&gt;
&lt;br /&gt;
Update list of available packages (found in /var/lib/dpkg/available):&lt;br /&gt;
 dselect update&lt;br /&gt;
&lt;br /&gt;
== aptitude ==&lt;br /&gt;
&lt;br /&gt;
aptitude:&lt;br /&gt;
:&amp;quot;aptitude is a featureful package manager for Debian GNU/Linux systems, based on the renowned apt package management infrastructure. aptitude provides the functionality of dselect and apt-get, as well as many additional features not found in either program.&amp;quot; [http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/pr01s01.html]&lt;br /&gt;
&lt;br /&gt;
==Local deb repository==&lt;br /&gt;
Create a folder somewhere:&lt;br /&gt;
 mkdir /data/debs&lt;br /&gt;
&lt;br /&gt;
May want &amp;#039;override&amp;#039; file (If you do not want to write an override file, just use /dev/null when calling dpkg-scanpackages):&lt;br /&gt;
 [package] [priority] [section]&lt;br /&gt;
&lt;br /&gt;
Build deb package file:&lt;br /&gt;
 cd /data&lt;br /&gt;
 dpkg-scanpackages debs [override file] | gzip &amp;gt; debs/Packages.gz&lt;br /&gt;
&lt;br /&gt;
Add &lt;br /&gt;
 deb file:/root debs/&lt;br /&gt;
&lt;br /&gt;
== Repository Structure ==&lt;br /&gt;
&lt;br /&gt;
See [[apt/repository]]&lt;br /&gt;
&lt;br /&gt;
==Alien - convert .rpm to .deb==&lt;br /&gt;
To convert an .rpm to .deb...&lt;br /&gt;
&lt;br /&gt;
Summary: install non-native packages with dpkg&lt;br /&gt;
&lt;br /&gt;
Description: &lt;br /&gt;
 Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages&lt;br /&gt;
 into Debian packages, which can be installed with dpkg.&lt;br /&gt;
 &lt;br /&gt;
 It can also generate packages of any of the other formats.&lt;br /&gt;
 &lt;br /&gt;
 This is a tool only suitable for binary packages.&lt;br /&gt;
&lt;br /&gt;
Install alien:&lt;br /&gt;
 sudo apt-get install alien&lt;br /&gt;
Convert to .deb file:&lt;br /&gt;
 sudo alien [package].rpm&lt;br /&gt;
 &lt;br /&gt;
 # Note: use the --scripts parameter to include the scripts.&lt;br /&gt;
 sudo alien --scripts [package].rpm&lt;br /&gt;
 &lt;br /&gt;
 # Note: alien will increment the version number. If you want to keep the original version number, you must use the -k switch:&lt;br /&gt;
 sudo alien --scripts -k [package].rpm&lt;br /&gt;
&lt;br /&gt;
Install .deb file:&lt;br /&gt;
 sudo dpkg -i [package].deb&lt;br /&gt;
&lt;br /&gt;
To skip the dpkg step, convert and install all in one with &amp;#039;-i&amp;#039;:&lt;br /&gt;
  sudo alien --scripts -i [package].rpm&lt;br /&gt;
&lt;br /&gt;
More alien info:&lt;br /&gt;
 man alien&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[http://ubuntuforums.org/showthread.php?t=648177 Convert .rpm to .deb - Ubuntu Forums]&lt;br /&gt;
*[[http://ubuntuforums.org/showpost.php?p=1789948&amp;amp;postcount=6 RE: convert rpm to deb]&lt;br /&gt;
&lt;br /&gt;
== apt-mirror ==&lt;br /&gt;
&lt;br /&gt;
See [[apt-mirror]]&lt;br /&gt;
&lt;br /&gt;
Summary:&lt;br /&gt;
 https://apt-mirror.github.io/&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install apt-mirror&lt;br /&gt;
 $ nano /etc/apt/mirror.list&lt;br /&gt;
 $ sudo apt-mirror&lt;br /&gt;
&lt;br /&gt;
Source:&lt;br /&gt;
 https://github.com/apt-mirror/apt-mirror&lt;br /&gt;
&lt;br /&gt;
/etc/apt/mirror.list - Ubuntu 16 and 18:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
############# config ##################&lt;br /&gt;
#&lt;br /&gt;
# set base_path    /var/spool/apt-mirror&lt;br /&gt;
set base_path    /repo/apt-mirror&lt;br /&gt;
#&lt;br /&gt;
# set mirror_path  $base_path/mirror&lt;br /&gt;
# set skel_path    $base_path/skel&lt;br /&gt;
# set var_path     $base_path/var&lt;br /&gt;
# set cleanscript $var_path/clean.sh&lt;br /&gt;
# set defaultarch  &amp;lt;running host architecture&amp;gt;&lt;br /&gt;
# set postmirror_script $var_path/postmirror.sh&lt;br /&gt;
# set run_postmirror 0&lt;br /&gt;
set nthreads     20&lt;br /&gt;
set _tilde 0&lt;br /&gt;
#&lt;br /&gt;
############# end config ##############&lt;br /&gt;
&lt;br /&gt;
## Ubuntu 16 ##&lt;br /&gt;
&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse&lt;br /&gt;
#deb http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse&lt;br /&gt;
&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse&lt;br /&gt;
##deb-src http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse&lt;br /&gt;
&lt;br /&gt;
## Ubuntu 18 ##&lt;br /&gt;
&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse&lt;br /&gt;
#deb http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse&lt;br /&gt;
&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse&lt;br /&gt;
##deb-src http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse&lt;br /&gt;
#deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse&lt;br /&gt;
&lt;br /&gt;
clean http://archive.ubuntu.com/ubuntu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Uncomment the dev-src sections if you want the source files (takes a ton of space!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/repo/apt-mirror/var/postmirror.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo&lt;br /&gt;
echo&lt;br /&gt;
echo&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;postmirror: Running clean.sh!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/repo/apt-mirror/var/clean.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== apt-file ==&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt-get install apt-file&lt;br /&gt;
 apt-file update&lt;br /&gt;
&lt;br /&gt;
 apt-file find [file]&lt;br /&gt;
 apt-file list [packagename]&lt;br /&gt;
&lt;br /&gt;
 apt-file find kwallet.h&lt;br /&gt;
&lt;br /&gt;
 apt-file search /usr/lib/tracker/tracker-store&lt;br /&gt;
 apt-file search --regex /tracker-extract$&lt;br /&gt;
 apt-file search --regex /tracker-miner-fs$&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ref: [https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file]&lt;br /&gt;
&lt;br /&gt;
== Show Available Package Versions With Madison ==&lt;br /&gt;
&lt;br /&gt;
To show available versions of a package:&lt;br /&gt;
 apt-cache madison [package]&lt;br /&gt;
&lt;br /&gt;
Sample:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apt-cache madison git&lt;br /&gt;
       git | 1:2.25.1-1ubuntu3.5 | http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages&lt;br /&gt;
       git | 1:2.25.1-1ubuntu3.5 | http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages&lt;br /&gt;
       git | 1:2.25.1-1ubuntu3 | http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ref: https://askubuntu.com/questions/447/how-can-i-see-all-versions-of-a-package-that-are-available-in-the-archive&lt;br /&gt;
&lt;br /&gt;
=== Show Available Package Version with Apt List ===&lt;br /&gt;
&lt;br /&gt;
Nearly equivalent to madison:&lt;br /&gt;
 apt list -a &amp;lt;package name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ref: [https://askubuntu.com/questions/447/how-can-i-see-all-versions-of-a-package-that-are-available-in-the-archive]&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
&lt;br /&gt;
=== Could not get lock ===&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
 E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)&lt;br /&gt;
 E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?&lt;br /&gt;
&lt;br /&gt;
This happens when apt is interrupted during an installation&lt;br /&gt;
&lt;br /&gt;
Solution: (remove lock and resume installation)&lt;br /&gt;
 killall aptitude&lt;br /&gt;
 killall apt-get&lt;br /&gt;
 rm /var/lib/dpkg/lock&lt;br /&gt;
 dpkg --configure -a&lt;br /&gt;
&lt;br /&gt;
=== The following packages have been kept back ===&lt;br /&gt;
&lt;br /&gt;
Running &amp;#039;apt-get upgrade&amp;#039; may show this:&lt;br /&gt;
 The following packages have been kept back:&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
There we can see four packages haven&amp;#039;t been upgraded, even though newer packages are available. This is because two new packages were introduced, and these upgrades depend upon it.&lt;br /&gt;
&lt;br /&gt;
To fix this you must run :&lt;br /&gt;
 apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
This will upgrade the packages that have newer versions available, and install any new dependencies which are required to do that.&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.debian-administration.org/articles/69 Some upgrades show packages being kept back]&lt;br /&gt;
&lt;br /&gt;
=== package reportbug upgrade issue ===&lt;br /&gt;
&lt;br /&gt;
When trying to dist-upgrade Debian to the latest:&lt;br /&gt;
&lt;br /&gt;
Problem:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Preparing to replace reportbug 3.8 (using .../reportbug_3.48_all.deb) ...&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/usr/bin/pycentral&amp;quot;, line 1891, in ?&lt;br /&gt;
    main()&lt;br /&gt;
  File &amp;quot;/usr/bin/pycentral&amp;quot;, line 1885, in main&lt;br /&gt;
    rv = action.run(global_options)&lt;br /&gt;
  File &amp;quot;/usr/bin/pycentral&amp;quot;, line 1296, in run&lt;br /&gt;
    runtimes = get_installed_runtimes()&lt;br /&gt;
  File &amp;quot;/usr/bin/pycentral&amp;quot;, line 210, in get_installed_runtimes&lt;br /&gt;
    default_version = pyversions.default_version(version_only=True)&lt;br /&gt;
  File &amp;quot;/usr/share/pycentral-data/pyversions.py&amp;quot;, line 163, in default_version&lt;br /&gt;
    raise ValueError, &amp;quot;/usr/bin/python does not match the python default version. It must be reset to point to %s&amp;quot; % debian_default&lt;br /&gt;
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.4&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/reportbug_3.48_all.deb (--unpack):&lt;br /&gt;
 subprocess pre-installation script returned error exit status 1&lt;br /&gt;
Errors were encountered while processing:&lt;br /&gt;
 /var/cache/apt/archives/reportbug_3.48_all.deb&lt;br /&gt;
E: Sub-process /usr/bin/dpkg returned an error code (1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
 dpkg -r --force all python-newt python-central&lt;br /&gt;
 apt-get -f install&lt;br /&gt;
 apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
=== Work Arounds ===&lt;br /&gt;
&lt;br /&gt;
 apt-get -f install&lt;br /&gt;
&lt;br /&gt;
=== trying to overwrite [file] which is also in package [package] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Preparing to replace debianutils 2.8.4 (using …/debianutils_2.23.1_i386.deb) …&lt;br /&gt;
Unpacking replacement debianutils …&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/debianutils_2.23.1_i386.deb (--unpack):&lt;br /&gt;
  trying to overwrite `/usr/sbin/add-shell’, which is also in package passwd&lt;br /&gt;
Errors were encountered while processing:&lt;br /&gt;
  /var/cache/apt/archives/debianutils_2.23.1_i386.deb&lt;br /&gt;
E: Sub-process /usr/bin/dpkg returned an error code (1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
 dpkg -r --force all passwd&lt;br /&gt;
 apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Generic Solution:&lt;br /&gt;
 dpkg -r --force all [package]&lt;br /&gt;
 apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Source: [http://osterman.com/wordpress/2007/09/08/debian-trying-to-overwrite-add-shell-with-passwd]&lt;br /&gt;
&lt;br /&gt;
=== Install these packages without verification? ===&lt;br /&gt;
&lt;br /&gt;
try...&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
 apt-get clean ; apt-get update&lt;br /&gt;
&lt;br /&gt;
 # or&lt;br /&gt;
&lt;br /&gt;
 apt-get install debian-keyring debian-archive-keyring&lt;br /&gt;
&lt;br /&gt;
See: [http://wiki.debian.org/SecureApt SecureApt - Debian Wiki]&lt;br /&gt;
&lt;br /&gt;
=== This installation run will require temporarily removing the essential package ===&lt;br /&gt;
&lt;br /&gt;
Problem on &amp;#039;apt-get -u dist-upgrade&amp;#039;:&lt;br /&gt;
 E: This installation run will require temporarily removing the essential package&lt;br /&gt;
    sysvinit due to a Conflicts/Pre-Depends loop. This is often bad, but if you&lt;br /&gt;
    really want to do it, activate the APT::Force-LoopBreak option.&lt;br /&gt;
 E: Internal Error, Could not early remove sysvinit&lt;br /&gt;
&lt;br /&gt;
Cause:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
*Option #1:&lt;br /&gt;
&lt;br /&gt;
Remove the problem package and run upgrade again.&lt;br /&gt;
 apt-get remove [package]&lt;br /&gt;
&lt;br /&gt;
WARNING: This will break things that need to be manually repaired&lt;br /&gt;
&lt;br /&gt;
Source: [http://nixcraft.com/getting-started-tutorials/182-how-solve-apt-get-upgrade-problem.html How to solve apt-get upgrade problem - Linux / UNIX Forum]&lt;br /&gt;
&lt;br /&gt;
* Option #2:&lt;br /&gt;
&lt;br /&gt;
Enable the Force-LoopBreak option:&lt;br /&gt;
  apt-get -o APT::Force-LoopBreak=yes dist-upgrade&lt;br /&gt;
&lt;br /&gt;
WARNING: This will break things that need to be manually repaired&lt;br /&gt;
&lt;br /&gt;
Source: [http://cryingwolf.net/archives/23-DEBIAN-APT-Force-Loop-Break.html DEBIAN APT : Force Loop Break - NickNack&amp;#039;s personal blog]&lt;br /&gt;
&lt;br /&gt;
=== Could not open lock file ===&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
 E: Could not open lock file /var/cache/apt/archives/lock - open (2 No such file or directory)&lt;br /&gt;
 E: Unable to lock the download directory&lt;br /&gt;
&lt;br /&gt;
You deleted the /var/cache/apt/archives folder, didn&amp;#039;t you?  Recreate the folder, and the &amp;#039;partial&amp;#039; folder as well.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
 mkdir -p /var/cache/apt/archives/partial&lt;br /&gt;
&lt;br /&gt;
=== readlink: invalid option ===&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Preparing to replace libc6 2.3.2.ds1-11 (using .../libc6_2.7-18lenny4_i386.deb) ...&lt;br /&gt;
Checking for services that may need to be restarted...&lt;br /&gt;
Checking init scripts...&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
readlink: invalid option -- e&lt;br /&gt;
usage: readlink [-n] [-f] symlink [...]&lt;br /&gt;
WARNING: POSIX threads library NPTL requires kernel version&lt;br /&gt;
2.6.8 or later. If you use a kernel 2.4, please upgrade it&lt;br /&gt;
before installing glibc.&lt;br /&gt;
&lt;br /&gt;
The installation of a 2.6 kernel _could_ ask you to install a new libc&lt;br /&gt;
first, this is NOT a bug, and should *NOT* be reported. In that case,&lt;br /&gt;
please add etch sources to your /etc/apt/sources.list and run:&lt;br /&gt;
  apt-get install -t etch linux-image-2.6&lt;br /&gt;
Then reboot into this new kernel, and proceed with your upgrade&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny4_i386.deb (--unpack):&lt;br /&gt;
 subprocess pre-installation script returned error exit status 1&lt;br /&gt;
Errors were encountered while processing:&lt;br /&gt;
 /var/cache/apt/archives/libc6_2.7-18lenny4_i386.deb&lt;br /&gt;
E: Sub-process /usr/bin/dpkg returned an error code (1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
I had this problem too and it is because Debian have moved the packages for sarge to another site (Archive).&lt;br /&gt;
&lt;br /&gt;
I have written a new /etc/apt/sources.list that fixes this. Simply remove the current entries from /etc/apt/sources.list and replace them with this...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://archive.debian.org/debian sarge main contrib non-free&lt;br /&gt;
&lt;br /&gt;
deb http://archive.debian.org/debian-non-US oldstable/non-US main contrib non-free&lt;br /&gt;
deb-src http://archive.debian.org/debian-non-US oldstable/non-US main contrib non-free&lt;br /&gt;
&lt;br /&gt;
deb http://archive.debian.org/debian-security sarge/updates main contrib non-free&lt;br /&gt;
deb-src http://archive.debian.org/debian-security sarge/updates main contrib non-free&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source: [http://forums.xbox-scene.com/index.php?showtopic=680973 Installed Xebian 1.1.4, Now I Can&amp;#039;t Upgrade Anything? - Scenyx Entertainment Community]&lt;br /&gt;
&lt;br /&gt;
=== no public key available ===&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ apt-get update&lt;br /&gt;
...&lt;br /&gt;
Reading package lists... Done&lt;br /&gt;
W: There is no public key available for the following key IDs:&lt;br /&gt;
B5D0C804ADB11277&lt;br /&gt;
W: You may want to run apt-get update to correct these problems&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
 apt-key update&lt;br /&gt;
&lt;br /&gt;
If that doesn&amp;#039;t work:&lt;br /&gt;
 # gpg --keyserver wwwkeys.eu.pgp.net --recv-keys [MISSING_KEY_ID]&lt;br /&gt;
 # apt-key add /root/.gnupg/pubring.gpg&lt;br /&gt;
 # apt-get update &lt;br /&gt;
&lt;br /&gt;
Source: [http://kovyrin.net/2006/11/28/debian-problem-apt-get-update/ Small Tip: How to fix “There are no public key available for the following key IDs” Error in Debian « Alexey Kovyrin&amp;#039;s Blog]&lt;br /&gt;
&lt;br /&gt;
=== W: Failed to fetch Packages.gz - Not Found ===&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
 Err http://security.ubuntu.com karmic-security/main Packages&lt;br /&gt;
   404  Not Found [IP: 91.189.91.14 80]&lt;br /&gt;
 W: Failed to fetch Packages.gz - Not Found&lt;br /&gt;
 E: Some index files failed to download, they have been ignored, or old ones used instead.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com to old-releases.ubuntu.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sed -i -e &amp;#039;s/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g&amp;#039; /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
I had to change &amp;quot;us.archive&amp;quot; to &amp;quot;old-releases&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* How to install software or upgrade from old unsupported release? - Ask Ubuntu - http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-old-unsupported-release&lt;br /&gt;
* EOLUpgrades - Community Ubuntu Documentation - https://help.ubuntu.com/community/EOLUpgrades/&lt;br /&gt;
&lt;br /&gt;
=== Old Release - Failed to fetch ===&lt;br /&gt;
&lt;br /&gt;
Once support is up for the version of Ubuntu you are using the repository is moved to another server and will no longer be available on the standard   http://archive.ubuntu.com/ubuntu/dist/ location.&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to upgrade:&lt;br /&gt;
 apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
An alternative solution is to point to the moved servers.  Run this command below on your server and it will replace all of the  archive.ubuntu.com  and  security.ubuntu.com package repository URLs with  old-releases.ubuntu.com&lt;br /&gt;
 sudo sed -i -e &amp;#039;s/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g&amp;#039; /etc/apt/sources.list&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
https://smyl.es/how-to-fix-ubuntudebian-apt-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty/&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>