个人工具

“Ubuntu中文:当前事件”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(/* 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 di)
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?
第10行: 第10行:
 
l;l;l;l;l;l;l;l;l;l
 
l;l;l;l;l;l;l;l;l;l
  
====== E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)<br> E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?<br><br>  ======
+
 
+
你一定是以普通用户在运行apt-get. 当运行 apt-get 用不同的源和方式的时候,都需要root权限。<br>
+
 
+
有种错误和上面这种错误很相似,当同时运行2个apt-get ,或者运行一个apt-get 和一个dpkg的时候。<br>
+
 
+
只有能和其他apt-get 同时使用的方式才是 source 方式(The only method that can be used simultaneously with others is the source) method. )<br>
+
 
+
如果在安装的过程中发生问题,或者某些软件包无法继续安装或删除,那么尝试运行下面两条命令:<br>
+
  /
+
  
 
====== # apt-get -f install<br># dpkg --configure -a  ======
 
====== # apt-get -f install<br># dpkg --configure -a  ======

2009年5月2日 (六) 14:58的版本

      错误将一直发生,许多错误是用户不注意所导致的。下面列出一些常见的错误和如何处理这些错误。

当你尝试运行 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/source.lst文件后忘记运行 apt-get update

    如果发生下列错误
l;l;l;l;l;l;l;l;l;l

# apt-get -f install
# dpkg --configure -a


上面的命令可能有必要执行多次。这是对那些使用不稳定版系统的冒险者来说是很重要的。

如果运行apt-get update的时候收到 "E: Dynamic MMap ran out of room"这样的错误消息,请在/etc/apt/apt.conf文件里添加:

  APT::Cache-Limit 10000000;