221 lines
8.4 KiB
HTML
221 lines
8.4 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||
|
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
|
||
|
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
||
|
|
||
|
<title>APT HOWTO (Obsolete Documentation) - How to deal with errors</title>
|
||
|
|
||
|
<link href="index.en.html" rel="start">
|
||
|
<link href="ch-sourcehandling.en.html" rel="prev">
|
||
|
<link href="ch-distros.en.html" rel="next">
|
||
|
<link href="index.en.html#contents" rel="contents">
|
||
|
<link href="index.en.html#copyright" rel="copyright">
|
||
|
<link href="ch1.en.html" rel="chapter" title="1 Introduction">
|
||
|
<link href="ch-basico.en.html" rel="chapter" title="2 Basic Configuration">
|
||
|
<link href="ch-apt-get.en.html" rel="chapter" title="3 Managing packages">
|
||
|
<link href="ch-helpers.en.html" rel="chapter" title="4 Very useful helpers">
|
||
|
<link href="ch-search.en.html" rel="chapter" title="5 Getting information about packages.">
|
||
|
<link href="ch-sourcehandling.en.html" rel="chapter" title="6 Working with source packages">
|
||
|
<link href="ch-erros.en.html" rel="chapter" title="7 How to deal with errors">
|
||
|
<link href="ch-distros.en.html" rel="chapter" title="8 What distributions support APT?">
|
||
|
<link href="ch-agradecimentos.en.html" rel="chapter" title="9 Credits">
|
||
|
<link href="ch-novas.en.html" rel="chapter" title="10 New versions of this tutorial">
|
||
|
<link href="ch-basico.en.html#s-sources.list" rel="section" title="2.1 The /etc/apt/sources.list file">
|
||
|
<link href="ch-basico.en.html#s-dpkg-scanpackages" rel="section" title="2.2 How to use APT locally">
|
||
|
<link href="ch-basico.en.html#s-netselect" rel="section" title="2.3 Deciding which mirror is the best to include in the sources.list file: netselect, netselect-apt">
|
||
|
<link href="ch-basico.en.html#s-cdrom" rel="section" title="2.4 Adding a CD-ROM to the sources.list file">
|
||
|
<link href="ch-apt-get.en.html#s-update" rel="section" title="3.1 Updating the list of available packages">
|
||
|
<link href="ch-apt-get.en.html#s-install" rel="section" title="3.2 Installing packages">
|
||
|
<link href="ch-apt-get.en.html#s-remove" rel="section" title="3.3 Removing packages">
|
||
|
<link href="ch-apt-get.en.html#s-upgrade" rel="section" title="3.4 Upgrading packages">
|
||
|
<link href="ch-apt-get.en.html#s-dist-upgrade" rel="section" title="3.5 Upgrading to a new release">
|
||
|
<link href="ch-apt-get.en.html#s-clean" rel="section" title="3.6 Removing unused package files: apt-get clean and autoclean">
|
||
|
<link href="ch-apt-get.en.html#s-dselect-upgrade" rel="section" title="3.7 Using APT with dselect">
|
||
|
<link href="ch-apt-get.en.html#s-default-version" rel="section" title="3.8 How to keep a mixed system">
|
||
|
<link href="ch-apt-get.en.html#s-apt-show-versions" rel="section" title="3.9 How to upgrade packages from specific versions of Debian">
|
||
|
<link href="ch-apt-get.en.html#s-pin" rel="section" title="3.10 How to keep specific versions of packages installed (complex)">
|
||
|
<link href="ch-helpers.en.html#s-equivs" rel="section" title="4.1 How to install locally compiled packages: equivs">
|
||
|
<link href="ch-helpers.en.html#s-localepurge" rel="section" title="4.2 Removing unused locale files: localepurge">
|
||
|
<link href="ch-helpers.en.html#s-helper-show-versions" rel="section" title="4.3 How to know what packages may be upgraded">
|
||
|
<link href="ch-search.en.html#s-cache" rel="section" title="5.1 Discovering package names">
|
||
|
<link href="ch-search.en.html#s-dpkg-search" rel="section" title="5.2 Using dpkg to find package names">
|
||
|
<link href="ch-search.en.html#s-auto-apt" rel="section" title="5.3 How to install packages "on demand"">
|
||
|
<link href="ch-search.en.html#s-apt-file" rel="section" title="5.4 How to discover to which package a file belongs">
|
||
|
<link href="ch-search.en.html#s-apt-listchanges" rel="section" title="5.5 How to keep informed about the changes in the packages.">
|
||
|
<link href="ch-sourcehandling.en.html#s-source" rel="section" title="6.1 Downloading source packages">
|
||
|
<link href="ch-sourcehandling.en.html#s-build-dep" rel="section" title="6.2 Packages needed for compiling a source package">
|
||
|
<link href="ch-erros.en.html#s-erros-comuns" rel="section" title="7.1 Common errors">
|
||
|
<link href="ch-erros.en.html#s-help" rel="section" title="7.2 Where can I find help?">
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<p><a name="ch-erros"></a></p>
|
||
|
<hr>
|
||
|
|
||
|
<p>
|
||
|
[ <a href="ch-sourcehandling.en.html">previous</a> ]
|
||
|
[ <a href="index.en.html#contents">Contents</a> ]
|
||
|
[ <a href="ch1.en.html">1</a> ]
|
||
|
[ <a href="ch-basico.en.html">2</a> ]
|
||
|
[ <a href="ch-apt-get.en.html">3</a> ]
|
||
|
[ <a href="ch-helpers.en.html">4</a> ]
|
||
|
[ <a href="ch-search.en.html">5</a> ]
|
||
|
[ <a href="ch-sourcehandling.en.html">6</a> ]
|
||
|
[ 7 ]
|
||
|
[ <a href="ch-distros.en.html">8</a> ]
|
||
|
[ <a href="ch-agradecimentos.en.html">9</a> ]
|
||
|
[ <a href="ch-novas.en.html">10</a> ]
|
||
|
[ <a href="ch-distros.en.html">next</a> ]
|
||
|
</p>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<h1>
|
||
|
APT HOWTO (Obsolete Documentation)
|
||
|
<br>Chapter 7 - How to deal with errors
|
||
|
</h1>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<h2><a name="s-erros-comuns"></a>7.1 Common errors</h2>
|
||
|
|
||
|
<p>
|
||
|
Errors will always happen, many of them caused by users not paying attention.
|
||
|
The following is a list of some of the most frequently reported errors and how
|
||
|
to deal with them.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
If you receive a message that looks like the one below when trying to run
|
||
|
<samp>apt-get install package</samp>...
|
||
|
</p>
|
||
|
|
||
|
<pre>
|
||
|
Reading Package Lists... Done
|
||
|
Building Dependency Tree... Done
|
||
|
W: Couldn't stat source package list 'http://people.debian.org unstable/ Packages' (/var/state/apt/lists/people.debian.org_%7ekov_debian_unstable_Packages) - stat (2 No such file or directory)
|
||
|
W: You may want to run apt-get update to correct these missing files
|
||
|
E: Couldn't find package penguineyes
|
||
|
</pre>
|
||
|
|
||
|
<p>
|
||
|
you forgot to run <samp>apt-get update</samp> after your last change to the
|
||
|
<samp>/etc/apt/sources.list</samp> file.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
If the error looked like:
|
||
|
</p>
|
||
|
|
||
|
<pre>
|
||
|
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
|
||
|
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
|
||
|
</pre>
|
||
|
|
||
|
<p>
|
||
|
when trying any <code>apt-get</code> method other than <samp>source</samp>, you
|
||
|
don't have root permission, that is, you're running as a normal user.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
There's an error similar to the above which happens when you run two copies of
|
||
|
<code>apt-get</code> at the same time, or even if you try to run
|
||
|
<code>apt-get</code> while a <code>dpkg</code> process is active. The only
|
||
|
method that can be used simultaneously with others is the <samp>source</samp>
|
||
|
method.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
If an installation breaks in the middle of the process and you find that it's
|
||
|
no longer possible to install or remove packages, try running these two
|
||
|
commands:
|
||
|
</p>
|
||
|
|
||
|
<pre>
|
||
|
# apt-get -f install
|
||
|
# dpkg --configure -a
|
||
|
</pre>
|
||
|
|
||
|
<p>
|
||
|
And then try again. It may be necessary to run the second of the above
|
||
|
commands more than once. This is an important lesson for those adventurers who
|
||
|
use `unstable'.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
If you receive the error "E: Dynamic MMap ran out of room" when
|
||
|
running <samp>apt-get update</samp>, add the following line to
|
||
|
<code>/etc/apt/apt.conf</code>:
|
||
|
</p>
|
||
|
|
||
|
<pre>
|
||
|
APT::Cache-Limit 10000000;
|
||
|
</pre>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<h2><a name="s-help"></a>7.2 Where can I find help?</h2>
|
||
|
|
||
|
<p>
|
||
|
If you find yourself plagued by doubts, consult the extensive documentation
|
||
|
available for the Debian packaging system. <samp>--help</samp>'s and manpages
|
||
|
can be an enormous help to you, as can the documentation contained in the
|
||
|
<samp>/usr/share/doc</samp> directories such as
|
||
|
<samp>/usr/share/doc/apt</samp>.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
If this documentation fails to drive your fears away, try looking for the
|
||
|
answer on the Debian mailing lists. You can find more information about
|
||
|
specific user lists on the Debian website: <code><a
|
||
|
href="http://www.debian.org">http://www.debian.org</a></code>.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
Remember that these lists and resources should be used only by Debian users;
|
||
|
users of other systems will find better support from the community resources of
|
||
|
their own distributions.
|
||
|
</p>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<p>
|
||
|
[ <a href="ch-sourcehandling.en.html">previous</a> ]
|
||
|
[ <a href="index.en.html#contents">Contents</a> ]
|
||
|
[ <a href="ch1.en.html">1</a> ]
|
||
|
[ <a href="ch-basico.en.html">2</a> ]
|
||
|
[ <a href="ch-apt-get.en.html">3</a> ]
|
||
|
[ <a href="ch-helpers.en.html">4</a> ]
|
||
|
[ <a href="ch-search.en.html">5</a> ]
|
||
|
[ <a href="ch-sourcehandling.en.html">6</a> ]
|
||
|
[ 7 ]
|
||
|
[ <a href="ch-distros.en.html">8</a> ]
|
||
|
[ <a href="ch-agradecimentos.en.html">9</a> ]
|
||
|
[ <a href="ch-novas.en.html">10</a> ]
|
||
|
[ <a href="ch-distros.en.html">next</a> ]
|
||
|
</p>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<p>
|
||
|
APT HOWTO (Obsolete Documentation)
|
||
|
</p>
|
||
|
|
||
|
<address>
|
||
|
1.8.11 - August 2005<br>
|
||
|
<br>
|
||
|
Gustavo Noronha Silva <code><a href="mailto:kov@debian.org">kov@debian.org</a></code><br>
|
||
|
<br>
|
||
|
</address>
|
||
|
<hr>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|
||
|
|