« Microsoft PowerToys for Windows XP | Main | H某人 »

7.1 一般错误

7.1 一般错误
错误总是发生,大部分是因为用户的粗心,下面列举一些常见错误及处理方法。

如果在运行apt-get install package时,你的系统报告如下信息:

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
上次你修改/etc/apt/sources.list后,忘了运行apt-get update更新。

如果出现这样的信息:

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?
如果你没有root权限,运行除source外的其它apt-get命令,如会出现上面的错误信息。这是因为你是普通用户。

当你同时运行两个apt-get进程,或者当你试图运行apt-get时已有一个的dpkg进程处于激活状态,系统也会报告与上面相似的错误信息。唯一能与其它命令同时运行的只有source 命令。

如果在安装过程中出现中断,然后你发现该软件包既不能重装又不能删除,试试下面两个命令:

# apt-get -f install
# dpkg --configure -a
再试着安装那个软件包,如果不行再次运行上述命令后再试。这两个命令对于那些使用unstable的玩家非常有用。

如果你在运行apt-get update时看到“E: Dynamic MMap ran out of room”, 那么在/etc/apt/apt.conf加入如下内容:

APT::Cache-Limit 10000000;
From:http://www.debian.org/doc/manuals/apt-howto/ch-erros.zh-cn.html

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on August 4, 2007 6:31 PM.

The previous post in this blog was Microsoft PowerToys for Windows XP.

The next post in this blog is H某人.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.