个人工具
登录
查看“Apt-get常见错误处理”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“Apt-get常见错误处理”的源代码
来自Ubuntu中文
←
Apt-get常见错误处理
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
翻译“ APT HOWTO”第七章 <br> 错误将一直发生,许多错误是用户不注意所导致的。下面列出一些常见的错误和如何处理这些错误。 当你尝试运行 apt-get install package... ,如果收到下面这样的消息时<br> 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 <br> 你一定是在更改/etc/apt/source.lst文件后忘记运行 apt-get update 如果发生下列错误:<br> 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? <br> 你一定是以普通用户在运行apt-get. 当运行 apt-get 用不同的源和方式的时候,都需要root权限。 有种错误和上面这种错误很相似,当同时运行2个apt-get ,或者运行一个apt-get 和一个dpkg的时候。 只有能和其他apt-get 同时使用的方式才是 source 方式(The only method that can be used simultaneously with others is the source) method. ) 如果在安装的过程中发生问题,或者某些软件包无法继续安装或删除,那么尝试运行下面两条命令:<br> # apt-get -f install # dpkg --configure -a <br> <br>上面的命令可能有必要执行多次。这是对那些使用不稳定版系统的冒险者来说是很重要的。 如果运行apt-get update的时候收到 "E: Dynamic MMap ran out of room"这样的错误消息,请在/etc/apt/apt.conf文件里添加:<br> APT::Cache-Limit 10000000;
返回至
Apt-get常见错误处理
。