您的位置:首页 > 移动开发

Fedora16下运行yum makecache时,遇到Another app is currently holding the yum lock...

2012-01-06 17:59 429 查看
今天装了个Fedora16-32bit的系统,想更新下源,先把/etc/yum.repos.d/下的文件做了备份,然后把fedora-163.repo和fedora-updates-163.repo拷到了/etc/yum.repos.d/里。

终端下

[root@localhost test]# yum makecache

Loaded plugins: langpacks, presto, refresh-packagekit

Repository updates is listed more than once in the configuration

Repository updates-debuginfo is listed more than once in the configuration

Repository updates-source is listed more than once in the configuration

Repository fedora is listed more than once in the configuration

Repository fedora-debuginfo is listed more than once in the configuration

Repository fedora-source is listed more than once in the configuration

Existing lock /var/run/yum.pid: another copy is running as pid 1898.

Another app is currently holding the yum lock; waiting for it to exit...

The other application is: PackageKit

Memory : 55 M RSS ( 79 MB VSZ)

Started: Fri Jan 6 17:12:11 2012 - 05:13 ago

State : Sleeping, pid: 1898

...

然后就一直waiting for it to exit...

百度后

终端下

[root@localhost test]# rm -f /var/run/yum.pid

[root@localhost test]# yum makecache

开始建立一个缓存,以后用install安装软件时就在缓存中搜索,以提高速度

[root@localhost test]# yum update

开始更新系统
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: